feat: migrate remaining applications, services, and user configurations
This commit is contained in:
parent
3a8f6e6451
commit
2960480557
26 changed files with 2903 additions and 0 deletions
21
users/backup/default.nix
Normal file
21
users/backup/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homelab.users.backup;
|
||||
in {
|
||||
options.homelab.users.backup.enable = lib.mkEnableOption "user Backup";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
users.users.backup = {
|
||||
description = "Backup User";
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"docker" # Allow access to the docker socket.
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
# Hugo
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICms6vjhE9kOlqV5GBPGInwUHAfCSVHLI2Gtzee0VXPh"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue