diff --git a/lib/default.nix b/lib/default.nix index cb357a20..5e743b06 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -43,16 +43,7 @@ type ? "default", repo ? "nixpkgs", unfree ? false - }: - let - - pkgs-unstable = import inputs.nixpkgs-unstable { - inherit system; - config.allowUnfree = true; - hostPlatform = true; - }; - in { - inputs.${repo}.lib.nixosSystem { + }: inputs.${repo}.lib.nixosSystem { specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; }; pkgs = import inputs.${repo} { inherit system; diff --git a/nixos/users/albert/desktop.nix b/nixos/users/albert/desktop.nix index f55e0c9c..170ba9f7 100644 --- a/nixos/users/albert/desktop.nix +++ b/nixos/users/albert/desktop.nix @@ -1,11 +1,14 @@ { config, lib, pkgs, pkgs-unstable, desktop, inputs, system, ... }: { # Steam, Vintage Story areu nfree. + + inputs.nixpkgs-unstable.config.allowUnfree = true; + environment.systemPackages = [ pkgs.bitwarden pkgs.steam pkgs.lutris pkgs.vlc - pkgs-unstable.intagestory + inputs.nixpkgs-unstable.intagestory ]; programs.steam = {