feat(common): add deploy user

This commit is contained in:
Ashhhleyyy 2025-01-02 19:59:05 +00:00
parent b873bfd34c
commit b62d7c32b1
Signed by: ash
GPG key ID: 83B789081A0878FB
4 changed files with 15 additions and 5 deletions

View file

@ -4,6 +4,7 @@
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "@wheel" "deploy" ];
boot.tmp.cleanOnBoot = true;
boot.supportedFilesystems = [ "ntfs" ];
@ -38,6 +39,20 @@
extraGroups = [ "wheel" "audio" "dialout" "adbusers" ];
};
users.groups.deploy = {};
users.users.deploy = {
description = "Deploy";
group = "deploy";
isNormalUser = false;
isSystemUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDOfH436QTUDSNGd254ADoyBKNRL4Y+abCeWXLt5liW3 deploy@ashhhleyyy.dev"
];
};
security.sudo.extraRules = [
{ users = [ "deploy" ]; commands = [ { command = "ALL"; options = [ "NOPASSWD" ]; } ]; }
];
security.doas.enable = true;
security.doas.wheelNeedsPassword = false;

View file

@ -21,8 +21,6 @@
console.keyMap = "uk";
nix.settings.trusted-users = [ "@wheel" ];
nixpkgs.config.allowUnfree = true;
services.openssh = {

View file

@ -21,7 +21,6 @@
console.keyMap = "uk";
nix.settings.trusted-users = [ "@wheel" ];
nixpkgs.config.allowUnfree = true;

View file

@ -24,8 +24,6 @@
console.keyMap = "uk";
nix.settings.trusted-users = [ "@wheel" ];
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [