1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-27 09:29:27 +03:00

pkgs: simplify override

This commit is contained in:
Timothy DeHerrera 2021-01-11 19:59:49 -07:00
parent d35195187f
commit f2aedb889b
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 15 additions and 18 deletions

View File

@ -67,12 +67,8 @@ let
nixpkgs.overlays =
let
override = import ../pkgs/override.nix unstablePkgs;
overlay = pkg: final: prev: {
"${pkg.pname}" = pkg;
};
in
map overlay override;
[ override ];
};
local = import "${toString ./.}/${hostName}.nix";

View File

@ -1,16 +1,17 @@
# Packages in this list are imported by hosts/default.nix, and are pulled from
# Packages inherited are imported in hosts/default.nix, and are pulled from
# nixpkgs master instead of the default nixos release. This doesn't actually
# install them, just creates an overlay to pull them from master if they are
# installed by the user elsewhere in the configuration.
pkgs:
with pkgs;
[
starship
element-desktop
discord
signal-desktop
dhall
nixpkgs-fmt
manix
qutebrowser
]
pkgs: final: prev:
{
inherit (pkgs)
dhall
discord
element-desktop
manix
nixpkgs-fmt
qutebrowser
signal-desktop
starship;
}