From 3c6d6f86862e422d0b971e177e3af94c43319205 Mon Sep 17 00:00:00 2001 From: Cy Pokhrel Date: Sat, 23 Nov 2024 20:47:43 -0500 Subject: [PATCH] minor-ish changes --- nix/configuration.nix | 27 ++++++++++++++++++++++++--- nix/flake.nix | 4 +++- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/nix/configuration.nix b/nix/configuration.nix index bb1f21a..5acb071 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -10,7 +10,6 @@ boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "ytnix"; - networking.networkmanager.enable = true; networking.wireless.iwd = { enable = true; settings = { @@ -21,7 +20,10 @@ }; }; }; - networking.networkmanager.wifi.backend = "iwd"; + networking.networkmanager = { + enable = true; + wifi.backend = "iwd"; + }; time.timeZone = "America/Toronto"; services.pipewire = { @@ -56,6 +58,9 @@ mpv yt-dlp anki-bin + signal-desktop + cosign + azure-cli ]; }; @@ -92,6 +97,7 @@ compsize wgnord wireguard-tools + traceroute ]; system.stateVersion = "24.05"; @@ -153,6 +159,9 @@ }; compression = "auto,zstd"; startAt = "daily"; + extraCreateArgs = [ "--stats" ]; + # warnings are often not that serious + failOnWarnings = false; }; }; services.btrbk.instances.local.settings = { @@ -171,7 +180,8 @@ services.logind = { lidSwitch = "hibernate"; - suspendKey = "hibernate"; + suspendKey = "ignore"; + powerKey = "hibernate"; }; xdg.mime.defaultApplications = { @@ -199,4 +209,15 @@ networking.wg-quick.interfaces.wgnord.configFile = "/etc/wireguard/wgnord.conf"; 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; + }; } diff --git a/nix/flake.nix b/nix/flake.nix index fc8653b..f8dc047 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -12,7 +12,9 @@ nixosConfigurations = { ytnix = lib.nixosSystem { system = "x86_64-linux"; - modules = [ ./configuration.nix ]; + modules = [ + ./configuration.nix + ]; }; }; };