Compare commits

..

No commits in common. "44e2429b4c9ce5d8d050b2da0de8d3e28fd145b7" and "a4494f566b51fda6b98e116cce372dd35ab3ad09" have entirely different histories.

2 changed files with 22 additions and 19 deletions

View file

@ -5,27 +5,21 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
boot = { # Use grub boot loader
loader = { boot.loader = {
# Use grub boot loader systemd-boot.enable = false;
systemd-boot.enable = false; grub = {
grub = { enable = true;
enable = true; device = "nodev";
device = "nodev"; efiSupport = true;
efiSupport = true; enableCryptodisk = true;
enableCryptodisk = true; };
}; efi = {
efi = { efiSysMountPoint = "/boot/efi";
efiSysMountPoint = "/boot/efi"; canTouchEfiVariables = true;
canTouchEfiVariables = true;
};
}; };
# I need systemd for tpm luks unlocking
initrd.systemd.enable = true;
}; };
security.tpm2.enable = true;
networking.hostName = "SurfaceGo"; # Define your hostname. networking.hostName = "SurfaceGo"; # Define your hostname.
networking.networkmanager.enable = true; # Enable networking networking.networkmanager.enable = true; # Enable networking

View file

@ -1,9 +1,12 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }: { config, lib, pkgs, /*modulesPath,*/ ... }:
{ {
/*imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];*/
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
@ -36,6 +39,12 @@
options = [ "subvol=@home" "compress=zstd" ]; options = [ "subvol=@home" "compress=zstd" ];
}; };
/*fileSystems."/swap" = {
device = "/dev/disk/by-uuid/19a52b40-3ff6-47ff-9402-18d8b289643e";
fsType = "btrfs";
options = [ "subvol=@swapfile" ];
};*/
fileSystems."/boot/efi" = { fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/EC76-201F"; device = "/dev/disk/by-uuid/EC76-201F";
fsType = "vfat"; fsType = "vfat";