diff --git a/templates/clan/default/modules/disko.nix b/templates/clan/default/modules/disko.nix deleted file mode 100644 index d42864893..000000000 --- a/templates/clan/default/modules/disko.nix +++ /dev/null @@ -1,61 +0,0 @@ -{ - lib, - clan-core, - config, - ... -}: - -let - suffix = config.clan.core.vars.generators.disk-id.files.diskId.value; -in -{ - imports = [ - clan-core.clanModules.disk-id - ]; - - # DO NOT EDIT THIS FILE AFTER INSTALLATION of a machine - # Otherwise your system might not boot because of missing partitions / filesystems - boot.loader.grub.efiSupport = lib.mkDefault true; - boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true; - disko.devices = { - disk = { - "main" = { - # suffix is to prevent disk name collisions - name = "main-" + suffix; - type = "disk"; - # Set the following in flake.nix for each maschine: - # device = ; - content = { - type = "gpt"; - partitions = { - "boot" = { - size = "1M"; - type = "EF02"; # for grub MBR - priority = 1; - }; - "ESP" = { - size = "512M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ "nofail" ]; - }; - }; - "root" = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - # format = "btrfs"; - # format = "bcachefs"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; - }; -} diff --git a/templates/clan/default/modules/shared.nix b/templates/clan/default/modules/shared.nix deleted file mode 100644 index 672e4e23b..000000000 --- a/templates/clan/default/modules/shared.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ - clan-core, - # Optional, if you want to access other flakes: - # self, - ... -}: -{ - imports = [ - clan-core.clanModules.user-password - ]; - - # Locale service discovery and mDNS - services.avahi.enable = true; - - # generate a random password for our user below - # can be read using `clan secrets get -user-password` command - clan.user-password.user = "user"; - users.users.user = { - isNormalUser = true; - extraGroups = [ - "wheel" - "networkmanager" - "video" - "input" - ]; - }; -} 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; - }; -} diff --git a/templates/clan/flake-parts/modules/disko.nix b/templates/clan/flake-parts/modules/disko.nix deleted file mode 100644 index 5bc1e84bd..000000000 --- a/templates/clan/flake-parts/modules/disko.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ lib, clan-core, ... }: - -let - suffix = config.clan.core.vars.generators.disk-id.files.diskId.value; -in -{ - imports = [ - clan-core.clanModules.disk-id - ]; - - boot.loader.grub.efiSupport = lib.mkDefault true; - boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true; - disko.devices = { - disk = { - "main" = { - # suffix is to prevent disk name collisions - name = "main-" + suffix; - type = "disk"; - # Set the following in flake.nix for each maschine: - # device = ; - content = { - type = "gpt"; - partitions = { - "boot" = { - size = "1M"; - type = "EF02"; # for grub MBR - priority = 1; - }; - "ESP" = { - size = "512M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - "root" = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; - }; -}