1
0
Fork 0
forked from fi/nix-infra
fi-nix-infra/config/hosts/torrent/configuration.nix

35 lines
619 B
Nix

{ ... }:
{
boot.loader.grub = {
enable = true;
device = "/dev/vda";
};
networking = {
hostName = "torrent";
};
fileSystems = {
"/mnt/media" = {
device = "//10.202.100.5/media";
fsType = "cifs";
options = [
"username=torrent"
"credentials=/run/secrets/torrent-samba-credentials"
"iocharset=utf8"
"vers=3.1.1"
"uid=torrent"
"gid=torrent"
"_netdev"
];
};
};
sops.secrets."torrent-samba-credentials" = {
mode = "0440";
owner = "root";
group = "root";
};
system.stateVersion = "24.11";
}