io is now ephermal. for real this time. finally.

This commit is contained in:
William 2024-03-16 17:50:03 -03:00
parent 3c359d75c5
commit bab89d4c35
2 changed files with 21 additions and 21 deletions

View file

@ -17,8 +17,7 @@
}; };
script = '' script = ''
mkdir /btrfs_tmp mkdir /btrfs_tmp
mount /dev/disk/by-uuid/1ce9c049-0736-4305b21e-34244004acf50 /btrfs_tmp mount /dev/disk/by-uuid/3638cea6-5503-43cc-aa4f-3d37ebedad2f /btrfs_tmp
if [[ -e /btrfs_tmp/@root ]]; then if [[ -e /btrfs_tmp/@root ]]; then
mkdir -p /btrfs_tmp/old_roots mkdir -p /btrfs_tmp/old_roots
timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/@root)" "+%Y-%m-%-d_%H:%M:%S") timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/@root)" "+%Y-%m-%-d_%H:%M:%S")

View file

@ -1,4 +1,4 @@
{ config, lib, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
@ -7,46 +7,47 @@
initrd = { initrd = {
availableKernelModules = availableKernelModules =
[ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ]; [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
luks.devices."cryptroot".device = luks.devices."enc".device =
"/dev/disk/by-uuid/37c930c5-2b31-4d18-a1c4-7f13e0412656"; "/dev/disk/by-uuid/8018720e-42dd-453c-b374-adaa02eb48c9";
}; };
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
}; };
fileSystems = { fileSystems = {
"/" = { "/" = {
device = "/dev/disk/by_uuid/1ce9c049-0736-4305b21e-34244004acf50"; device = "/dev/disk/by-uuid/3638cea6-5503-43cc-aa4f-3d37ebedad2f";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@root" "noatime" "compress=zstd" ]; options = [ "subvol=@root" ];
}; };
"/home" = { "/home" = {
device = "/dev/disk/by_uuid/1ce9c049-0736-4305b21e-34244004acf50 "; device = "/dev/disk/by-uuid/3638cea6-5503-43cc-aa4f-3d37ebedad2f";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@home" "noatime" "compress=zstd" ]; options = [ "subvol=@home" ];
};
"/boot/efi" = {
device = "/dev/disk/by-uuid/36B4-C473";
fsType = "vfat";
options = [ "noatime" "fmask=0077" "dmask=0077" ];
}; };
"/nix" = { "/nix" = {
device = "/dev/disk/by_uuid/1ce9c049-0736-4305b21e-34244004acf50 "; device = "/dev/disk/by-uuid/3638cea6-5503-43cc-aa4f-3d37ebedad2f";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@nix" "noatime" "compress=zstd" ]; options = [ "subvol=@nix" ];
}; };
"/persistent" = { "/persistent" = {
device = "/dev/disk/by_uuid/1ce9c049-0736-4305b21e-34244004acf50 "; device = "/dev/disk/by-uuid/3638cea6-5503-43cc-aa4f-3d37ebedad2f";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@persistent" "noatime" "compress=zstd" ]; options = [ "subvol=@persistent" ];
};
"/boot/efi" = {
device = "/dev/disk/by-uuid/34AD-002A";
fsType = "vfat";
}; };
}; };
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware; lib.mkDefault config.hardware.enableRedistributableFirmware;
} }