Add stub configurations for magi hosts

This commit is contained in:
Mikael 2024-09-05 17:44:54 +02:00
parent a84a0197a3
commit b12fa20294
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0
4 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,3 @@
{ self, ... }: { lib, config, pkgs, ... }: {
imports = with self.nixosModules; [ magi ];
}

3
nixos/config/casper.nix Normal file
View file

@ -0,0 +1,3 @@
{ self, ... }: { lib, config, pkgs, ... }: {
imports = with self.nixosModules; [ magi ];
}

View file

@ -0,0 +1,3 @@
{ self, ... }: { lib, config, pkgs, ... }: {
imports = with self.nixosModules; [ magi ];
}

View file

@ -1,4 +1,10 @@
{ self, ... }: { lib, config, pkgs, ... }: { { self, ... }: { lib, config, pkgs, ... }: {
imports = with self.nixosModules; [
default
mimalloc
physical
];
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 {
@ -56,4 +62,12 @@
CEPH_FS_POSIX_ACL = true; CEPH_FS_POSIX_ACL = true;
}); });
}); });
ephemeral = {
device = "nodev";
boot = {
device = "nodev";
fsType = "vfat";
};
};
} }