diff options
Diffstat (limited to 'nix/systems')
-rw-r--r-- | nix/systems/affinity/default.nix | 15 | ||||
-rw-r--r-- | nix/systems/affinity/home.nix | 9 | ||||
-rw-r--r-- | nix/systems/continuity/default.nix | 2 | ||||
-rw-r--r-- | nix/systems/continuity/home.nix | 6 | ||||
-rw-r--r-- | nix/systems/home.nix | 11 | ||||
-rw-r--r-- | nix/systems/spontaneity/default.nix | 4 | ||||
-rw-r--r-- | nix/systems/spontaneity/home.nix | 6 |
7 files changed, 44 insertions, 9 deletions
diff --git a/nix/systems/affinity/default.nix b/nix/systems/affinity/default.nix index 4423440..606d934 100644 --- a/nix/systems/affinity/default.nix +++ b/nix/systems/affinity/default.nix @@ -2,15 +2,16 @@ { imports = [ ../../modules/default.nix - ../../modules/home/home.nix ../../modules/nvme-simple.nix + ../home.nix ]; - config.monorepo = { - profiles = { - server.enable = true; - cuda.enable = true; + config = { + monorepo = { + profiles = { + server.enable = true; + cuda.enable = true; + }; + vars.hostName = "affinity"; }; - vars.hostName = "affinity"; }; - config.home-manager.users."${config.monorepo.vars.userName}".monorepo.profiles.cuda.enable = true; } diff --git a/nix/systems/affinity/home.nix b/nix/systems/affinity/home.nix new file mode 100644 index 0000000..7b08138 --- /dev/null +++ b/nix/systems/affinity/home.nix @@ -0,0 +1,9 @@ +{ lib, config, pkgs, ... }: +{ + imports = [ + ../../modules/home/default.nix + ]; + config.monorepo = { + profiles.cuda.enable = true; + }; +} diff --git a/nix/systems/continuity/default.nix b/nix/systems/continuity/default.nix index 1bff83c..d067581 100644 --- a/nix/systems/continuity/default.nix +++ b/nix/systems/continuity/default.nix @@ -2,7 +2,7 @@ { imports = [ ../../modules/default.nix - ../../modules/home/home.nix ../../modules/sda-simple.nix + ../home.nix ]; } diff --git a/nix/systems/continuity/home.nix b/nix/systems/continuity/home.nix new file mode 100644 index 0000000..276ba52 --- /dev/null +++ b/nix/systems/continuity/home.nix @@ -0,0 +1,6 @@ +{ lib, config, pkgs, ... }: +{ + imports = [ + ../../modules/home/default.nix + ]; +} diff --git a/nix/systems/home.nix b/nix/systems/home.nix new file mode 100644 index 0000000..af4aa68 --- /dev/null +++ b/nix/systems/home.nix @@ -0,0 +1,11 @@ +{ config, sops-nix, ... }: +{ + home-manager = { + sharedModules = [ + sops-nix.homeManagerModules.sops + ]; + useGlobalPkgs = true; + useUserPackages = true; + users."${config.monorepo.vars.userName}" = import (./. + "/${config.monorepo.vars.hostName}/home.nix"); + }; +} diff --git a/nix/systems/spontaneity/default.nix b/nix/systems/spontaneity/default.nix index bc7ba81..5f79855 100644 --- a/nix/systems/spontaneity/default.nix +++ b/nix/systems/spontaneity/default.nix @@ -3,11 +3,13 @@ imports = [ ../../modules/default.nix ../../modules/vda-simple.nix + ../home.nix ]; + config.monorepo = { profiles = { server.enable = true; - home.enable = false; + ttyonly.enable = true; }; vars.hostName = "spontaneity"; }; diff --git a/nix/systems/spontaneity/home.nix b/nix/systems/spontaneity/home.nix new file mode 100644 index 0000000..276ba52 --- /dev/null +++ b/nix/systems/spontaneity/home.nix @@ -0,0 +1,6 @@ +{ lib, config, pkgs, ... }: +{ + imports = [ + ../../modules/home/default.nix + ]; +} |