From c7ed9539d5ed411e707ccd766af1f003ba9300c6 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 24 Mar 2024 18:44:28 +0100 Subject: [PATCH] Enable unfree in own packages --- flake.nix | 6 +++++- pkgs/auto-mount/default.nix | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 0f6f07e..155b8e1 100644 --- a/flake.nix +++ b/flake.nix @@ -101,7 +101,11 @@ in { # Your custom packages # Accessible through 'nix build', 'nix shell', etc - packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); + packages = forAllSystems (system: + import ./pkgs (import nixpkgs { + inherit system; + config.allowUnfree = true; + })); # Formatter for your nix files, available through 'nix fmt' # Other options beside 'alejandra' include 'nixpkgs-fmt' formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra); diff --git a/pkgs/auto-mount/default.nix b/pkgs/auto-mount/default.nix index 393713b..071338f 100644 --- a/pkgs/auto-mount/default.nix +++ b/pkgs/auto-mount/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, + system, steam, pkgs, jq,