diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index dc07cce..ffefc47 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -36,4 +36,4 @@ jobs: # --impure # --show-trace # run: NIXPKGS_ALLOW_INSECURE=1 nix flake check --no-build --accept-flake-config --impure - run: NIXPKGS_ALLOW_INSECURE=1 nix flake check --impure + run: NIXPKGS_ALLOW_INSECURE=1 nix flake check --accept-flake-config --impure diff --git a/flake.nix b/flake.nix index c2b67da..3a5409e 100644 --- a/flake.nix +++ b/flake.nix @@ -205,12 +205,18 @@ # packages.${system} = import ./pkgs nixpkgs.legacyPackages.${system}; }; - # nixConfig = { - # extra-substituters = [ - # "https://wezterm.cachix.org" - # ]; - # extra-trusted-public-keys = [ - # "wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0=" - # ]; - # }; + nixConfig = { + extra-substituters = [ + "https://nix-community.cachix.org" + "https://helix.cachix.org" + "https://wezterm.cachix.org" + "https://cuda-maintainers.cachix.org" + ]; + extra-trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" + "wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0=" + "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" + ]; + }; } diff --git a/modules/home-manager/server/nix-utils.nix b/modules/home-manager/server/nix-utils.nix index 3cc230b..8a95971 100644 --- a/modules/home-manager/server/nix-utils.nix +++ b/modules/home-manager/server/nix-utils.nix @@ -61,14 +61,14 @@ in "flakes" # "pipe-operators" ]; - extra-substituters = [ - "https://helix.cachix.org" - "https://wezterm.cachix.org" - ]; - extra-trusted-public-keys = [ - "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" - "wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0=" - ]; + # extra-substituters = [ + # "https://helix.cachix.org" + # "https://wezterm.cachix.org" + # ]; + # extra-trusted-public-keys = [ + # "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" + # "wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0=" + # ]; }; extraOptions = '' trusted-users = root ${user} diff --git a/modules/nixos/system/nix-utils.nix b/modules/nixos/system/nix-utils.nix index 19a138c..b28aea5 100644 --- a/modules/nixos/system/nix-utils.nix +++ b/modules/nixos/system/nix-utils.nix @@ -37,16 +37,16 @@ "flakes" "pipe-operators" ]; - extra-substituters = [ - "https://nix-community.cachix.org" - "https://helix.cachix.org" - "https://wezterm.cachix.org" - ]; - extra-trusted-public-keys = [ - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" - "wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0=" - ]; + # extra-substituters = [ + # "https://nix-community.cachix.org" + # "https://helix.cachix.org" + # "https://wezterm.cachix.org" + # ]; + # extra-trusted-public-keys = [ + # "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + # "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" + # "wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0=" + # ]; }; # extraOptions = '' # trusted-users = root ${username} diff --git a/modules/nixos/system/nvidia/default.nix b/modules/nixos/system/nvidia/default.nix index 91f2a4d..91dbc1a 100644 --- a/modules/nixos/system/nvidia/default.nix +++ b/modules/nixos/system/nvidia/default.nix @@ -8,14 +8,14 @@ options.hosts.nvidia.enable = lib.mkEnableOption "Setup Nvidia environment"; config = lib.mkIf config.hosts.nvidia.enable { - nix.settings = { - extra-substituters = [ - "https://cuda-maintainers.cachix.org" - ]; - extra-trusted-public-keys = [ - "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" - ]; - }; + # nix.settings = { + # extra-substituters = [ + # "https://cuda-maintainers.cachix.org" + # ]; + # extra-trusted-public-keys = [ + # "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" + # ]; + # }; # Latest kernel does not work well with some web browsers... boot.kernelPackages = pkgs.linuxPackages;