Initial commit
This commit is contained in:
23
modules/n/default.nix
Normal file
23
modules/n/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user