From 11684f888376b47a6d63ebcd1820f661e504c789 Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 9 Feb 2024 23:14:24 +0900 Subject: [PATCH] test --- lib/default.nix | 8 +++++++- nixos/users/albert/desktop.nix | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index 58321af1..20798634 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -52,12 +52,18 @@ hostPlatform = system; }; - pkgs-unstable = import inputs.nixpkgs-unstable { + add-unstable-packages = final: _prev: { + unstable = import nixpkgs-unstable { inherit system; config.allowUnfree = unfree; hostPlatform = system; + }; }; + nixpkgs.overlays = [ + add-unstable-packages + ]; + modules = [ # Types are 'default', 'small', and 'minimal' ../nixos/${type}.nix diff --git a/nixos/users/albert/desktop.nix b/nixos/users/albert/desktop.nix index fc61227d..98f74cd3 100644 --- a/nixos/users/albert/desktop.nix +++ b/nixos/users/albert/desktop.nix @@ -1,11 +1,11 @@ -{ config, lib, pkgs, unstable-pkgs, desktop, inputs, system, ... }: { +{ config, lib, pkgs, unstable, desktop, inputs, system, ... }: { # Steam, Vintage Story areu nfree. environment.systemPackages = [ pkgs.bitwarden pkgs.steam pkgs.lutris pkgs.vlc - unstable-pkgs.vintagestory + unstable.vintagestory ]; programs.steam = {