Files
nixos-config/modules/n/default.nix
2025-08-20 18:24:02 +03:00

24 lines
605 B
Nix

{ 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;
};
}