From 6062d065c27ad38c1b193f79c790b2c4fda55098 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Sat, 12 Jul 2025 16:59:16 +0200 Subject: [PATCH] Templates/flake-parts: remove machines Users create machines if they need them --- .../machines/jon/configuration.nix | 38 ------------------ .../machines/sara/configuration.nix | 39 ------------------- 2 files changed, 77 deletions(-) delete mode 100644 templates/clan/flake-parts/machines/jon/configuration.nix delete mode 100644 templates/clan/flake-parts/machines/sara/configuration.nix diff --git a/templates/clan/flake-parts/machines/jon/configuration.nix b/templates/clan/flake-parts/machines/jon/configuration.nix deleted file mode 100644 index 9fa9a41cd..000000000 --- a/templates/clan/flake-parts/machines/jon/configuration.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ config, ... }: -let - username = config.networking.hostName; -in -{ - imports = [ ./hardware-configuration.nix ]; - - # Locale service discovery and mDNS - services.avahi.enable = true; - - services.xserver.enable = true; - services.xserver.desktopManager.gnome.enable = true; - services.xserver.displayManager.gdm.enable = true; - # Disable the default gnome apps to speed up deployment - services.gnome.core-utilities.enable = false; - - # Enable automatic login for the user. - services.displayManager.autoLogin = { - enable = true; - user = username; - }; - - users.users.${username} = { - initialPassword = username; - isNormalUser = true; - extraGroups = [ - "wheel" - "networkmanager" - "video" - "audio" - "input" - "dialout" - "disk" - ]; - uid = 1000; - openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys; - }; -} diff --git a/templates/clan/flake-parts/machines/sara/configuration.nix b/templates/clan/flake-parts/machines/sara/configuration.nix deleted file mode 100644 index df02f6cad..000000000 --- a/templates/clan/flake-parts/machines/sara/configuration.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ config, ... }: - -let - username = config.networking.hostName; -in -{ - imports = [ ./hardware-configuration.nix ]; - - # Locale service discovery and mDNS - services.avahi.enable = true; - - services.xserver.enable = true; - services.xserver.desktopManager.gnome.enable = true; - services.xserver.displayManager.gdm.enable = true; - # Disable the default gnome apps to speed up deployment - services.gnome.core-utilities.enable = false; - - # Enable automatic login for the user. - services.displayManager.autoLogin = { - enable = true; - user = username; - }; - - users.users.${username} = { - initialPassword = username; - isNormalUser = true; - extraGroups = [ - "wheel" - "networkmanager" - "video" - "audio" - "input" - "dialout" - "disk" - ]; - uid = 1000; - openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys; - }; -}