Add owner.nix
This commit is contained in:
parent
a5cc5ad811
commit
7ecb185ea6
2 changed files with 23 additions and 0 deletions
2
modules/home-manager.nix
Normal file
2
modules/home-manager.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
21
modules/owner.nix
Normal file
21
modules/owner.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
flake = {
|
||||
meta.owner = {
|
||||
username = "opdavies";
|
||||
};
|
||||
|
||||
modules = {
|
||||
nixos.pc = {
|
||||
users.users.${config.flake.meta.owner.username} = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "";
|
||||
extraGroups = [ "input" "wheel" ];
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ config.flake.meta.owner.username ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue