minor-ish changes

This commit is contained in:
Cy Pokhrel 2024-11-23 20:47:43 -05:00
parent 27d4b1328a
commit 3c6d6f8686
No known key found for this signature in database
GPG key ID: 1200FBE36C2ADE2E
2 changed files with 27 additions and 4 deletions

View file

@ -10,7 +10,6 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "ytnix"; networking.hostName = "ytnix";
networking.networkmanager.enable = true;
networking.wireless.iwd = { networking.wireless.iwd = {
enable = true; enable = true;
settings = { settings = {
@ -21,7 +20,10 @@
}; };
}; };
}; };
networking.networkmanager.wifi.backend = "iwd"; networking.networkmanager = {
enable = true;
wifi.backend = "iwd";
};
time.timeZone = "America/Toronto"; time.timeZone = "America/Toronto";
services.pipewire = { services.pipewire = {
@ -56,6 +58,9 @@
mpv mpv
yt-dlp yt-dlp
anki-bin anki-bin
signal-desktop
cosign
azure-cli
]; ];
}; };
@ -92,6 +97,7 @@
compsize compsize
wgnord wgnord
wireguard-tools wireguard-tools
traceroute
]; ];
system.stateVersion = "24.05"; system.stateVersion = "24.05";
@ -153,6 +159,9 @@
}; };
compression = "auto,zstd"; compression = "auto,zstd";
startAt = "daily"; startAt = "daily";
extraCreateArgs = [ "--stats" ];
# warnings are often not that serious
failOnWarnings = false;
}; };
}; };
services.btrbk.instances.local.settings = { services.btrbk.instances.local.settings = {
@ -171,7 +180,8 @@
services.logind = { services.logind = {
lidSwitch = "hibernate"; lidSwitch = "hibernate";
suspendKey = "hibernate"; suspendKey = "ignore";
powerKey = "hibernate";
}; };
xdg.mime.defaultApplications = { xdg.mime.defaultApplications = {
@ -199,4 +209,15 @@
networking.wg-quick.interfaces.wgnord.configFile = "/etc/wireguard/wgnord.conf"; networking.wg-quick.interfaces.wgnord.configFile = "/etc/wireguard/wgnord.conf";
services.resolved.enable = true; services.resolved.enable = true;
services.https-dns-proxy = {
enable = true;
provider = {
url = "https://dns.cy7.sh/dns-query/yt-linux";
kind = "custom";
ips = [ "1.1.1.1" "8.8.8.8" ];
};
# doesn't work otherwise :(
preferIPv4 = true;
};
} }

View file

@ -12,7 +12,9 @@
nixosConfigurations = { nixosConfigurations = {
ytnix = lib.nixosSystem { ytnix = lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ ./configuration.nix ]; modules = [
./configuration.nix
];
}; };
}; };
}; };