mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Using ./home.nix and ./nixos.nix as entrypoints for hosts. Using hardware profiles. Using new entrypoints (profiles/base/profiles.nix + profiles/base/home.nix). New modules (for DNS handling, for themeing, ...). Split up deploy-tf.nix into several modules. Renamed common profile to base profile.
91 lines
1.7 KiB
Nix
91 lines
1.7 KiB
Nix
{ config, users, pkgs, lib, profiles, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
# Imports
|
|
|
|
imports = [
|
|
profiles.hardware.v330-14arr
|
|
profiles.gui
|
|
profiles.laptop
|
|
users.kat.guiFull
|
|
../../services/zfs.nix
|
|
../../services/restic.nix
|
|
../../services/node-exporter.nix
|
|
../../services/promtail.nix
|
|
../../services/netdata.nix
|
|
../../services/nginx.nix
|
|
];
|
|
|
|
home-manager.users.kat = {
|
|
imports = [
|
|
./home.nix
|
|
];
|
|
};
|
|
|
|
# File Systems and Swap
|
|
|
|
boot.supportedFilesystems = singleton "zfs";
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "rpool/safe/root";
|
|
fsType = "zfs";
|
|
};
|
|
"/home" = {
|
|
device = "rpool/safe/home";
|
|
fsType = "zfs";
|
|
};
|
|
"/nix" = {
|
|
device = "rpool/local/nix";
|
|
fsType = "zfs";
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/2552-18F2";
|
|
fsType = "vfat";
|
|
};
|
|
};
|
|
|
|
swapDevices = [{ device = "/dev/disk/by-uuid/87ff4f68-cc00-494e-8eba-050469c3bf03"; }];
|
|
|
|
# Bootloader
|
|
|
|
boot.loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
# Networking
|
|
|
|
networking = {
|
|
hostId = "dddbb888";
|
|
hostName = "yule";
|
|
useDHCP = false;
|
|
wireless.interfaces = singleton "wlp2s0";
|
|
interfaces = {
|
|
enp1s0.useDHCP = true;
|
|
wlp2s0.useDHCP = true;
|
|
};
|
|
};
|
|
|
|
# Firewall
|
|
|
|
kw.fw.private.interfaces = singleton "yggdrasil";
|
|
kw.fw.public.interfaces = [ "enp1s0" "wlp2s0" ];
|
|
|
|
# Yggdrasil
|
|
|
|
network.yggdrasil = {
|
|
enable = true;
|
|
pubkey = "9779fd6b5bdba6b9e0f53c96e141f4b11ce5ef749d1b9e77a759a3fdbd33a653";
|
|
# if server, enable this and set endpoint:
|
|
listen.enable = false;
|
|
listen.endpoints = [ "tcp://0.0.0.0:0" ];
|
|
};
|
|
|
|
# State
|
|
|
|
system.stateVersion = "20.09";
|
|
}
|
|
|