From c9ce9d2c9013819fadb4af2f831d11a1ec6b7813 Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Mon, 15 Apr 2024 00:00:01 +0200 Subject: [PATCH] disable nix config for non nixos machines --- flake.nix | 1 + modules/home-manager/base/default.nix | 15 --------------- modules/home-manager/binary-cache/default.nix | 15 +++++++++++++++ profiles/home-manager/odie@wanaheim/home.nix | 1 + 4 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 modules/home-manager/binary-cache/default.nix diff --git a/flake.nix b/flake.nix index 3bdf295..8680c65 100644 --- a/flake.nix +++ b/flake.nix @@ -89,6 +89,7 @@ games = import ./modules/home-manager/games; mediacenter = import ./modules/home-manager/mediacenter; user = import ./modules/home-manager/user; + binary-cache = import ./modules/home-manager/binary-cache; }; homeConfigurations = flakeLib.mkHomeConfiguration { diff --git a/modules/home-manager/base/default.nix b/modules/home-manager/base/default.nix index b4a5cac..3527a89 100644 --- a/modules/home-manager/base/default.nix +++ b/modules/home-manager/base/default.nix @@ -7,19 +7,4 @@ home.packages = with pkgs; [ home-manager ]; - -nix = { - package = pkgs.nix; - settings = { - substituters = [ - "http://nixcache.odie.intranet" - "https://nix-community.cachix.org" - "https://cache.nixos.org/" - ]; - trusted-public-keys = [ - "nixcache.odie.intranet:2j5qAVmtBUSZMPWlIRS8Gn0Il9tbotJ9c2y43N0RLKU=" - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - ]; - }; - }; } diff --git a/modules/home-manager/binary-cache/default.nix b/modules/home-manager/binary-cache/default.nix new file mode 100644 index 0000000..f0ab033 --- /dev/null +++ b/modules/home-manager/binary-cache/default.nix @@ -0,0 +1,15 @@ +{ + nix = { + settings = { + substituters = [ + "http://nixcache.odie.intranet" + "https://nix-community.cachix.org" + "https://cache.nixos.org/" + ]; + trusted-public-keys = [ + "nixcache.odie.intranet:2j5qAVmtBUSZMPWlIRS8Gn0Il9tbotJ9c2y43N0RLKU=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + }; + }; + } diff --git a/profiles/home-manager/odie@wanaheim/home.nix b/profiles/home-manager/odie@wanaheim/home.nix index 4e0f018..2206831 100644 --- a/profiles/home-manager/odie@wanaheim/home.nix +++ b/profiles/home-manager/odie@wanaheim/home.nix @@ -11,6 +11,7 @@ outputs.homeManagerModules.development outputs.homeManagerModules.games outputs.homeManagerModules.user + outputs.homeManagerModules.binary-cache ]; home.stateVersion = "23.11"; desktop = {