flake: Refactor profiles system, add vscode

This commit is contained in:
2022-09-14 18:29:00 +01:00
parent 3720eb175c
commit 80bc6f91a4
5 changed files with 45 additions and 23 deletions
+1 -1
View File
@@ -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
View File
@@ -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];};
}
+16
View File
@@ -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";
};
};
}