Convert home-manager to flakes

Instead of calling the home manager directly in the user's list, we add
a command for the user to invoke "hms" and have their environment setup
in the way that Greg likes.
This commit is contained in:
Greg Hellings
2022-08-02 01:50:50 -05:00
parent 8c69ccd3b2
commit 78704b5c88
10 changed files with 95 additions and 19 deletions
+6 -5
View File
@@ -1,7 +1,7 @@
name: { pkgs, lib, nixosConfig, ...}:
name: { pkgs, lib, gui, ...}:
let
guiImports = if nixosConfig.greg.gnome.enable then
guiImports = if gui then
[ ./gui ] else [];
in {
@@ -17,7 +17,8 @@ in {
] ++ guiImports;
home.username = name;
home.homeDirectory = if name == "root" then "/root" else "/home/${name}";
home.stateVersion = "21.11";
home.stateVersion = "22.05";
home.packages = [
pkgs.hms
];
}