1
1
Fork 0

Regenerate hardware config to pick up swapfile

This commit is contained in:
Tim Van Baak 2023-08-01 17:24:35 -07:00
parent 733679c944
commit a78c36b871
2 changed files with 16 additions and 17 deletions

View File

@ -1,18 +1,15 @@
# Edit this configuration file to define what should be installed on { pkgs, ... }:
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ {
imports = imports = [
[ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.efi.canTouchEfiVariables = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking.hostName = "backyard"; # Define your hostname. networking.hostName = "backyard"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.

View File

@ -18,17 +18,19 @@
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/971B-96E8";
fsType = "vfat";
};
fileSystems."/nix" = fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/0d031c2d-e66e-41d2-906f-1955b5a26f23"; { device = "/dev/disk/by-uuid/0d031c2d-e66e-41d2-906f-1955b5a26f23";
fsType = "ext4"; fsType = "ext4";
}; };
swapDevices = [ ]; fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/971B-96E8";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/f55dc7e7-eeec-4be6-88e4-f3e94e749fd2"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's