summaryrefslogtreecommitdiffstats
path: root/modules/nixos/sils/basesystem.nix
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-10-05 19:49:08 +0200
committerSilas Schöffel <sils@sils.li>2024-10-05 19:49:08 +0200
commit522a453a5052838075d066999f2ad29d522a2247 (patch)
tree2db9986b91b0dc475879705207e1639083b64e07 /modules/nixos/sils/basesystem.nix
parenthyprland: remove neo keyboard layout (diff)
downloadnix-config-522a453a5052838075d066999f2ad29d522a2247.zip
various changes, needs rebase
Diffstat (limited to 'modules/nixos/sils/basesystem.nix')
-rw-r--r--modules/nixos/sils/basesystem.nix131
1 files changed, 67 insertions, 64 deletions
diff --git a/modules/nixos/sils/basesystem.nix b/modules/nixos/sils/basesystem.nix
index 89b5a5f..21d7ab9 100644
--- a/modules/nixos/sils/basesystem.nix
+++ b/modules/nixos/sils/basesystem.nix
@@ -26,80 +26,83 @@ in {
extraModulePackages = [];
kernelPackages = pkgs.linuxPackages_latest;
lanzaboote = {
- enable = true;
+ enable = false;
configurationLimit = 10;
pkiBundle = "/etc/secureboot";
settings = {
editor = false;
};
};
+ loader.grub.enable = true;
+ loader.grub.efiSupport = true;
+ loader.grub.efiInstallAsRemovable = true;
resumeDevice = config.sils.meta.mainDisk;
- kernelParams = ["resume_offset=369403136"];
+ #kernelParams = ["resume_offset=369403136"];
};
- fileSystems = {
- "/" = {
- device = "tmpfs";
- fsType = "tmpfs";
- options = ["defaults" "size=2G" "mode=755"];
- };
- "/tmp" = {
- device = "tmpfs";
- fsType = "tmpfs";
- options = ["defaults" "size=5G" "mode=755"];
- };
- "/nix" = {
- device = config.sils.meta.mainDisk;
- fsType = "btrfs";
- options = ["subvol=nix" "compress-force=zstd"];
- };
- "/etc/NetworkManager" = {
- device = config.sils.meta.mainDisk;
- fsType = "btrfs";
- options = ["subvol=networkmanagerconfig" "compress-force=zstd"];
- };
- "/etc/secureboot" = {
- device = config.sils.meta.mainDisk;
- fsType = "btrfs";
- options = ["subvol=secureboot" "compress-force=zstd"];
- };
- "/etc/nixos" = {
- device = config.sils.meta.mainDisk;
- fsType = "btrfs";
- options = ["subvol=nixconfig" "compress-force=zstd"];
- };
- "/srv" = {
- device = config.sils.meta.mainDisk;
- fsType = "btrfs";
- options = ["subvol=srv" "compress-force=zstd"];
- neededForBoot = true;
- };
- "/swap" = {
- device = config.sils.meta.mainDisk;
- fsType = "btrfs";
- options = ["subvol=swap" "noatime"];
- };
- "/home" = {
- device = config.sils.meta.mainDisk;
- fsType = "btrfs";
- options = ["subvol=home" "compress-force=zstd"];
- };
- "/srv/snapshots" = {
- device = config.sils.meta.mainDisk;
- fsType = "btrfs";
- options = ["subvol=snapshots" "compress-force=zstd"];
- };
- "/boot" = {
- device = config.sils.meta.bootPart;
- fsType = "vfat";
- };
- };
+ #fileSystems = {
+ # "/" = {
+ # device = "tmpfs";
+ # fsType = "tmpfs";
+ # options = ["defaults" "size=2G" "mode=755"];
+ # };
+ # "/tmp" = {
+ # device = "tmpfs";
+ # fsType = "tmpfs";
+ # options = ["defaults" "size=5G" "mode=755"];
+ # };
+ # "/nix" = {
+ # device = config.sils.meta.mainDisk;
+ # fsType = "btrfs";
+ # options = ["subvol=nix" "compress-force=zstd"];
+ # };
+ # "/etc/NetworkManager" = {
+ # device = config.sils.meta.mainDisk;
+ # fsType = "btrfs";
+ # options = ["subvol=networkmanagerconfig" "compress-force=zstd"];
+ # };
+ # "/etc/secureboot" = {
+ # device = config.sils.meta.mainDisk;
+ # fsType = "btrfs";
+ # options = ["subvol=secureboot" "compress-force=zstd"];
+ # };
+ # "/etc/nixos" = {
+ # device = config.sils.meta.mainDisk;
+ # fsType = "btrfs";
+ # options = ["subvol=nixconfig" "compress-force=zstd"];
+ # };
+ # "/srv" = {
+ # device = config.sils.meta.mainDisk;
+ # fsType = "btrfs";
+ # options = ["subvol=srv" "compress-force=zstd"];
+ # neededForBoot = true;
+ # };
+ # "/swap" = {
+ # device = config.sils.meta.mainDisk;
+ # fsType = "btrfs";
+ # options = ["subvol=swap" "noatime"];
+ # };
+ # "/home" = {
+ # device = config.sils.meta.mainDisk;
+ # fsType = "btrfs";
+ # options = ["subvol=home" "compress-force=zstd"];
+ # };
+ # "/srv/snapshots" = {
+ # device = config.sils.meta.mainDisk;
+ # fsType = "btrfs";
+ # options = ["subvol=snapshots" "compress-force=zstd"];
+ # };
+ # "/boot" = {
+ # device = config.sils.meta.bootPart;
+ # fsType = "vfat";
+ # };
+ #};
- swapDevices = [
- {
- device = "/swap/swapfile";
- }
- ];
+ #swapDevices = [
+ # {
+ # device = "/swap/swapfile";
+ # }
+ #];
system.stateVersion = "23.05";