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/sachiel/configuration.nix | 80 -------------------------------- hosts/sachiel/hardware-configuration.nix | 14 ------ 2 files changed, 94 deletions(-) delete mode 100644 hosts/sachiel/configuration.nix delete mode 100644 hosts/sachiel/hardware-configuration.nix (limited to 'hosts/sachiel') 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