53 lines
1.7 KiB
Nix
53 lines
1.7 KiB
Nix
{ config, pkgs, lib, ... }:
|
||
|
||
{
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
boot.supportedFilesystems = [ "zfs" ];
|
||
|
||
networking.hostName = "elysia-clarki";
|
||
networking.interfaces.eno1.useDHCP = true;
|
||
networking.hostId = "265bb40a";
|
||
|
||
virtualisation = {
|
||
podman = {
|
||
enable = true;
|
||
# Create a `docker` alias for podman, to use it as a drop-in replacement
|
||
dockerCompat = true;
|
||
dockerSocket.enable = true;
|
||
defaultNetwork.dnsname.enable = true;
|
||
extraPackages = with pkgs; [ zfs ];
|
||
};
|
||
oci-containers.backend = "podman";
|
||
# Override storage driver
|
||
containers.storage.settings = {
|
||
storage = {
|
||
driver = "zfs";
|
||
graphroot = "/var/lib/containers/storage";
|
||
runroot = "/run/containers/storage";
|
||
};
|
||
};
|
||
};
|
||
|
||
services.photoprism = {
|
||
enable = true;
|
||
url = "http://elysia-clarki:2342";
|
||
rootDir = "/srv/hnd/photoprism";
|
||
environmentFile = config.sops.secrets."photoprism-env".path;
|
||
};
|
||
sops.secrets."photoprism-env" = { };
|
||
|
||
services.fwupd.enable = true;
|
||
|
||
sops.defaultSopsFile = ../secrets/hosts/elysia-clarki/secrets.yaml;
|
||
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "21.05"; # Did you read the comment?
|
||
}
|