feat: introduction of system_profiles

This commit is contained in:
Ranomier 2025-06-14 21:43:23 +02:00
parent 116aaaacff
commit 855b932cbd
15 changed files with 117 additions and 67 deletions

View file

@ -0,0 +1,6 @@
# For when to deploy to a container,
# can be used with minify to make things smaller
{lib, ...}: {
boot.isContainer = lib.mkDefault true;
boot.kernel.enable = lib.mkDefault false;
}

View file

@ -0,0 +1,16 @@
# This makes an installation smaller at the cost of
# features (and maybe even stability)
{lib, modulesPath, ...}: {
imports = [
(modulesPath + "/profiles/minimal.nix")
#(modulesPath + "/profiles/perlless.nix")
];
disabledModules = [
(modulesPath + "/profiles/all-hardware.nix")
(modulesPath + "/profiles/base.nix")
];
environment.defaultPackages = lib.mkDefault [];
nixpkgs.overlays = lib.mkDefault [(self: super: {})];
}

View file

@ -0,0 +1,21 @@
# This loads some nix and nixpkgs specific settints
# i often need
{lib, pkgs, ...}: {
# Disable if you don't want unfree packages
nixpkgs.config.allowUnfree = lib.mkDefault true;
nix = {
# https://lix.systems/
# Lix is a modern, delicious implementation of the Nix package manager,
# focused on correctness, usability, and growth
# and committed to doing right by its community.
package = lib.mkDefault pkgs.lix;
channel.enable = lib.mkDefault false;
settings.experimental-features = lib.mkDefault [
"nix-command"
"flakes"
];
};
}