From e0e06d41a2756d8774fcfb8b7138d5fea668057a Mon Sep 17 00:00:00 2001 From: boyreau Date: Tue, 22 Sep 2026 07:31:32 +0200 Subject: [PATCH] homelab config + shell.nix update --- machines/homelab/bootloader.nix | 3 ++- machines/homelab/hardware-configuration.nix | 7 ++++++- machines/homelab/user.nix | 6 +++++- shell.nix | 1 + 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/machines/homelab/bootloader.nix b/machines/homelab/bootloader.nix index df6e479..c95d8bc 100644 --- a/machines/homelab/bootloader.nix +++ b/machines/homelab/bootloader.nix @@ -14,7 +14,8 @@ in boot.loader.systemd-boot.enable = lib.mkForce false; boot.loader.efi.canTouchEfiVariables = true; - boot.initrd.systemd.enable = lib.mkForce false; + + boot.initrd.systemd.enable = true; boot.lanzaboote = { enable = true; diff --git a/machines/homelab/hardware-configuration.nix b/machines/homelab/hardware-configuration.nix index 99086a0..aa0aab0 100644 --- a/machines/homelab/hardware-configuration.nix +++ b/machines/homelab/hardware-configuration.nix @@ -37,7 +37,12 @@ ]; }; - swapDevices = [ ]; + swapDevices = [ + { + device = "/dev/disk/by-uuid/7786199d-8091-4959-9e3d-d6b62d2736f7"; + options = [ "discard" ]; + } + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/machines/homelab/user.nix b/machines/homelab/user.nix index 39529f9..f67037f 100644 --- a/machines/homelab/user.nix +++ b/machines/homelab/user.nix @@ -1,6 +1,10 @@ +{ config, ... }: { users.users.zo = { isNormalUser = true; - extraGroups = [ "wheel" ]; + extraGroups = [ + "wheel" + config.services.kubo.group + ]; }; } diff --git a/shell.nix b/shell.nix index b12f462..27e634d 100644 --- a/shell.nix +++ b/shell.nix @@ -10,5 +10,6 @@ pkgs.mkShellNoCC { shellHook = '' # npins update + git pull ''; }