From 1e2095ad8c1595c11255164d023efe2885a30831 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Feb 2023 16:23:33 +0100 Subject: Fix(nix): Import the correct thing --- flake/nixosConfigurations/default.nix | 1 + services/nix/default.nix | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix index 5def122e..d5ba47a8 100644 --- a/flake/nixosConfigurations/default.nix +++ b/flake/nixosConfigurations/default.nix @@ -46,6 +46,7 @@ # inputs.impermanence.nixosModules.home-manager.impermanence homeManagerConfig + ]; in { tiamat = inputs.nixpkgs.lib.nixosSystem { diff --git a/services/nix/default.nix b/services/nix/default.nix index b86e46fe..15c3a026 100644 --- a/services/nix/default.nix +++ b/services/nix/default.nix @@ -2,10 +2,15 @@ config, lib, pkgs, - inputs, + nixpkgs, ... }: { nix = { + # Flakes settings + package = pkgs.nixVersions.stable; + # this can't be in nix settings because of some "type error". See: + # https://discourse.nixos.org/t/flakes-error-error-attribute-outpath-missing/18044 + registry.nixpkgs.flake = nixpkgs; gc = { automatic = true; dates = "weekly"; @@ -18,10 +23,6 @@ keep-failed = true; #keep failed tmp build dirs pure-eval = true; # restrict file system and network access to hash - - # Flakes settings - package = pkgs.nixVersions.stable; - registry.nixpkgs.flake = inputs.nixpkgs; }; }; } -- cgit 1.4.1