rename modules to configs

This commit is contained in:
uku 2024-02-03 14:44:27 +01:00
parent cacbd7a841
commit a18722742e
Signed by: uku
GPG key ID: 7D01D7B105E77166
4 changed files with 3 additions and 3 deletions

30
configs/server.nix Normal file
View file

@ -0,0 +1,30 @@
{
lib,
pkgs,
config,
...
}: let
username = "uku";
in {
imports = [
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
../programs/fish.nix
../programs/git.nix
../programs/starship.nix
];
hm.home.stateVersion = "23.11";
services.tailscale.extraUpFlags = ["--advertise-exit-node"];
users.users."${username}" = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = ["networkmanager" "wheel"];
hashedPasswordFile = config.age.secrets.userPassword.path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN+7+KfdOrhcnHayxvOENUeMx8rE4XEIV/AxMHiaNUP8"
];
};
}