2022-09-18 19:42:30 +00:00
|
|
|
|
{
|
2022-09-18 22:41:17 +00:00
|
|
|
|
config,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./zfs.nix
|
|
|
|
|
];
|
2022-09-18 19:42:30 +00:00
|
|
|
|
|
2023-07-16 17:53:02 +00:00
|
|
|
|
age.secrets.cf_dns_kilonull.file = ../../../secrets/cf_dns_kilonull.age;
|
|
|
|
|
|
2023-03-20 01:10:43 +00:00
|
|
|
|
aa = {
|
|
|
|
|
nix.enable = true;
|
|
|
|
|
|
2023-04-02 23:17:03 +00:00
|
|
|
|
archetypes = {
|
|
|
|
|
workstation.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2023-09-10 21:47:09 +00:00
|
|
|
|
desktop.addons.waybar.thermal-zone = 1;
|
|
|
|
|
|
2023-03-20 01:10:43 +00:00
|
|
|
|
suites.gaming.enable = true;
|
|
|
|
|
|
2023-03-25 18:06:16 +00:00
|
|
|
|
apps.yubikey.enable = true;
|
2023-03-20 01:37:46 +00:00
|
|
|
|
|
2023-07-16 17:53:02 +00:00
|
|
|
|
security.acme = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# useStaging = true;
|
|
|
|
|
domainName = "kilonull.com";
|
|
|
|
|
dnsCredentialsFile = config.age.secrets.cf_dns_kilonull.path;
|
|
|
|
|
};
|
|
|
|
|
|
2023-03-20 01:37:46 +00:00
|
|
|
|
services.openssh.enable = true;
|
2023-03-25 04:04:13 +00:00
|
|
|
|
services.nix-serve = {
|
|
|
|
|
enable = true;
|
|
|
|
|
domain_name = "kilonull.com";
|
2023-07-16 17:53:02 +00:00
|
|
|
|
subdomain_name = "cache";
|
|
|
|
|
acmeCertName = "kilonull.com";
|
2023-03-25 04:04:13 +00:00
|
|
|
|
};
|
2023-03-25 16:17:58 +00:00
|
|
|
|
services.printing.enable = true;
|
2023-03-25 16:58:31 +00:00
|
|
|
|
services.tailscale = {
|
|
|
|
|
enable = true;
|
|
|
|
|
configureClientRouting = true;
|
|
|
|
|
configureServerRouting = true;
|
|
|
|
|
};
|
2023-08-04 00:21:58 +00:00
|
|
|
|
services.syncoid = {
|
|
|
|
|
enable = true;
|
|
|
|
|
commands = {
|
|
|
|
|
"bpool" = {
|
|
|
|
|
target = "backups@192.168.113.13:tank/backups/gospel/bpool";
|
|
|
|
|
recursive = true;
|
|
|
|
|
sshKey = "/var/lib/syncoid/.ssh/id_ed25519";
|
|
|
|
|
};
|
|
|
|
|
"rpool" = {
|
|
|
|
|
target = "backups@192.168.113.13:tank/backups/gospel/rpool";
|
|
|
|
|
recursive = true;
|
|
|
|
|
sshKey = "/var/lib/syncoid/.ssh/id_ed25519";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2023-09-10 16:20:11 +00:00
|
|
|
|
services.prometheus.enable = true;
|
2023-09-10 17:08:17 +00:00
|
|
|
|
services.promtail.enable = true;
|
2023-03-25 16:28:53 +00:00
|
|
|
|
|
|
|
|
|
hardware.audio.enable = true;
|
2023-07-14 01:36:01 +00:00
|
|
|
|
hardware.bluetooth.enable = true;
|
2023-07-14 01:24:18 +00:00
|
|
|
|
hardware.logitech.enable = true;
|
2023-03-25 17:16:14 +00:00
|
|
|
|
|
|
|
|
|
system.zfs.enable = true;
|
2023-04-01 15:00:59 +00:00
|
|
|
|
system.monitoring.enable = true;
|
2023-03-20 01:10:43 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-06-06 01:25:59 +00:00
|
|
|
|
virtualisation.docker = {
|
|
|
|
|
enable = true;
|
|
|
|
|
rootless = {
|
|
|
|
|
enable = true;
|
|
|
|
|
setSocketVariable = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2023-09-03 00:12:21 +00:00
|
|
|
|
# boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"];
|
2023-04-09 02:07:34 +00:00
|
|
|
|
networking = {
|
|
|
|
|
hostName = "gospel";
|
|
|
|
|
useDHCP = false;
|
|
|
|
|
defaultGateway = "192.168.113.1";
|
2023-08-25 00:29:32 +00:00
|
|
|
|
nameservers = ["192.168.113.13" "1.1.1.1"];
|
2023-04-09 02:07:34 +00:00
|
|
|
|
interfaces.eno1.ipv4.addresses = [
|
|
|
|
|
{
|
|
|
|
|
address = "192.168.113.69"; # nice
|
|
|
|
|
prefixLength = 24;
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-18 19:42:30 +00:00
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
pavucontrol
|
2022-09-18 21:34:41 +00:00
|
|
|
|
cachix
|
2022-11-01 00:21:58 +00:00
|
|
|
|
nixos-generators
|
2023-03-12 03:59:11 +00:00
|
|
|
|
# config.nur.repos.mic92.yubikey-touch-detector
|
2022-11-01 00:21:58 +00:00
|
|
|
|
|
|
|
|
|
cryptsetup
|
|
|
|
|
paperkey
|
|
|
|
|
unzip
|
|
|
|
|
p7zip
|
|
|
|
|
nix-index
|
2022-11-27 16:06:17 +00:00
|
|
|
|
|
|
|
|
|
vlc
|
|
|
|
|
xfce.thunar
|
|
|
|
|
prusa-slicer
|
|
|
|
|
esptool
|
2023-02-14 02:04:19 +00:00
|
|
|
|
minicom
|
2023-03-26 05:05:37 +00:00
|
|
|
|
signal-desktop
|
2022-09-18 19:42:30 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# 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 = "22.05"; # Did you read the comment?
|
|
|
|
|
}
|