From 1687c0071fa2c50ab3d648d26020f9672b0e0d23 Mon Sep 17 00:00:00 2001 From: valerie Date: Thu, 28 Nov 2024 18:39:55 -0500 Subject: [PATCH] fix: allow unfree everywhere --- flake.nix | 2 +- home/valerie/home.nix | 6 ++++++ system/waves/configuration.nix | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 4871f40..bd7b32f 100644 --- a/flake.nix +++ b/flake.nix @@ -80,11 +80,11 @@ } nixos-cosmic.nixosModules.default ./system/waves/configuration.nix - home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; } + home-manager.nixosModules.home-manager ./home/valerie/home.nix ]; output = "nixosConfigurations"; diff --git a/home/valerie/home.nix b/home/valerie/home.nix index a0ecd2f..bbb9bf3 100644 --- a/home/valerie/home.nix +++ b/home/valerie/home.nix @@ -15,6 +15,12 @@ in { home = { file.".ssh/id_user.pub".text = builtins.readFile ../../system/waves/id_user.pub; + file.".config/nixpkgs/config.nix".text = '' + { + allowUnfree = true; + allowUnfreePredicate = _: true; + } + ''; username = "valerie"; homeDirectory = "/home/valerie"; extraOutputsToInstall = ["doc" "devdoc"]; diff --git a/system/waves/configuration.nix b/system/waves/configuration.nix index 0e80c66..9359839 100644 --- a/system/waves/configuration.nix +++ b/system/waves/configuration.nix @@ -48,6 +48,7 @@ nixpkgs.config = { allowUnfree = true; + allowUnfreePredicate = _: true; cudaSupport = true; }; nixpkgs.overlays = [