From f978ce1b251ed22e5b2eaec06a39d0b0d571c05d Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Wed, 29 Apr 2026 15:14:25 +0200 Subject: [PATCH] bakke: rest of the owl --- hosts/bakke/disks.nix | 83 -------------------------- hosts/bakke/filesystems.nix | 26 -------- hosts/bakke/hardware-configuration.nix | 52 ---------------- 3 files changed, 161 deletions(-) delete mode 100644 hosts/bakke/disks.nix delete mode 100644 hosts/bakke/filesystems.nix delete mode 100644 hosts/bakke/hardware-configuration.nix diff --git a/hosts/bakke/disks.nix b/hosts/bakke/disks.nix deleted file mode 100644 index e7d1a5b..0000000 --- a/hosts/bakke/disks.nix +++ /dev/null @@ -1,83 +0,0 @@ -{ - # https://github.com/nix-community/disko/blob/master/example/boot-raid1.nix - # Note: Disko was used to create the initial md raid, but is no longer in active use on this host. - disko.devices = { - disk = { - one = { - type = "disk"; - device = "/dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E2EER6N6"; - content = { - type = "gpt"; - partitions = { - ESP = { - size = "500M"; - type = "EF00"; - content = { - type = "mdraid"; - name = "boot"; - }; - }; - mdadm = { - size = "100%"; - content = { - type = "mdraid"; - name = "raid1"; - }; - }; - }; - }; - }; - two = { - type = "disk"; - device = "/dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E7LPLU71"; - content = { - type = "gpt"; - partitions = { - ESP = { - size = "500M"; - type = "EF00"; - content = { - type = "mdraid"; - name = "boot"; - }; - }; - mdadm = { - size = "100%"; - content = { - type = "mdraid"; - name = "raid1"; - }; - }; - }; - }; - }; - }; - mdadm = { - boot = { - type = "mdadm"; - level = 1; - metadata = "1.0"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - raid1 = { - type = "mdadm"; - level = 1; - content = { - type = "gpt"; - partitions.primary = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; -} diff --git a/hosts/bakke/filesystems.nix b/hosts/bakke/filesystems.nix deleted file mode 100644 index c7cde6a..0000000 --- a/hosts/bakke/filesystems.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ pkgs,... }: -{ - # Boot drives: - boot.swraid.enable = true; - - # ZFS Data pool: - boot = { - zfs = { - extraPools = [ "tank" ]; - requestEncryptionCredentials = false; - }; - supportedFilesystems.zfs = true; - # Use stable linux packages, these work with zfs - kernelPackages = pkgs.linuxPackages; - }; - services.zfs.autoScrub = { - enable = true; - interval = "Wed *-*-8..14 00:00:00"; - }; - - # NFS Exports: - #TODO - - # NFS Import mounts: - #TODO -} diff --git a/hosts/bakke/hardware-configuration.nix b/hosts/bakke/hardware-configuration.nix deleted file mode 100644 index 2ad5b63..0000000 --- a/hosts/bakke/hardware-configuration.nix +++ /dev/null @@ -1,52 +0,0 @@ -# Do not modify this file! It was generated by 'nixos-generate-config' -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/0f63c3d2-fc12-4ed5-a5a5-141bfd67a571"; - fsType = "btrfs"; - options = [ "subvol=root" ]; - }; - - fileSystems."/home" = - { device = "/dev/disk/by-uuid/0f63c3d2-fc12-4ed5-a5a5-141bfd67a571"; - fsType = "btrfs"; - options = [ "subvol=home" ]; - }; - - fileSystems."/nix" = - { device = "/dev/disk/by-uuid/0f63c3d2-fc12-4ed5-a5a5-141bfd67a571"; - fsType = "btrfs"; - options = [ "subvol=nix" "noatime" ]; - }; - - fileSystems."/boot" = - { device = "/dev/sdc2"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault false; - # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}