Create initial system config for casper
Some checks are pending
nix flake check / check (aarch64-linux) (push) Waiting to run
nix flake check / check (x86_64-linux) (push) Waiting to run

This commit is contained in:
Mikael 2024-10-31 15:38:06 +01:00
parent 6ce29fc4e5
commit 6ff706f7c9
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0
2 changed files with 29 additions and 5 deletions

View file

@ -1,3 +1,12 @@
{ self, ... }: { lib, config, pkgs, ... }: { { self, ... }: { lib, config, pkgs, ... }: {
imports = with self.nixosModules; [ magi ]; imports = with self.nixosModules; [ magi ];
ephemeral = {
enable = true;
device = "UUID=545bcd08-9f1a-4f42-b85e-93c47d496ac3";
boot = {
device = "UUID=A5AE-22E8";
fsType = "vfat";
};
};
} }

View file

@ -1,10 +1,20 @@
{ self, ... }: { lib, config, pkgs, ... }: { { self, ... }: { lib, config, pkgs, ... }: {
imports = with self.nixosModules; [ imports = with self.nixosModules; [
default default
headless
mimalloc mimalloc
physical physical
]; ];
boot.binfmt = {
emulatedSystems = [ "aarch64-linux" "riscv64-linux" ];
preferStaticEmulators = true;
};
boot.kernelParams = [
"hugepagesz=1G" "hugepages=16"
];
boot.kernelPackages = let boot.kernelPackages = let
inherit (self.packages.x86_64-linux) linux-hardened; inherit (self.packages.x86_64-linux) linux-hardened;
in pkgs.linuxPackagesFor (linux-hardened.override { in pkgs.linuxPackagesFor (linux-hardened.override {
@ -38,6 +48,10 @@
SATA_MOBILE_LPM_POLICY = 1; SATA_MOBILE_LPM_POLICY = 1;
ATA_SFF = false; ATA_SFF = false;
BLK_DEV_MD = true;
MD_AUTODETECT = true;
MD_RAID1 = true;
BNXT = true; BNXT = true;
BNXT_FLOWER_OFFLOAD = true; BNXT_FLOWER_OFFLOAD = true;
BNXT_HWMON = true; BNXT_HWMON = true;
@ -89,11 +103,12 @@
}); });
}); });
ephemeral = { hardware.nitrokey.enable = true;
device = "nodev";
boot = { nix = {
device = "nodev"; settings = {
fsType = "vfat"; system-features = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]
++ (map (arch: "gccarch-${arch}") (lib.systems.architectures.inferiors.znver2 ++ [ "rv64imac" "rv64imacfd" "rv64gc" "armv8-a" ]));
}; };
}; };
} }