Zerotier
This commit is contained in:
parent
efd6ea7eca
commit
8e04335e92
3 changed files with 36 additions and 0 deletions
|
|
@ -15,6 +15,10 @@
|
|||
../../users/kylekrein
|
||||
(import ../../modules/libvirt/user.nix {username = "kylekrein";})
|
||||
|
||||
../../users/dima
|
||||
(import ../../modules/libvirt/user.nix {username = "dima";})
|
||||
|
||||
|
||||
../../users/tania
|
||||
];
|
||||
|
||||
|
|
@ -28,6 +32,7 @@
|
|||
enable = true;
|
||||
joinNetworks = [
|
||||
"A84AC5C10AD269CA"
|
||||
"db64858fed285e0f"
|
||||
];
|
||||
};
|
||||
#LLMs
|
||||
|
|
|
|||
|
|
@ -28,4 +28,11 @@
|
|||
prismlauncher
|
||||
unstable-pkgs.mcpelauncher-ui-qt
|
||||
];
|
||||
|
||||
services.zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [
|
||||
"db64858fed285e0f"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
24
nixos/users/dima/default.nix
Normal file
24
nixos/users/dima/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, config, lib, hwconfig, inputs, first-nixos-install, ... }:
|
||||
let username = "dima";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
];
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "Dima";
|
||||
extraGroups = [ "networkmanager" ];
|
||||
initialPassword = "1234";
|
||||
#hashedPasswordFile = config.sops.secrets."users/${username}".path;
|
||||
packages = with pkgs; [
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILIc/J6YxwWKajJ923/PZ2fcgLgWZdVMcZQ4oZZ+2hwn dima@dragonarch"
|
||||
];
|
||||
|
||||
};
|
||||
programs.ssh.forwardX11 = true;
|
||||
|
||||
home-manager.users."${username}" = import ../../home.nix { inherit lib; inherit username; inherit inputs; inherit first-nixos-install; inherit hwconfig; inherit config; inherit pkgs; };
|
||||
systemd.tmpfiles.rules = (if hwconfig.useImpermanence then ["d /persist/home/${username} 0700 ${username} users -"] else []); # /persist/home/<user> created, owned by that user
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue