Compare commits
No commits in common. "fcb86e0709d0d9466e239c4aa9387c9d57ed866a" and "fc2d9b107601a76ccb53dabb33cfd3281b32ff3c" have entirely different histories.
fcb86e0709
...
fc2d9b1076
2 changed files with 31 additions and 1 deletions
|
|
@ -31,6 +31,7 @@
|
||||||
./modules/applications/keepassxc.nix
|
./modules/applications/keepassxc.nix
|
||||||
./modules/games/linux.nix
|
./modules/games/linux.nix
|
||||||
./modules/services/archiveteam-warrior.nix
|
./modules/services/archiveteam-warrior.nix
|
||||||
|
./modules/services/linkding.nix
|
||||||
|
|
||||||
./modules/nix/linux.nix
|
./modules/nix/linux.nix
|
||||||
./modules/shell.nix
|
./modules/shell.nix
|
||||||
|
|
@ -41,7 +42,7 @@
|
||||||
./modules/services/forgejo.nix
|
./modules/services/forgejo.nix
|
||||||
./modules/services/miniflux.nix
|
./modules/services/miniflux.nix
|
||||||
./modules/services/ssh.nix
|
./modules/services/ssh.nix
|
||||||
./modules/services/adguardhome.nix
|
./modules/services/glance.nix
|
||||||
./modules/services/media/arr.nix
|
./modules/services/media/arr.nix
|
||||||
./modules/services/media/jellyfin.nix
|
./modules/services/media/jellyfin.nix
|
||||||
|
|
||||||
|
|
@ -50,6 +51,7 @@
|
||||||
|
|
||||||
./modules/users/nico.nix
|
./modules/users/nico.nix
|
||||||
./modules/users/alex.nix
|
./modules/users/alex.nix
|
||||||
|
./modules/users/deploy.nix
|
||||||
./modules/hardware/secureboot.nix
|
./modules/hardware/secureboot.nix
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
|
|
||||||
|
|
|
||||||
28
modules/users/deploy.nix
Normal file
28
modules/users/deploy.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
{ config, lib, pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
users.users.deploy = {
|
||||||
|
isNormalUser = true;
|
||||||
|
home = "/var/empty";
|
||||||
|
group = "deploy";
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups.deploy = {};
|
||||||
|
|
||||||
|
users.users.deploy.openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXwl+UyfeN/9M/z21mlVS3guYEqIjtgAf5pCPkjXhR0"
|
||||||
|
];
|
||||||
|
|
||||||
|
security.sudo.extraRules = [
|
||||||
|
{
|
||||||
|
users = [ "deploy" ];
|
||||||
|
runAs = "root";
|
||||||
|
commands = [
|
||||||
|
{
|
||||||
|
command = "ALL";
|
||||||
|
options = [ "NOPASSWD" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue