Compare commits
3 commits
a4494f566b
...
44e2429b4c
| Author | SHA1 | Date | |
|---|---|---|---|
| 44e2429b4c | |||
| af5251bf42 | |||
| 78d717bfef |
2 changed files with 19 additions and 22 deletions
|
|
@ -5,21 +5,27 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Use grub boot loader
|
boot = {
|
||||||
boot.loader = {
|
loader = {
|
||||||
systemd-boot.enable = false;
|
# Use grub boot loader
|
||||||
grub = {
|
systemd-boot.enable = false;
|
||||||
enable = true;
|
grub = {
|
||||||
device = "nodev";
|
enable = true;
|
||||||
efiSupport = true;
|
device = "nodev";
|
||||||
enableCryptodisk = true;
|
efiSupport = true;
|
||||||
};
|
enableCryptodisk = true;
|
||||||
efi = {
|
};
|
||||||
efiSysMountPoint = "/boot/efi";
|
efi = {
|
||||||
canTouchEfiVariables = true;
|
efiSysMountPoint = "/boot/efi";
|
||||||
|
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
# 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, /*modulesPath,*/ ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
/*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 = [ ];
|
||||||
|
|
@ -39,12 +36,6 @@
|
||||||
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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue