diff --git a/modules/hosts/asmodeus/default.nix b/modules/hosts/asmodeus/default.nix index ace70fa..caef9c9 100644 --- a/modules/hosts/asmodeus/default.nix +++ b/modules/hosts/asmodeus/default.nix @@ -1,6 +1,11 @@ -{inputs, ...}: { +{ + inputs, + config, + ... +}: { flake.nixosConfigurations.asmodeus = inputs.nixpkgs.lib.nixosSystem { modules = [ + config.flake.nixosModules.emilia ({ config, pkgs, @@ -70,17 +75,6 @@ }; }; - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.emilia = { - isNormalUser = true; - extraGroups = ["wheel"]; # Enable ‘sudo’ for the user. - shell = pkgs.fish; - packages = with pkgs; [ - fuzzel - tree - ]; - }; - programs.firefox.enable = true; programs.niri.enable = true; programs.fish.enable = true; diff --git a/modules/users/emilia.nix b/modules/users/emilia.nix new file mode 100644 index 0000000..09a971d --- /dev/null +++ b/modules/users/emilia.nix @@ -0,0 +1,15 @@ +{ + flake.nixosModules.emilia = {pkgs, ...}: { + config = { + users.users.emilia = { + isNormalUser = true; + extraGroups = ["wheel"]; # Enable ‘sudo’ for the user. + shell = pkgs.fish; + packages = with pkgs; [ + fuzzel + tree + ]; + }; + }; + }; +}