diff options
Diffstat (limited to 'modules/hosts/sachiel')
| -rw-r--r-- | modules/hosts/sachiel/configuration.nix | 49 | ||||
| -rw-r--r-- | modules/hosts/sachiel/flake-parts.nix | 14 | ||||
| -rw-r--r-- | modules/hosts/sachiel/hardware-configuration.nix | 39 |
3 files changed, 102 insertions, 0 deletions
diff --git a/modules/hosts/sachiel/configuration.nix b/modules/hosts/sachiel/configuration.nix new file mode 100644 index 0000000..d2d1d75 --- /dev/null +++ b/modules/hosts/sachiel/configuration.nix @@ -0,0 +1,49 @@ +{ + flake.modules.nixos.sachiel = + { + pkgs, + ... + }: + { + boot.tmp.cleanOnBoot = true; + boot.loader.grub.configurationLimit = 2; + zramSwap.enable = true; + + swapDevices = [ + { + device = "/var/swapfile"; + size = 4096; + } + ]; + + networking = { + hostName = "sachiel"; + domain = "schererleander.de"; + }; + + users.users.root.hashedPassword = "!"; + users.mutableUsers = false; + users.users.administrator = { + 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 + ]; + + nixpkgs.config.allowUnfree = true; + nixpkgs.hostPlatform = "x86_64-linux"; + system.stateVersion = "25.05"; + }; +} diff --git a/modules/hosts/sachiel/flake-parts.nix b/modules/hosts/sachiel/flake-parts.nix new file mode 100644 index 0000000..42d7551 --- /dev/null +++ b/modules/hosts/sachiel/flake-parts.nix @@ -0,0 +1,14 @@ +{ inputs, ... }: +{ + flake.nixosConfigurations."sachiel" = inputs.nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; + modules = [ + inputs.self.modules.nixos.sachiel + inputs.self.modules.nixos.secrets + inputs.self.modules.nixos.openssh + inputs.self.modules.nixos.nginx + inputs.self.modules.nixos.nextcloud + inputs.self.modules.nixos.site + ]; + }; +} diff --git a/modules/hosts/sachiel/hardware-configuration.nix b/modules/hosts/sachiel/hardware-configuration.nix new file mode 100644 index 0000000..e188fae --- /dev/null +++ b/modules/hosts/sachiel/hardware-configuration.nix @@ -0,0 +1,39 @@ +{ + flake.modules.nixos.sachiel = + { ... }: + { + 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" + "virtio_net" + "virtio_pci" + "virtio_mmio" + "virtio_blk" + "virtio_scsi" + "9p" + "9pnet_virtio" + ]; + boot.initrd.kernelModules = [ + "nvme" + "virtio_balloon" + "virtio_console" + "virtio_rng" + "virtio_gpu" + ]; + fileSystems."/" = { + device = "/dev/vda1"; + fsType = "ext4"; + }; + }; +} |
