Server NixOS configs
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: fuck disko, it doesnt work

+32 -63
-1
flake.nix
··· 17 17 inputs.flake-parts.url = "github:hercules-ci/flake-parts"; 18 18 inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 19 19 inputs.easy-hosts.url = "github:tgirlcloud/easy-hosts"; 20 - inputs.disko.url = "github:nix-community/disko/latest"; 21 20 22 21 outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } { 23 22 systems = ["x86_64-linux"];
+2 -5
hosts/default.nix
··· 1 - { inputs, ... }: 1 + { ... }: 2 2 { 3 3 easy-hosts = { 4 4 shared = { ··· 11 11 tethys = { 12 12 deployable = true; 13 13 tags = ["server" "hetzner"]; 14 - modules = [ 15 - inputs.disko.nixosModules.disko 16 - ./tethys/disks.nix 17 - ]; 14 + modules = []; 18 15 }; 19 16 }; 20 17 };
-20
hosts/tethys/bootloader.nix
··· 1 - { pkgs, ... }: 2 - { 3 - boot = { 4 - extraModulePackages = [ ]; 5 - kernelModules = []; 6 - kernelPackages = pkgs.linuxPackages_6_1; 7 - kernelParams = []; 8 - 9 - initrd = { 10 - availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" ]; 11 - kernelModules = []; 12 - }; 13 - 14 - loader = { 15 - boot.loader.grub.enable = true; 16 - boot.loader.grub.efiSupport = true; 17 - boot.loader.grub.efiInstallAsRemovable = true; 18 - }; 19 - }; 20 - }
+2 -1
hosts/tethys/default.nix
··· 1 1 { ... }: 2 2 { 3 3 imports = [ 4 - ./bootloader.nix 5 4 ./hardware.nix 6 5 ./networking.nix 7 6 ]; ··· 11 10 settings.PasswordAuthentication = false; 12 11 settings.KbdInteractiveAuthentication = false; 13 12 }; 13 + 14 + zramSwap.enable = true; 14 15 15 16 users.users.root.openssh.authorizedKeys.keys = [ 16 17 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDkhuhfzyg7R+O62XSktHufGmmhy6FNDi/NuPPJt7bI+"
-34
hosts/tethys/disks.nix
··· 1 - { 2 - disko.devices = { 3 - disk = { 4 - sda = { 5 - type = "disk"; 6 - device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_117166468"; 7 - content = { 8 - type = "gpt"; 9 - partitions = { 10 - sda1 = { 11 - type = "EF00"; 12 - size = "100M"; 13 - content = { 14 - type = "filesystem"; 15 - format = "vfat"; 16 - mountpoint = "/boot"; 17 - mountOptions = [ "umask=0077" ]; 18 - }; 19 - }; 20 - 21 - sda2 = { 22 - size = "100%"; 23 - content = { 24 - type = "filesystem"; 25 - format = "xfs"; 26 - mountpoint = "/"; 27 - }; 28 - }; 29 - }; 30 - }; 31 - }; 32 - }; 33 - }; 34 - }
+26 -1
hosts/tethys/hardware.nix
··· 1 - { modulesPath, ... }: 1 + { pkgs, modulesPath, ... }: 2 2 { 3 3 imports = [(modulesPath + "/profiles/qemu-guest.nix")]; 4 4 5 5 hardware = { 6 6 cpu.amd.updateMicrocode = true; 7 + }; 8 + 9 + boot = { 10 + extraModulePackages = [ ]; 11 + kernelModules = []; 12 + kernelPackages = pkgs.linuxPackages_6_1; 13 + kernelParams = []; 14 + 15 + tmp.cleanOnBoot = true; 16 + 17 + initrd = { 18 + availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; 19 + kernelModules = []; 20 + }; 21 + 22 + loader = { 23 + boot.loader.grub.enable = true; 24 + boot.loader.grub.efiSupport = true; 25 + boot.loader.grub.efiInstallAsRemovable = true; 26 + }; 27 + }; 28 + 29 + fileSystems."/" = { 30 + device = "5e6f1593-c3dd-45e2-bf7a-27b3cd9ef023"; 31 + fsType = "ext4"; 7 32 }; 8 33 }
+2 -1
hosts/tethys/networking.nix
··· 1 - { lib, pkgs, ... }: 1 + { lib, ... }: 2 2 { 3 3 networking = { 4 4 hostName = "tethys"; 5 + domain = "hayden.moe"; 5 6 enableIPv6 = true; 6 7 useDHCP = lib.mkDefault true; 7 8 interfaces.enp1s0.useDHCP = lib.mkDefault true;