This commit is contained in:
2026-09-26 02:14:34 +02:00
parent 7a07c37bc3
commit a8365a1a73
17 changed files with 313 additions and 134 deletions

View File

@@ -1,16 +1,16 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules
];
imports = [
./hardware-configuration.nix
../../modules
];
networking.hostName = "nixbook";
system.stateVersion = "26.05";
networking.hostName = "nixbook";
system.stateVersion = "26.05";
boot.initrd.luks.devices."luks-082cc474-c00a-46c5-b140-4b7ccc2e6958".device = "/dev/disk/by-uuid/082cc474-c00a-46c5-b140-4b7ccc2e6958";
boot.initrd.luks.devices."luks-082cc474-c00a-46c5-b140-4b7ccc2e6958".device =
"/dev/disk/by-uuid/082cc474-c00a-46c5-b140-4b7ccc2e6958";
services.power-profiles-daemon.enable = true;
@@ -20,28 +20,36 @@
steam
];
# explicitly override videoDrivers (nvidia doesnt like us on nixbook )
services.xserver.videoDrivers = lib.mkForce [ "intel" ];
# BELOW IS OLD!! remove as we make more modular
# custom certificates
# TODO: move certs to secrets, make this a module not a host based thing
security.pki.certificateFiles = [
./certs/npm-caddy-private.crt
./certs/npm-caddy-public.crt
./certs/npm-caddy-shared.crt
];
# custom certificates
# security.pki.certificateFiles = [
# ./certs/npm-caddy-private.crt
# ./certs/npm-caddy-public.crt
# ./certs/npm-caddy-shared.crt
# ];
# TODO: move to secrets
# tunnel
networking.wg-quick.interfaces = {
npm = {
address = ["10.8.0.3/32"];
address = [ "10.8.0.3/32" ];
privateKeyFile = "/root/wireguard-keys/npm";
peers = [{
publicKey = "YlQfDLqOET0RCTfbeRTDUicF/RA6dic/ThHLy25w4nQ=";
presharedKeyFile = "/root/wireguard-keys/npm_preshared";
allowedIPs = ["10.9.11.0/24" "10.8.0.0/24"];
endpoint = "wg-easy.u.djairo.dev:51820";
persistentKeepalive = 25;
}];
peers = [
{
publicKey = "YlQfDLqOET0RCTfbeRTDUicF/RA6dic/ThHLy25w4nQ=";
presharedKeyFile = "/root/wireguard-keys/npm_preshared";
allowedIPs = [
"10.9.11.0/24"
"10.8.0.0/24"
];
endpoint = "wg-easy.u.djairo.dev:51820";
persistentKeepalive = 25;
}
];
};
};
}

View File

@@ -1,12 +1,11 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules
./gaming.nix
];
imports = [
./hardware-configuration.nix
../../modules
./gaming.nix
];
# TODO: literally this whole configuration lmao
# adds a `stretch_aspect` scaler (Valve/gamescope#927) and lets `--rt` use the

View File

@@ -30,7 +30,6 @@
# than esync/fsync under thread contention.
boot.kernelModules = [ "ntsync" ];
users.users.djai.packages = with pkgs; [
desmume
eden
@@ -38,7 +37,7 @@
prismlauncher
steam
winetricks
]:
];
services.flatpak.packages = [
"org.vinegarhq.Sober"