From 604e582c011b72ae1f4f6cd31c4d49b1b1352c8e Mon Sep 17 00:00:00 2001 From: Dennis Schoepf Date: Tue, 16 Dec 2025 23:24:22 +0100 Subject: [PATCH] wip: dnsc-machine setup --- flake.nix | 17 +++++++++++++++++ hosts/dnsc-machine/default.nix | 13 ------------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index f2beb50..a1668e9 100644 --- a/flake.nix +++ b/flake.nix @@ -55,9 +55,26 @@ nixosModules.steam = import ./modules/steam; nixosModules.niriSystem = import ./modules/wm/niri-system; + # Overlays + overlays.default = final: prev: { + python3 = prev.python3.override { + packageOverrides = pyFinal: pyPrev: { + python-dbusmock = pyPrev.python-dbusmock.overridePythonAttrs (_: { + doCheck = false; + }); + }; + }; + }; + nixosConfigurations.dnsc-machine = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs outputs; }; + pkgs = import nixpkgs { + system = "x86_64-linux"; + overlays = [ + self.overlays.default + ]; + }; modules = [ ./hosts/dnsc-machine ]; diff --git a/hosts/dnsc-machine/default.nix b/hosts/dnsc-machine/default.nix index 1dcf474..718495c 100644 --- a/hosts/dnsc-machine/default.nix +++ b/hosts/dnsc-machine/default.nix @@ -6,9 +6,6 @@ ... }: -let - backportPkgs = inputs.nixpkgs-backport-fix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; -in { imports = [ # Include the results of the hardware scan. @@ -32,16 +29,6 @@ in # in modules/default.nix nixpkgs.overlays = [ inputs.zellij-switch.overlays.default - - (final: prev: { - python3Packages = prev.python3Packages.overrideScope ( - pyFinal: pyPrev: { - python-dbusmock = pyPrev.python-dbusmock.overridePythonAttrs (old: { - doCheck = false; - }); - } - ); - }) ]; # General settings