fixed file structore

This commit is contained in:
vali 2024-04-10 17:44:54 +02:00
commit 732a343ac6
32 changed files with 102 additions and 36 deletions

28
modules/other/system.nix Normal file
View file

@ -0,0 +1,28 @@
{
config,
lib,
...
}: with lib; let
cfg = config.myOptions.other.system;
in {
options.myOptions.other.system = {
hostname = mkOption {
description = "hostname for this system";
type = types.str;
};
username = mkOption {
description = "username for this system";
type = types.str;
};
};
config = {
networking.hostName = cfg.hostname;
users.users.${cfg.username} = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
};
}