diff --git a/templates/clan/default/clan.nix b/templates/clan/default/clan.nix index 3bc5f1815..f18dd7a8a 100644 --- a/templates/clan/default/clan.nix +++ b/templates/clan/default/clan.nix @@ -35,10 +35,10 @@ }; # Additional NixOS configuration can be added here. - # machines/machine1/configuration.nix will be automatically imported. + # machines/jon/configuration.nix will be automatically imported. # See: https://docs.clan.lol/guides/more-machines/#automatic-registration machines = { - # machine1 = { config, ... }: { + # jon = { config, ... }: { # environment.systemPackages = [ pkgs.asciinema ]; # }; }; diff --git a/templates/clan/default/modules/gnome.nix b/templates/clan/default/modules/gnome.nix index b4f77768d..e8c43224b 100644 --- a/templates/clan/default/modules/gnome.nix +++ b/templates/clan/default/modules/gnome.nix @@ -1,19 +1,23 @@ -/* - This is an example of a simple nixos module: - - Enables the GNOME desktop environment and the GDM display manager. - - To use this module, import it in your machines NixOS configuration like this: - - ```nix - imports = [ - modules/gnome.nix - ]; - ``` -*/ { ... }: { - services.xserver.enable = true; - services.xserver.desktopManager.gnome.enable = true; - services.xserver.displayManager.gdm.enable = true; + # Can be imported into machines to enable GNOME and GDM. + # + # Copy this into a machine's configuration: + # `machines//configuration.nix` + # ```nix + # imports = [ + # ../../modules/gnome.nix + # ]; + # ``` + + # Enable the GNOME desktop environment and the GDM display manager. + # Pre NixOS: 25.11 + # services.xserver.enable = true; + # services.xserver.displayManager.gdm.enable = true; + # services.xserver.desktopManager.gnome.enable = true; + + # => 25.11 + # services.displayManager.gdm.enable = true; + # services.desktopManager.gnome.enable = true; + } diff --git a/templates/clan/default/modules/shared.nix b/templates/clan/default/modules/shared.nix index d6dc92a85..684b7426c 100644 --- a/templates/clan/default/modules/shared.nix +++ b/templates/clan/default/modules/shared.nix @@ -7,14 +7,7 @@ }: { imports = [ - # Enables the OpenSSH server for remote access - clan-core.clanModules.sshd - # Set a root password - clan-core.clanModules.root-password clan-core.clanModules.user-password - - # You can access other flakes imported in your flake via `self` like this: - # self.inputs.nix-index-database.nixosModules.nix-index ]; # Locale service discovery and mDNS @@ -32,6 +25,5 @@ "input" ]; uid = 1000; - openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys; }; } diff --git a/templates/clan/flake-parts/modules/gnome.nix b/templates/clan/flake-parts/modules/gnome.nix new file mode 100644 index 000000000..e8c43224b --- /dev/null +++ b/templates/clan/flake-parts/modules/gnome.nix @@ -0,0 +1,23 @@ +{ ... }: +{ + # Can be imported into machines to enable GNOME and GDM. + # + # Copy this into a machine's configuration: + # `machines//configuration.nix` + # ```nix + # imports = [ + # ../../modules/gnome.nix + # ]; + # ``` + + # Enable the GNOME desktop environment and the GDM display manager. + # Pre NixOS: 25.11 + # services.xserver.enable = true; + # services.xserver.displayManager.gdm.enable = true; + # services.xserver.desktopManager.gnome.enable = true; + + # => 25.11 + # services.displayManager.gdm.enable = true; + # services.desktopManager.gnome.enable = true; + +} diff --git a/templates/clan/flake-parts/modules/shared.nix b/templates/clan/flake-parts/modules/shared.nix deleted file mode 100644 index 4be5c8eb0..000000000 --- a/templates/clan/flake-parts/modules/shared.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ ... }: -{ - # Shared logic - # Can be imported into many machines - -}