mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add minimal modular setup
This commit is contained in:
commit
e81d8c9be4
19 changed files with 351 additions and 0 deletions
16
modules/nixos/core/user.nix
Normal file
16
modules/nixos/core/user.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
options = {
|
||||
mods.user.name = lib.mkOption {
|
||||
default = "muon";
|
||||
description = "username of the main system user";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
users.users.${config.mods.user.name} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
initialPassword = "changeme";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue