diff --git a/flake.nix b/flake.nix index 6039040..4c32e5a 100644 --- a/flake.nix +++ b/flake.nix @@ -16,12 +16,15 @@ home-manager, i3utils, ... - } @ inputs: let + }: let system = "x86_64-linux"; - pkgs = import nixpkgs { - inherit system; - }; + pkgs = + (import nixpkgs { + inherit system; + config.allowUnfree = true; + }) + // {i3utils = i3utils.packages.${system}.default;}; lib = nixpkgs.lib; @@ -31,6 +34,7 @@ }: lib.nixosSystem { inherit system; + inherit pkgs; modules = [ ./hosts/${hostname}/configuration.nix @@ -47,8 +51,6 @@ }; } ]; - - specialArgs = {inherit inputs;}; }; in { nixosConfigurations = { diff --git a/hosts/common/default.nix b/hosts/common/default.nix index db1e50f..d99d8c3 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -9,8 +9,6 @@ boot.loader.systemd-boot.enable = lib.mkDefault true; boot.loader.efi.canTouchEfiVariables = lib.mkDefault true; - nixpkgs.config.allowUnfree = true; - # nix flakes compatibility nix = { extraOptions = '' diff --git a/hosts/common/graphical/default.nix b/hosts/common/graphical/default.nix index b82e88b..010d5f6 100644 --- a/hosts/common/graphical/default.nix +++ b/hosts/common/graphical/default.nix @@ -42,7 +42,7 @@ extraPackages = with pkgs; [ flameshot i3lock - inputs.i3utils + i3utils ]; }; };