62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{ inputs, config, libs, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
inputs.sops-nix.nixosModules.sops
|
|
./hardware-configuration.nix
|
|
./networking.nix
|
|
./services.nix
|
|
];
|
|
|
|
customSettings = {
|
|
auth.enable = true;
|
|
nix.enable = true;
|
|
};
|
|
|
|
sops = {
|
|
defaultSopsFile = ./secrets.yaml;
|
|
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
secrets = {
|
|
storage_box_mount = {
|
|
owner = "root";
|
|
};
|
|
gts_env = {
|
|
owner = "gotosocial";
|
|
};
|
|
hedgedoc_env = {
|
|
owner = "hedgedoc";
|
|
};
|
|
grafana_cloud_api = {
|
|
owner = "prometheus";
|
|
sopsFile = ../secrets.yaml;
|
|
};
|
|
};
|
|
};
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
boot.loader.efi.efiSysMountPoint = "/boot";
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
configurationLimit = 5;
|
|
};
|
|
|
|
fileSystems."/mnt/storage" = {
|
|
device = "//u380335-sub1.your-storagebox.de/u380335-sub1";
|
|
fsType = "cifs";
|
|
options = ["credentials=${config.sops.secrets.storage_box_mount.path}"];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
cifs-utils
|
|
git
|
|
];
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
networking = {
|
|
hostName = "massicot";
|
|
};
|
|
|
|
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
|
|
}
|