change configuration.nix to work from first install

This commit is contained in:
2025-08-25 23:21:41 +02:00
parent 376d6b5c7b
commit 9c4c12ec42
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
imports = imports =
[ [
/etc/nixos/hardware-configuration.nix ./hardware-configuration.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@@ -18,6 +18,7 @@
time.timeZone = "Europe/Oslo"; time.timeZone = "Europe/Oslo";
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
swapDevices = [ {device = "/swapfile"; size = 8192; } ];
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@@ -124,4 +125,3 @@
system.stateVersion = "25.05"; # dont change ever system.stateVersion = "25.05"; # dont change ever
} }
+2 -1
View File
@@ -1,2 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sudo nixos-rebuild switch -I nixos-config=./configuration.nix sudo cp ./configuration.nix /etc/nixos/configuration.nix
sudo nixos-rebuild switch --upgrade