From ad59ee55ccd2cd78877005cc1da48846b66c3227 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Sun, 4 May 2025 18:18:34 +0200 Subject: [PATCH] feat: introducing my own system_profiles --- system_profiles/mini-container.nix | 10 ++++++++++ system_profiles/mini.nix | 21 +++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 system_profiles/mini-container.nix create mode 100644 system_profiles/mini.nix diff --git a/system_profiles/mini-container.nix b/system_profiles/mini-container.nix new file mode 100644 index 0000000..498bbb2 --- /dev/null +++ b/system_profiles/mini-container.nix @@ -0,0 +1,10 @@ +{ + imports = [ + ./mini.nix + + { + boot.isContainer = true; + boot.kernel.enable = false; + } + ]; +} diff --git a/system_profiles/mini.nix b/system_profiles/mini.nix new file mode 100644 index 0000000..70c1639 --- /dev/null +++ b/system_profiles/mini.nix @@ -0,0 +1,21 @@ +{ + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/profiles/minimal.nix") + (modulesPath + "/profiles/perlless.nix") + + { + boot.isContainer = true; + boot.kernel.enable = false; + environment.defaultPackages = []; + nixpkgs.overlays = [(self: super: {})]; + } + ]; + + disabledModules = [ + (modulesPath + "/profiles/all-hardware.nix") + (modulesPath + "/profiles/base.nix") + ]; +}