Initial commit

This commit is contained in:
2025-08-20 18:24:02 +03:00
commit 2dec42d487
116 changed files with 6591 additions and 0 deletions

23
modules/n/default.nix Normal file
View File

@@ -0,0 +1,23 @@
{ lib, config, pkgs, host, ... }:
with lib;
let
cfg = config.n.host;
in {
options.n.host = {
kernel = mkOption {
type = types.raw;
default = pkgs.linuxKernel.packages.linux_6_1_hardened;
};
users = mkOption { type = with types; attrs; default = {}; };
defaultUser = mkOption { type = type.str; };
extras = mkOption { type = with types; listOf path; };
types = mkOption { type = with types; listOf str; };
};
options.nodes = mkOption { type = with types; attrsOf attrs; };
config = {
boot.kernelPackages = cfg.kernel;
users.users = cfg.users;
};
}