chore: reorganize some configs to be in the proper place
This commit is contained in:
parent
6dc2894c43
commit
1940f26e70
3 changed files with 22 additions and 19 deletions
|
|
@ -5,6 +5,7 @@ in
|
|||
{ pkgs, docspell, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./openssh.nix
|
||||
./firewall.nix
|
||||
./fail2ban.nix
|
||||
./borgbackup.nix
|
||||
|
|
@ -32,24 +33,5 @@ in
|
|||
zramSwap.enable = true;
|
||||
networking.hostName = "quasar";
|
||||
networking.domain = "";
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQNIDqvhcfLKIDJybVI0o32CSDZpBXxjRxXj6OVQ93E khais@nixos''
|
||||
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK9C7ssXUVVMKOxfJOumkP3dUWVtC3cBPlCIl6ZZc8ug khais@void''
|
||||
];
|
||||
users.groups.paperless-upload = {};
|
||||
users.users.paperless = {
|
||||
extraGroups = [ "paperless-upload" ];
|
||||
};
|
||||
users.users.paperless-upload = {
|
||||
isNormalUser = true;
|
||||
homeMode = "770";
|
||||
group = "paperless";
|
||||
};
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
|||
12
openssh.nix
Normal file
12
openssh.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQNIDqvhcfLKIDJybVI0o32CSDZpBXxjRxXj6OVQ93E khais@nixos''
|
||||
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK9C7ssXUVVMKOxfJOumkP3dUWVtC3cBPlCIl6ZZc8ug khais@void''
|
||||
];
|
||||
}
|
||||
|
|
@ -28,4 +28,13 @@ in
|
|||
PAPERLESS_THREADS_PER_WORKER = "1";
|
||||
};
|
||||
};
|
||||
users.groups.paperless-upload = {};
|
||||
users.users.paperless = {
|
||||
extraGroups = [ "paperless-upload" ];
|
||||
};
|
||||
users.users.paperless-upload = {
|
||||
isNormalUser = true;
|
||||
homeMode = "770";
|
||||
group = "paperless";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue