From 5d64abd09761aa1eb8b7b6c875d912105fa1edb1 Mon Sep 17 00:00:00 2001 From: Ethan Simmons Date: Sun, 10 May 2026 09:24:06 -0500 Subject: [PATCH] Repartition and reinstall alpheratz --- flake.nix | 25 +++++++++---------- hosts/alpheratz/hardware-configuration.nix | 28 +++++++++------------- hosts/alpheratz/system.nix | 3 --- modules/nix/backup.nix | 3 ++- modules/options/backup.nix | 5 ++++ 5 files changed, 29 insertions(+), 35 deletions(-) diff --git a/flake.nix b/flake.nix index 41765cd..7f391d6 100644 --- a/flake.nix +++ b/flake.nix @@ -115,7 +115,6 @@ school = { enable = true; - citrix = true; }; games = { @@ -143,7 +142,6 @@ laptop = { enable = true; powersave.enable = true; - backlight.enable = true; }; audio = { @@ -170,7 +168,6 @@ school = { enable = true; - citrix = true; }; games = { @@ -178,17 +175,17 @@ }; backup = { - user = "eesim"; - paths = [ "/home/eesim" ]; - repo = "t643s856@t643s856.repo.borgbase.com:repo"; - excludes = [ - "/home/eesim/.cache/" - "/home/eesim/configs/mc-distant-horizons" - "/home/eesim/configs/mc-arcadia" - ]; - key = "/home/eesim/.ssh/id_ed25519"; - passphrase = "/run/secrets/borgbase/nix-alpheratz"; - repeat = "daily"; + enable = true; + user = "eesim"; + paths = [ "/home/eesim" ]; + repo = "t643s856@t643s856.repo.borgbase.com:repo"; + excludes = [ + "/home/eesim/.cache/" + ]; + passphrase = "/run/secrets/borgbase/nix-alpheratz"; + key = "/home/eesim/.ssh/id_ed25519_borg"; + compression = "zstd"; + repeat = "daily"; }; common.nil.enable = true; diff --git a/hosts/alpheratz/hardware-configuration.nix b/hosts/alpheratz/hardware-configuration.nix index 575dc5b..af9e1bf 100644 --- a/hosts/alpheratz/hardware-configuration.nix +++ b/hosts/alpheratz/hardware-configuration.nix @@ -14,38 +14,32 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/ad45b094-608d-4850-b5ba-0f3917947629"; + { device = "/dev/disk/by-uuid/d724cc9a-df7c-4771-8531-3544056b9aa1"; fsType = "btrfs"; options = [ "subvol=root" ]; }; fileSystems."/home" = - { device = "/dev/disk/by-uuid/ad45b094-608d-4850-b5ba-0f3917947629"; + { device = "/dev/disk/by-uuid/d724cc9a-df7c-4771-8531-3544056b9aa1"; fsType = "btrfs"; options = [ "subvol=home" ]; }; fileSystems."/nix" = - { device = "/dev/disk/by-uuid/ad45b094-608d-4850-b5ba-0f3917947629"; + { device = "/dev/disk/by-uuid/d724cc9a-df7c-4771-8531-3544056b9aa1"; fsType = "btrfs"; options = [ "subvol=nix" ]; }; -# Remove comments for optical drive in wine -# fileSystems."/mnt/drive0" = -# { device = "/dev/sr0"; -# fsType = "auto"; -# options = [ "ro" "user" "noauto" "unhide" ]; -# }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/D7C8-96A5"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; - 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 true; - # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; + swapDevices = + [ { device = "/dev/disk/by-uuid/7dc7727f-ebdc-4bd4-8526-193822b78aab"; } + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/hosts/alpheratz/system.nix b/hosts/alpheratz/system.nix index 9ded46d..cf70978 100644 --- a/hosts/alpheratz/system.nix +++ b/hosts/alpheratz/system.nix @@ -64,7 +64,6 @@ environment.systemPackages = with pkgs; [ localPackages.x86_64-linux.jhelioviewer - bottles matlab discord wine @@ -85,8 +84,6 @@ # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; - boot.loader.systemd-boot.xbootldrMountPoint = "/boot"; - boot.loader.efi.efiSysMountPoint = "/efi"; boot.loader.efi.canTouchEfiVariables = true; hardware.bluetooth.enable = true; diff --git a/modules/nix/backup.nix b/modules/nix/backup.nix index a3a27db..bca22ff 100644 --- a/modules/nix/backup.nix +++ b/modules/nix/backup.nix @@ -6,6 +6,7 @@ with lib; let cfg = config.simmer.backup; + compression = if (cfg.compression == "zstd") then "auto,zstd,3" else "auto,lzma"; in { config = mkIf cfg.enable { @@ -20,7 +21,7 @@ in passCommand = "cat ${cfg.passphrase}"; }; environment.BORG_RSH = "ssh -i ${cfg.key}"; - compression = "auto,lzma"; + compression = compression; startAt = cfg.repeat; }; }; diff --git a/modules/options/backup.nix b/modules/options/backup.nix index 8025a1b..1f7b551 100644 --- a/modules/options/backup.nix +++ b/modules/options/backup.nix @@ -51,5 +51,10 @@ with lib; type = types.enum [ "hourly" "daily" "weekly" ]; }; + compression = mkOption { + description = "Which compression option to use (lzma, zstd)"; + type = types.enum [ "lzma" "zstd" ]; + }; + }; }