rename modules to configs
This commit is contained in:
parent
cacbd7a841
commit
a18722742e
4 changed files with 3 additions and 3 deletions
30
configs/server.nix
Normal file
30
configs/server.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue