From 7968deab695be4d5eaadfc81d2413f61d82ee777 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Tue, 12 Nov 2024 00:03:55 -0800 Subject: Add @neptune @saturn --- hosts/saturn/default.nix | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 hosts/saturn/default.nix (limited to 'hosts/saturn/default.nix') diff --git a/hosts/saturn/default.nix b/hosts/saturn/default.nix new file mode 100644 index 0000000..bca97f0 --- /dev/null +++ b/hosts/saturn/default.nix @@ -0,0 +1,67 @@ +{ config, inputs, outputs, pkgs, ... }: { + boot = { + initrd.kernelModules = [ "amdgpu" "zfs" ]; + #kernel.sysctl = { + # "net.ipv4.ip_forward" = true; + #}; + loader = { + efi.canTouchEfiVariables = true; + systemd-boot.enable = true; + timeout = 3; + }; + supportedFilesystems = [ "zfs" ]; + zfs.devNodes = "/dev/disk/by-label"; + }; + + environment.systemPackages = with pkgs; [ + wpa_supplicant + ]; + + imports = [ + ./disks.nix + ./hardware-configuration.nix + ../common/core + ../common/optional/misc.nix + ../common/optional/services/fwupd.nix + ../common/optional/services/openssh.nix + ../common/optional/zfs.nix + ../common/users/nipsy + ../common/users/root + ]; + + networking = { + hostId = "4ae5eb4d"; + hostName = "saturn"; + domain = "bitgnome.net"; + nftables.enable = true; + wireless = { + enable = true; + userControlled.enable = true; + }; + }; + + nixpkgs = { + config.allowUnfree = true; + hostPlatform = "x86_64-linux"; + overlays = [ + outputs.overlays.additions + outputs.overlays.modifications + outputs.overlays.master-packages + outputs.overlays.stable-packages + ]; + }; + + #sops = { + # age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; + # defaultSopsFile = ../secrets/saturn.yaml; + + # secrets = { + # "kea-dhcp4_conf" = {}; + # "nftables/forward" = {}; + # "nftables/ssh" = {}; + # "nix-access-token-github" = {}; + # }; + #}; + + system.stateVersion = "24.11"; +} -- cgit v1.2.3