split "environment"-related settings into modules/universal/env
This commit is contained in:
@@ -2,10 +2,9 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
./env
|
||||
./fs.nix
|
||||
./home-manager.nix
|
||||
./secrets.nix
|
||||
./users.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
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
|
16
modules/universal/env/default.nix
vendored
Normal file
16
modules/universal/env/default.nix
vendored
Normal 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";
|
||||
};
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops.secrets."aerc_accounts" = {
|
||||
owner = config.users.users.colin.name;
|
||||
sopsFile = ../../secrets/universal/aerc_accounts.conf;
|
||||
sopsFile = ../../../secrets/universal/aerc_accounts.conf;
|
||||
format = "binary";
|
||||
};
|
||||
|
Reference in New Issue
Block a user