diff options
| author | schererleander <leander@schererleander.de> | 2026-02-05 12:03:07 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2026-02-05 15:19:41 +0100 |
| commit | 3b13d9a2a367db84d48940460532c17a374bb488 (patch) | |
| tree | 599110a39c4baecf3991fe9a58d0103a43c38896 /hosts/sachiel | |
| parent | 46aa4842b98d9215baca00060c233f386a0c2188 (diff) | |
feat(modules): use dendritic pattern
Diffstat (limited to 'hosts/sachiel')
| -rw-r--r-- | hosts/sachiel/configuration.nix | 80 | ||||
| -rw-r--r-- | hosts/sachiel/hardware-configuration.nix | 14 |
2 files changed, 0 insertions, 94 deletions
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"; }; - -} |
