From 3b13d9a2a367db84d48940460532c17a374bb488 Mon Sep 17 00:00:00 2001 From: schererleander Date: Thu, 5 Feb 2026 12:03:07 +0100 Subject: feat(modules): use dendritic pattern --- hosts/adam/configuration.nix | 82 -------------------------------- hosts/adam/hardware-configuration.nix | 35 -------------- hosts/lilith/configuration.nix | 60 ----------------------- hosts/sachiel/configuration.nix | 80 ------------------------------- hosts/sachiel/hardware-configuration.nix | 14 ------ 5 files changed, 271 deletions(-) delete mode 100644 hosts/adam/configuration.nix delete mode 100644 hosts/adam/hardware-configuration.nix delete mode 100644 hosts/lilith/configuration.nix delete mode 100644 hosts/sachiel/configuration.nix delete mode 100644 hosts/sachiel/hardware-configuration.nix (limited to 'hosts') diff --git a/hosts/adam/configuration.nix b/hosts/adam/configuration.nix deleted file mode 100644 index 609d831..0000000 --- a/hosts/adam/configuration.nix +++ /dev/null @@ -1,82 +0,0 @@ -{ - pkgs, - ... -}: - -let - username = "schererleander"; -in -{ - imports = [ - ./hardware-configuration.nix - ]; - - boot = { - kernelPackages = pkgs.linuxPackages_latest; - kernelParams = [ "amd_pstate=active" ]; - initrd.luks.devices."luks-803851e9-7fa8-4367-a927-0bb76d0fe830".device = - "/dev/disk/by-uuid/803851e9-7fa8-4367-a927-0bb76d0fe830"; - loader = { - timeout = 0; - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; - }; - - # Graphics - hardware.graphics = { - enable = true; - enable32Bit = true; - }; - - networking.networkmanager.enable = true; - - # Localisation - time.timeZone = "Europe/Berlin"; - i18n.defaultLocale = "en_US.UTF-8"; - i18n.extraLocaleSettings = { - LC_ADDRESS = "de_DE.UTF-8"; - LC_IDENTIFICATION = "de_DE.UTF-8"; - LC_MEASUREMENT = "de_DE.UTF-8"; - LC_MONETARY = "de_DE.UTF-8"; - LC_NAME = "de_DE.UTF-8"; - LC_NUMERIC = "de_DE.UTF-8"; - LC_PAPER = "de_DE.UTF-8"; - LC_TELEPHONE = "de_DE.UTF-8"; - LC_TIME = "de_DE.UTF-8"; - }; - - # Disable waiting for network to be online - systemd.services.NetworkManager-wait-online.enable = false; - - programs.dconf.enable = true; - - nx = { - plymouth.enable = true; - desktop.kde.enable = true; - dns.enable = true; - hardware.bluetooth.enable = true; - }; - - # User configuration - users.users.${username} = { - isNormalUser = true; - home = "/home/${username}"; - shell = pkgs.zsh; - ignoreShellProgramCheck = true; - extraGroups = [ - "wheel" - "networkmanager" - "video" - "input" - ]; - }; - - home-manager.users.${username} = { - imports = [ ../../home/schererleander.nix ]; - home.username = username; - home.homeDirectory = "/home/${username}"; - }; - - system.stateVersion = "25.11"; -} diff --git a/hosts/adam/hardware-configuration.nix b/hosts/adam/hardware-configuration.nix deleted file mode 100644 index 7f2052d..0000000 --- a/hosts/adam/hardware-configuration.nix +++ /dev/null @@ -1,35 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/mapper/luks-37471d57-a31d-4bf1-b219-9992bafe7b64"; - fsType = "ext4"; - }; - - boot.initrd.luks.devices."luks-37471d57-a31d-4bf1-b219-9992bafe7b64".device = "/dev/disk/by-uuid/37471d57-a31d-4bf1-b219-9992bafe7b64"; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/8E50-FCCA"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = - [ { device = "/dev/mapper/luks-803851e9-7fa8-4367-a927-0bb76d0fe830"; } - ]; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/hosts/lilith/configuration.nix b/hosts/lilith/configuration.nix deleted file mode 100644 index a878584..0000000 --- a/hosts/lilith/configuration.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ - host, - ... -}: - -let - username = "schererleander"; -in -{ - networking.hostName = host; - - # User configuration - users.users.${username}.home = "/Users/${username}"; - - home-manager.users.${username} = { - imports = [ ../../home/schererleander.nix ]; - home.username = username; - home.homeDirectory = "/Users/${username}"; - }; - - system.primaryUser = username; - system.defaults = { - dock = { - autohide = true; - largesize = 48; - show-recents = false; - }; - WindowManager.EnableStandardClickToShowDesktop = false; - finder = { - _FXShowPosixPathInTitle = true; - _FXSortFoldersFirst = true; - }; - controlcenter = { - Display = false; - FocusModes = false; - Sound = false; - }; - loginwindow.GuestEnabled = false; - }; - - homebrew = { - enable = true; - brews = [ - "openjdk@21" - ]; - casks = [ - "mullvad-vpn" - "nextcloud" - "iterm2" - "rectangle" - ]; - onActivation.cleanup = "zap"; - onActivation.autoUpdate = true; - onActivation.upgrade = true; - }; - - nix.enable = false; - - system.stateVersion = 5; -} diff --git a/hosts/sachiel/configuration.nix b/hosts/sachiel/configuration.nix deleted file mode 100644 index 9a81a45..0000000 --- a/hosts/sachiel/configuration.nix +++ /dev/null @@ -1,80 +0,0 @@ -{ - inputs, - pkgs, - host, - ... -}: - -let - username = "administrator"; -in -{ - imports = [ - ./hardware-configuration.nix - (import ../../modules/secrets/default.nix) - ]; - - boot.tmp.cleanOnBoot = true; - boot.loader.grub.configurationLimit = 2; - zramSwap.enable = true; - - swapDevices = [ - { - device = "/var/swapfile"; - size = 4096; - } - ]; - - networking = { - hostName = host; - domain = "schererleander.de"; - }; - - users.users.root.hashedPassword = "!"; - users.mutableUsers = false; - users.users.${username} = { - isNormalUser = true; - hashedPassword = "$6$KBblJguEyfEmuWnU$Xf0QqPVacA2qvnzZRpnSE2cmh0kNnMgtVhCrMEDI76buNzuzkuDY6EnO7jPjQlEnoczx6ZPAl2pK.SxezbVa.."; - extraGroups = [ "wheel" ]; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPvlkqlvY4+0o7UIGnFnnRw0HeBq5v7wYJ3kY3teXxxl vps" - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINL+r0l2i07pl9V9iiGqw5e2f/QAcrMhuraA25HavdNT github-deploy" - ]; - }; - - environment.systemPackages = with pkgs; [ - git - gnutar - gzip - zoxide - neovim - htop - ]; - - system.autoUpgrade = { - enable = true; - flake = "github:schererleander/nix#${host}"; - flags = [ - "--update-input" - "nixpkgs" - "--no-write-lock-file" - "-L" # print build logs - ]; - allowReboot = true; - - rebootWindow = { - lower = "02:00"; - upper = "05:00"; - }; - }; - - nx.server = { - openssh.enable = true; - nginx.enable = true; - nextcloud.enable = true; - site.enable = true; - }; - - nixpkgs.config.allowUnfree = true; - system.stateVersion = "25.05"; -} diff --git a/hosts/sachiel/hardware-configuration.nix b/hosts/sachiel/hardware-configuration.nix deleted file mode 100644 index 68ab0a2..0000000 --- a/hosts/sachiel/hardware-configuration.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ modulesPath, ... }: -{ - imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.loader.grub = { - efiSupport = true; - efiInstallAsRemovable = true; - device = "nodev"; - }; - fileSystems."/boot" = { device = "/dev/disk/by-uuid/4E07-7ABB"; fsType = "vfat"; }; - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; - boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; }; - -} -- cgit v1.3.1