From b12fa2029433ba2af9275926cef7bd82c50e7a4c Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Thu, 5 Sep 2024 17:44:54 +0200 Subject: [PATCH] Add stub configurations for magi hosts --- nixos/config/balthasar.nix | 3 +++ nixos/config/casper.nix | 3 +++ nixos/config/melchior.nix | 3 +++ nixos/module/magi.nix | 14 ++++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 nixos/config/balthasar.nix create mode 100644 nixos/config/casper.nix create mode 100644 nixos/config/melchior.nix diff --git a/nixos/config/balthasar.nix b/nixos/config/balthasar.nix new file mode 100644 index 0000000..622e5e4 --- /dev/null +++ b/nixos/config/balthasar.nix @@ -0,0 +1,3 @@ +{ self, ... }: { lib, config, pkgs, ... }: { + imports = with self.nixosModules; [ magi ]; +} diff --git a/nixos/config/casper.nix b/nixos/config/casper.nix new file mode 100644 index 0000000..622e5e4 --- /dev/null +++ b/nixos/config/casper.nix @@ -0,0 +1,3 @@ +{ self, ... }: { lib, config, pkgs, ... }: { + imports = with self.nixosModules; [ magi ]; +} diff --git a/nixos/config/melchior.nix b/nixos/config/melchior.nix new file mode 100644 index 0000000..622e5e4 --- /dev/null +++ b/nixos/config/melchior.nix @@ -0,0 +1,3 @@ +{ self, ... }: { lib, config, pkgs, ... }: { + imports = with self.nixosModules; [ magi ]; +} diff --git a/nixos/module/magi.nix b/nixos/module/magi.nix index 7ac1f2d..a5c3b2e 100644 --- a/nixos/module/magi.nix +++ b/nixos/module/magi.nix @@ -1,4 +1,10 @@ { self, ... }: { lib, config, pkgs, ... }: { + imports = with self.nixosModules; [ + default + mimalloc + physical + ]; + boot.kernelPackages = let inherit (self.packages.x86_64-linux) linux-hardened; in pkgs.linuxPackagesFor (linux-hardened.override { @@ -56,4 +62,12 @@ CEPH_FS_POSIX_ACL = true; }); }); + + ephemeral = { + device = "nodev"; + boot = { + device = "nodev"; + fsType = "vfat"; + }; + }; }