massicot/miniflux: added with kanidm provision

This commit is contained in:
xinyangli 2024-08-05 09:57:11 +08:00
parent 0743f74527
commit 9ffc2ad23d
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
4 changed files with 55 additions and 22 deletions

View file

@ -7,7 +7,7 @@
./networking.nix
./services.nix
];
sops = {
defaultSopsFile = ./secrets.yaml;
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
@ -28,6 +28,9 @@
grafana_oauth_secret = {
owner = "grafana";
};
miniflux_oauth_secret = {
owner = "miniflux";
};
};
};
@ -42,7 +45,7 @@
fileSystems."/mnt/storage" = {
device = "//u380335-sub1.your-storagebox.de/u380335-sub1";
fsType = "cifs";
options = ["credentials=${config.sops.secrets.storage_box_mount.path}"];
options = [ "credentials=${config.sops.secrets.storage_box_mount.path}" ];
};
environment.systemPackages = with pkgs; [
@ -51,7 +54,7 @@
];
system.stateVersion = "22.11";
networking = {
hostName = "massicot";
};
@ -67,9 +70,9 @@
};
security.sudo = {
execWheelOnly = true;
wheelNeedsPassword = false;
};
execWheelOnly = true;
wheelNeedsPassword = false;
};
services.openssh = {
enable = true;
@ -83,6 +86,6 @@
};
services.fail2ban.enable = true;
programs.mosh.enable = true;
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
}