add server config
This commit is contained in:
parent
0cac64029a
commit
a5a4e36fac
1 changed files with 23 additions and 0 deletions
23
modules/server.nix
Normal file
23
modules/server.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
username = "uku";
|
||||
in {
|
||||
imports = [
|
||||
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
|
||||
|
||||
../programs/fish.nix
|
||||
../programs/git.nix
|
||||
../programs/starship.nix
|
||||
];
|
||||
|
||||
users.users."${username}" = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.fish;
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
hashedPasswordFile = config.age.secrets.userPassword.path;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue