mirror of
https://github.com/wlcx/home.git
synced 2026-09-28 18:38:23 +01:00
flake: Refactor profiles system, add vscode
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ in {
|
||||
enable = true;
|
||||
package = pkgs.nix;
|
||||
settings.experimental-features = "nix-command flakes";
|
||||
settings.max-jobs = "auto"; # Gotta go fast (build derivations in parallel)
|
||||
settings.max-jobs = "auto"; # Gotta go fast (build derivations in parallel)
|
||||
};
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
|
||||
+13
-8
@@ -1,18 +1,23 @@
|
||||
{
|
||||
# The basics that you'll want everywhere
|
||||
default = ./default.nix;
|
||||
# A machine for development
|
||||
dev = {...}: {
|
||||
imports = [./default.nix ./git.nix ./rust.nix ./vim.nix ./vim-dev];
|
||||
imports = [ ./git.nix ./rust.nix ./vim.nix ./vim-dev ./vscode.nix ];
|
||||
};
|
||||
laptop = {...}: {
|
||||
# Sensitive stuff
|
||||
sensitive = {...}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
./git.nix
|
||||
./macs.nix
|
||||
./rust.nix
|
||||
./vim.nix
|
||||
./vim-dev
|
||||
./passwords.nix
|
||||
./gpg.nix
|
||||
];
|
||||
};
|
||||
# A MacOS machine
|
||||
mac = ./macs.nix;
|
||||
# A machine you want to do docker stuff on
|
||||
docker = ./docker.nix;
|
||||
# A machine you want to do aws stuff on
|
||||
aws = ./aws.nix;
|
||||
# A server
|
||||
server = {...}: {imports = [./default.nix ./git.nix ./vim.nix];};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
mutableExtensionsDir = false;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
matklad.rust-analyzer
|
||||
jdinhlife.gruvbox
|
||||
];
|
||||
userSettings = {
|
||||
"update.mode" = "none";
|
||||
"workbench.colorTheme" = "Gruvbox Dark Hard";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user