Compare commits

...

5 commits

Author SHA1 Message Date
3133e2bc51 remove flag
Some checks are pending
Activate Homelab Configuration / rebuild (push) Waiting to run
2026-05-01 16:36:29 +07:00
678676793a fix ventoy warning 2026-05-01 16:05:12 +07:00
3906d680da update hardware config 2026-05-01 15:20:43 +07:00
5c72b53939 fix fstype checks 2026-05-01 15:15:07 +07:00
994fcf66bc update and migrate 2026-05-01 10:22:42 +07:00
8 changed files with 39 additions and 27 deletions

24
flake.lock generated
View file

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1775213373, "lastModified": 1777505151,
"narHash": "sha256-wJHsijC2l/E+ovmlpPGha8pXA6RHSwHWmBV97gvkmyI=", "narHash": "sha256-ul1iRBfVX2vc971tHHhVtxX2hycU3nVwgO005OcOKnw=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "nix", "repo": "nix",
"rev": "ba73719e673e7c2d89ac2f8df0bc0d48983e4907", "rev": "e82c195f2276825b0a08024fdaff80f965edcd69",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -62,11 +62,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1775622785, "lastModified": 1777518431,
"narHash": "sha256-/yFxO+7oS1SymDfJ2iVO7K5vJKcYfe9XGIJ+quLqz0Q=", "narHash": "sha256-SwgiG2T5pbyo33Vz7/vUCAhEMgwCK8Pa2nDSx5a6/WE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "527e47b78fe67213072f706bf933a9705a8c4974", "rev": "2e54a938cdd4c8e414b2518edc3d82308027c670",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -78,11 +78,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1775036866, "lastModified": 1776548001,
"narHash": "sha256-ZojAnPuCdy657PbTq5V0Y+AHKhZAIwSIT2cb8UgAz/U=", "narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6201e203d09599479a3b3450ed24fa81537ebc4e", "rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -109,11 +109,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1775423009, "lastModified": 1777268161,
"narHash": "sha256-vPKLpjhIVWdDrfiUM8atW6YkIggCEKdSAlJPzzhkQlw=", "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "68d8aa3d661f0e6bd5862291b5bb263b2a6595c9", "rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -17,7 +17,7 @@
overlays = [ inputs.gl.overlay ]; overlays = [ inputs.gl.overlay ];
config = { config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [ "ventoy-qt5-1.1.10" ]; permittedInsecurePackages = [ "ventoy-qt5-1.1.12" ];
}; };
}; };
args = { args = {

View file

@ -1,8 +1,8 @@
{ ... }: { { ... }: {
imports = [ imports = [
./misc/cpu-hotplug.nix # ./misc/cpu-hotplug.nix
./misc/serial.nix # ./misc/serial.nix
./misc/qemu-virtio.nix # ./misc/qemu-virtio.nix
# ^^ only used if vm # ^^ only used if vm
./core/firmware.nix ./core/firmware.nix

View file

@ -5,26 +5,35 @@
{ {
imports = imports =
[ (modulesPath + "/profiles/qemu-guest.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/e33ab472-e518-4b4d-89d1-d75cfecb9f06"; { device = "/dev/disk/by-uuid/e5a7d45d-b9e9-43e7-ba5f-f4e67821bd0b";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/880C-9F0A"; { device = "/dev/disk/by-uuid/EC01-36B5";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -19,5 +19,6 @@ in {
device = "/mnt/data/apps/cryptpad"; device = "/mnt/data/apps/cryptpad";
depends = [ "/mnt/data" ]; depends = [ "/mnt/data" ];
options = [ "bind" "nofail" ]; options = [ "bind" "nofail" ];
fsType = "none";
}; };
} }

View file

@ -15,5 +15,6 @@
device = "/mnt/data/apps/vaultwarden/data"; device = "/mnt/data/apps/vaultwarden/data";
depends = [ "/mnt/data" ]; depends = [ "/mnt/data" ];
options = [ "bind" "nofail" ]; options = [ "bind" "nofail" ];
fsType = "none";
}; };
} }

View file

@ -31,6 +31,7 @@ in {
device = "/mnt/data/apps/acme/${homelab.proxy.base}"; device = "/mnt/data/apps/acme/${homelab.proxy.base}";
depends = [ "/mnt/data" ]; depends = [ "/mnt/data" ];
options = [ "bind" "nofail" ]; options = [ "bind" "nofail" ];
fsType = "none";
}; };
services = { services = {

View file

@ -2,7 +2,7 @@
ts-flags = [ ts-flags = [
"--advertise-exit-node" "--advertise-exit-node"
"--advertise-routes=10.3.14.0/24,192.168.1.0/24" "--advertise-routes=10.3.14.0/24,192.168.1.0/24"
"--ssh" "--webclient" "--ssh"
]; ];
in { in {
imports = [ imports = [