mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 05:29:17 -05:00
Aly Raffauf
b528178ca6
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
77 lines
1.8 KiB
Nix
77 lines
1.8 KiB
Nix
{
|
|
config,
|
|
self,
|
|
...
|
|
}: let
|
|
domain = "raffauflabs.com";
|
|
in {
|
|
imports = [
|
|
./disko.nix
|
|
./home.nix
|
|
./secrets.nix
|
|
self.inputs.nixhw.nixosModules.common-intel-cpu
|
|
self.inputs.nixhw.nixosModules.common-intel-gpu
|
|
self.inputs.nixhw.nixosModules.common-bluetooth
|
|
self.inputs.nixhw.nixosModules.common-ssd
|
|
self.inputs.raffauflabs.nixosModules.raffauflabs
|
|
self.nixosModules.common-auto-upgrade
|
|
self.nixosModules.common-base
|
|
self.nixosModules.common-locale
|
|
self.nixosModules.common-mauville-share
|
|
self.nixosModules.common-nix
|
|
self.nixosModules.common-overlays
|
|
self.nixosModules.common-pkgs
|
|
self.nixosModules.common-tailscale
|
|
self.nixosModules.common-wifi-profiles
|
|
];
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
|
|
|
|
loader = {
|
|
efi.canTouchEfiVariables = true;
|
|
systemd-boot.enable = true;
|
|
};
|
|
};
|
|
|
|
hardware.enableAllFirmware = true;
|
|
networking.hostName = "slateport";
|
|
|
|
services.k3s = {
|
|
enable = true;
|
|
clusterInit = true;
|
|
role = "server";
|
|
tokenFile = config.age.secrets.k3s.path;
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
zramSwap.memoryPercent = 100;
|
|
|
|
ar = {
|
|
apps.podman.enable = true;
|
|
|
|
users.aly = {
|
|
enable = true;
|
|
password = "$y$j9T$Lit66g43.Zn60mwGig7cx1$L.aLzGvy0q.b1E40/XSIkhj2tkJbigpXFrxR/D/FVB4";
|
|
|
|
syncthing = {
|
|
enable = true;
|
|
certFile = config.age.secrets.syncthingCert.path;
|
|
keyFile = config.age.secrets.syncthingKey.path;
|
|
syncMusic = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
raffauflabs = {
|
|
inherit domain;
|
|
enable = true;
|
|
|
|
services.ddclient = {
|
|
enable = true;
|
|
passwordFile = config.age.secrets.cloudflare.path;
|
|
protocol = "cloudflare";
|
|
};
|
|
};
|
|
}
|