dotfiles/systems/x86_64-linux/gospel/default.nix

179 lines
4.1 KiB
Nix
Raw Normal View History

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
age.secrets.cf_dns_kilonull.file = ../../../secrets/cf_dns_kilonull.age;
2024-09-29 06:19:43 +00:00
age.secrets.gitea-runner-gospel.file = ../../../secrets/gitea-runner-gospel.age;
2023-03-20 01:10:43 +00:00
aa = {
nix.enable = true;
archetypes = {
workstation.enable = true;
};
2024-08-03 03:25:59 +00:00
# TODO: How to inform a home manager module about this?
# desktop.addons.waybar.thermal-zone = 1;
2023-09-10 21:47:09 +00:00
2023-03-20 01:10:43 +00:00
suites.gaming.enable = true;
apps.yubikey.enable = true;
2023-03-20 01:37:46 +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;
services.nix-serve = {
enable = true;
domain_name = "kilonull.com";
subdomain_name = "cache";
acmeCertName = "kilonull.com";
};
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-09-10 16:20:11 +00:00
services.prometheus.enable = true;
services.promtail.enable = true;
2024-03-06 04:03:34 +00:00
services.hydra = {
enable = true;
acmeCertName = "kilonull.com";
2024-03-10 21:28:44 +00:00
secretKeyPath = "/var/gospelCache";
s3Bucket = "nix-store";
s3Endpoint = "minio.kilonull.com";
2024-03-06 04:03:34 +00:00
};
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;
system.zfs.enable = true;
system.monitoring.enable = true;
2024-11-14 02:16:06 +00:00
user.extraGroups = ["dialout" "libvirtd"];
2023-03-20 01:10:43 +00:00
};
2024-10-07 03:37:09 +00:00
services.udev.packages = [
(pkgs.writeTextFile {
name = "microbit-udev-rules";
text = ''
# CMSIS-DAP for microbit
ACTION!="add|change", GOTO="microbit_rules_end"
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", TAG+="uaccess"
LABEL="microbit_rules_end"
'';
destination = "/etc/udev/rules.d/69-microbit.rules";
})
];
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances = {
gospel = {
enable = true;
name = config.networking.hostName;
url = "https://git.alejandr0angul0.dev";
tokenFile = config.age.secrets.gitea-runner-gospel.path;
labels = [
"ubuntu-latest:docker://node:16-bullseye"
"ubuntu-22.04:docker://node:16-bullseye"
"ubuntu-20.04:docker://node:16-bullseye"
"ubuntu-18.04:docker://node:16-buster"
];
};
2024-09-29 06:19:43 +00:00
};
};
virtualisation = {
libvirtd.enable = true;
docker = {
2023-06-06 01:25:59 +00:00
enable = true;
storageDriver = "overlay2";
rootless = {
enable = true;
setSocketVariable = true;
};
2023-06-06 01:25:59 +00:00
};
};
programs.virt-manager.enable = true;
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
nixos-generators
2023-03-12 03:59:11 +00:00
# config.nur.repos.mic92.yubikey-touch-detector
cryptsetup
paperkey
chromium
unzip
p7zip
nix-index
2022-11-27 16:06:17 +00:00
vlc
xfce.thunar
prusa-slicer
esptool
minicom
2023-03-26 05:05:37 +00:00
signal-desktop
ncdu
cntr
bundler
bundix
nix-output-monitor
iw
wpa_supplicant
mqttui
openscad
zoom-us
2024-11-14 02:16:06 +00:00
tridactyl-native
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. Its 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?
}