add server config

This commit is contained in:
uku 2024-01-18 16:19:52 +01:00
parent 0cac64029a
commit a5a4e36fac
Signed by: uku
GPG key ID: 7D01D7B105E77166

23
modules/server.nix Normal file
View 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;
};
}