split "environment"-related settings into modules/universal/env

This commit is contained in:
2022-07-06 14:23:49 -07:00
parent dfd1536d19
commit c58df098d2
4 changed files with 18 additions and 10 deletions

View File

@@ -2,10 +2,9 @@
{ {
imports = [ imports = [
./env
./fs.nix ./fs.nix
./home-manager.nix
./secrets.nix ./secrets.nix
./users.nix
./vpn.nix ./vpn.nix
]; ];
@@ -23,13 +22,6 @@
}; };
}; };
# programs.vim.defaultEditor = true;
environment.variables = {
EDITOR = "vim";
# git claims it should use EDITOR, but it doesn't!
GIT_EDITOR = "vim";
};
# allow `nix flake ...` command # allow `nix flake ...` command
nix.extraOptions = '' nix.extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes

16
modules/universal/env/default.nix vendored Normal file
View File

@@ -0,0 +1,16 @@
{ ... }:
{
imports = [
./users.nix
./home-manager.nix
];
# programs.vim.defaultEditor = true;
environment.variables = {
EDITOR = "vim";
# git claims it should use EDITOR, but it doesn't!
GIT_EDITOR = "vim";
};
}

View File

@@ -37,7 +37,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
sops.secrets."aerc_accounts" = { sops.secrets."aerc_accounts" = {
owner = config.users.users.colin.name; owner = config.users.users.colin.name;
sopsFile = ../../secrets/universal/aerc_accounts.conf; sopsFile = ../../../secrets/universal/aerc_accounts.conf;
format = "binary"; format = "binary";
}; };