202 lines
5.6 KiB
Nix
202 lines
5.6 KiB
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
admin = "niten@fudo.org";
|
|
|
|
local-domain = "sea.fudo.org";
|
|
|
|
in {
|
|
|
|
config = mkIf (config.fudo.common.site == "seattle") {
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
services.cron = {
|
|
mailto = admin;
|
|
};
|
|
|
|
networking = {
|
|
domain = local-domain;
|
|
search = [local-domain "fudo.org"];
|
|
firewall.enable = false;
|
|
networkmanager.enable = pkgs.lib.mkForce false;
|
|
|
|
# Until Comcast gets it's shit together... :(
|
|
enableIPv6 = false;
|
|
};
|
|
|
|
users.extraUsers = {
|
|
guest = {
|
|
isNormalUser = true;
|
|
uid = 1000;
|
|
description = "Guest User";
|
|
extraGroups = ["audio" "video" "disk" "floppy" "lp" "cdrom" "tape" "input"];
|
|
};
|
|
ken = {
|
|
isNormalUser = true;
|
|
uid = 10035;
|
|
createHome = true;
|
|
description = "Ken Selby";
|
|
extraGroups = ["audio" "video" "disk" "floppy" "lp" "cdrom" "tape" "input"];
|
|
group = "users";
|
|
home = "/home/selby/ken";
|
|
hashedPassword = "$6$EwK9fpbH8$gYVzYY1IYw2/G0wCeUxXrZZqvjWCkCZbBqCOhxowbMuYtC5G0vp.AoYhVKWOJcHJM2c7TdPmAdnhLIe2KYStf.";
|
|
};
|
|
xiaoxuan = {
|
|
isNormalUser = true;
|
|
uid = 10065;
|
|
createHome = true;
|
|
description = "Xiaoxuan Jin";
|
|
extraGroups = ["audio" "video" "disk" "floppy" "lp" "cdrom" "tape" "input"];
|
|
group = "users";
|
|
home = "/home/xiaoxuan";
|
|
hashedPassword = "$6$C8lYHrK7KvdKm/RE$cHZ2hg5gEOEjTV8Zoayik8sz5h.Vh0.ClCgOlQn8l/2Qx/qdxqZ7xCsAZ1GZ.IEyESfhJeJbjLpykXDwPpfVF0";
|
|
};
|
|
};
|
|
|
|
fileSystems."/mnt/documents" = {
|
|
device = "whitedwarf.${local-domain}:/volume1/Documents";
|
|
fsType = "nfs4";
|
|
};
|
|
fileSystems."/mnt/downloads" = {
|
|
device = "whitedwarf.${local-domain}:/volume1/Downloads";
|
|
fsType = "nfs4";
|
|
};
|
|
fileSystems."/mnt/music" = {
|
|
device = "doraemon.${local-domain}:/volume1/Music";
|
|
fsType = "nfs4";
|
|
};
|
|
fileSystems."/mnt/video" = {
|
|
device = "doraemon.${local-domain}:/volume1/Video";
|
|
fsType = "nfs4";
|
|
};
|
|
# fileSystems."/mnt/security" = {
|
|
# device = "panopticon.${local-domain}:/srv/kerberos/data";
|
|
# fsType = "nfs4";
|
|
# };
|
|
fileSystems."/mnt/cargo_video" = {
|
|
device = "cargo.${local-domain}:/volume1/video";
|
|
fsType = "nfs4";
|
|
};
|
|
fileSystems."/mnt/photo" = {
|
|
device = "cargo.${local-domain}:/volume1/pictures";
|
|
fsType = "nfs4";
|
|
};
|
|
|
|
# Should use this eventually...
|
|
# fudo.localNetwork = {
|
|
# masterNameServer = {
|
|
# ip = "10.0.0.1";
|
|
# ipReverseDomain = "0.10.in-addr.arpa";
|
|
# };
|
|
|
|
# domain = "${local-domain}";
|
|
|
|
# hostAliases = {
|
|
# kadmin = "slab";
|
|
# kdc = "slab";
|
|
# photo = "doraemon";
|
|
# music = "doraemon";
|
|
# panopticon = "hyperion";
|
|
# hole = "dnshole";
|
|
# ipfs = "nostromo";
|
|
# };
|
|
|
|
# hosts = {
|
|
# slab = {
|
|
# ipv4Address = "10.0.0.1";
|
|
# };
|
|
# volsung = {
|
|
# ipv4Address = "10.0.0.106";
|
|
# macAddress = "ac:bc:32:7b:75:a5";
|
|
# };
|
|
# nest = {
|
|
# ipv4Address = "10.0.0.176";
|
|
# macAddress = "18:b4:30:16:7c:5a";
|
|
# };
|
|
# monolith = {
|
|
# ipv4Address = "10.0.0.100";
|
|
# macAddress = "6c:62:6d:c8:b0:d8";
|
|
# };
|
|
# brother-wireless = {
|
|
# ipv4Address = "10.0.0.160";
|
|
# macAddress = "c0:38:96:64:49:65";
|
|
# };
|
|
# doraemon = {
|
|
# ipv4Address = "10.0.0.52";
|
|
# macAddress = "00:11:32:0a:06:c5";
|
|
# };
|
|
# lm = {
|
|
# ipv4Address = "10.0.0.21";
|
|
# macAddress = "52:54:00:D8:34:92";
|
|
# };
|
|
# ubiquiti-wifi = {
|
|
# ipv4Address = "10.0.0.126";
|
|
# macAddress = "04:18:d6:20:48:fb";
|
|
# };
|
|
# front-light = {
|
|
# ipv4Address = "10.0.0.221";
|
|
# macAddress = "94:10:3e:48:94:ed";
|
|
# };
|
|
# ipad = {
|
|
# ipv4Address = "10.0.0.202";
|
|
# macAddress = "9c:35:eb:48:6e:71";
|
|
# };
|
|
# chromecast-2 = {
|
|
# ipv4Address = "10.0.0.215";
|
|
# macAddress = "a4:77:33:59:a2:ba";
|
|
# };
|
|
# taipan = {
|
|
# ipv4Address = "10.0.0.107";
|
|
# macAddress = "52:54:00:34:c4:78";
|
|
# };
|
|
# dns-hole = {
|
|
# ipv4Address = "10.0.0.185";
|
|
# macAddress = "b8:27:eb:b2:95:fd";
|
|
# };
|
|
# family-tv = {
|
|
# ipv4Address = "10.0.0.205";
|
|
# macAddress = "84:a4:66:3a:b1:f8";
|
|
# };
|
|
# spark = {
|
|
# ipv4Address = "10.0.0.108";
|
|
# macAddress = "78:24:af:04:f7:dd";
|
|
# };
|
|
# babycam = {
|
|
# ipv4Address = "10.0.0.206";
|
|
# macAddress = "08:ea:40:59:5f:9e";
|
|
# };
|
|
# hyperion = {
|
|
# ipv4Address = "10.0.0.109";
|
|
# macAddress = "52:54:00:33:46:de";
|
|
# };
|
|
# cargo = {
|
|
# ipv4Address = "10.0.0.50";
|
|
# macAddress = "00:11:32:75:d8:b7";
|
|
# };
|
|
# cam-entrance = {
|
|
# ipv4Address = "10.0.0.31";
|
|
# macAddress = "9c:8e:cd:0e:99:7b";
|
|
# };
|
|
# cam-driveway = {
|
|
# ipv4Address = "10.0.0.32";
|
|
# macAddress = "9c:8e:cd:0d:3b:09";
|
|
# };
|
|
# cam-deck = {
|
|
# ipv4Address = "10.0.0.33";
|
|
# macAddress = "9c:8e:cd:0e:98:c8";
|
|
# };
|
|
# nostromo = {
|
|
# ipv4Address = "10.0.0.2";
|
|
# macAddress = "14:fe:b5:ca:a2:c9";
|
|
# };
|
|
# zbox = {
|
|
# ipv4Address = "10.0.0.110";
|
|
# macAddress = "18:60:24:91:CC:27";
|
|
# };
|
|
# };
|
|
# };
|
|
};
|
|
}
|