nixos-config/config/site-config/seattle.nix

108 lines
3.1 KiB
Nix
Raw Normal View History

2021-02-25 12:45:50 -08:00
{ config, lib, pkgs, ... }:
2021-06-08 14:22:37 -07:00
let local-domain = "sea.fudo.org";
2021-04-02 14:08:01 -07:00
in {
fileSystems = {
2021-11-05 07:06:08 -07:00
# "/mnt/documents" = {
# device = "whitedwarf.${local-domain}:/volume1/Documents";
# fsType = "nfs4";
# options = [ "comment=systemd.automount" ];
# };
# "/mnt/downloads" = {
# device = "whitedwarf.${local-domain}:/volume1/Downloads";
# fsType = "nfs4";
# options = [ "comment=systemd.automount" ];
# };
2021-04-02 14:08:01 -07:00
"/mnt/music" = {
device = "doraemon.${local-domain}:/volume1/Music";
fsType = "nfs4";
options = [ "comment=systemd.automount" ];
2021-04-02 14:08:01 -07:00
};
"/mnt/video" = {
device = "doraemon.${local-domain}:/volume1/Video";
fsType = "nfs4";
options = [ "comment=systemd.automount" ];
2021-04-02 14:08:01 -07:00
};
# fileSystems."/mnt/security" = {
# device = "panopticon.${local-domain}:/srv/kerberos/data";
# fsType = "nfs4";
# };
"/mnt/cargo_video" = {
device = "cargo.${local-domain}:/volume1/video";
fsType = "nfs4";
options = [ "comment=systemd.automount" ];
2021-04-02 14:08:01 -07:00
};
"/mnt/photo" = {
device = "cargo.${local-domain}:/volume1/pictures";
fsType = "nfs4";
options = [ "comment=systemd.automount" ];
2021-04-02 14:08:01 -07:00
};
2021-11-13 10:30:58 -08:00
# "proto=tcp"
# NOTE: these are pointing directly to nostromo so the krb lookup works
2021-10-19 10:04:35 -07:00
"/net/documents" = {
device = "nostromo.sea.fudo.org:/export/documents";
fsType = "nfs4";
2021-11-13 10:30:58 -08:00
options = [ "comment=systemd.automount" "sec=krb5p" ];
2021-10-18 21:55:24 -07:00
};
2021-10-19 10:04:35 -07:00
"/net/downloads" = {
device = "nostromo.sea.fudo.org:/export/downloads";
fsType = "nfs4";
2021-11-13 10:30:58 -08:00
options = [ "comment=systemd.automount" "sec=krb5i" ];
};
"/net/projects" = {
device = "nostromo.sea.fudo.org:/export/projects";
fsType = "nfs4";
2021-11-13 10:30:58 -08:00
options = [ "comment=systemd.automount" "sec=krb5p" ];
2021-10-18 21:55:24 -07:00
};
2021-04-02 14:08:01 -07:00
};
systemd = {
## This fails if the filesystems already exist
# tmpfiles.rules = [
# "d /net/documents - root sea-documents - -"
# "d /net/downloads - root sea-downloads - -"
# "d /net/projects - root sea-projects - -"
# ];
# mounts = [
# {
# what = "sea-store.sea.fudo.org:/export/documents";
# where = "/net/documents";
# type = "nfs4";
# options = "sec=krb5p";
# description = "sea-store documents on encrypted filesysem.";
# }
# {
# what = "sea-store.sea.fudo.org:/export/downloads";
# where = "/net/downloads";
# type = "nfs4";
# options = "sec=krb5i";
# description = "sea-store downloads on encrypted filesysem.";
# }
# {
# what = "sea-store.sea.fudo.org:/export/projects";
# where = "/net/projects";
# type = "nfs4";
# options = "sec=krb5p";
# description = "sea-store projects on encrypted filesysem.";
# }
# ];
};
2021-10-19 10:04:35 -07:00
2021-04-02 14:08:01 -07:00
services.printing = {
enable = true;
drivers = [
2021-06-08 14:22:37 -07:00
# pkgs.brlaser
# pkgs.brgenml1lpr
# pkgs.brgenml1cupswrapper
# pkgs.hll2380dw-cups
# pkgs.hll2380dw-lpr
2021-04-02 14:08:01 -07:00
];
};
2021-06-08 14:22:37 -07:00
environment.systemPackages = with pkgs; [ hll2380dw-cups ];
2021-03-31 16:28:42 -07:00
}