proper registry

This commit is contained in:
dusk 2021-05-28 19:37:09 +03:00
parent 08dfd1b7cb
commit be53b5b4b6
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
4 changed files with 29 additions and 15 deletions

View File

@ -450,6 +450,9 @@
"nixos": "nixos",
"nixos-hardware": "nixos-hardware",
"nixosPersistence": "nixosPersistence",
"nixpkgs": [
"nixos"
],
"nixpkgsWayland": "nixpkgsWayland",
"nur": "nur",
"pkgs": "pkgs"

View File

@ -4,6 +4,7 @@
inputs =
{
nixos.url = "nixpkgs/nixos-unstable";
nixpkgs.follows = "nixos";
latest.url = "nixpkgs";
digga.url = "github:divnix/digga";

View File

@ -1,4 +1,4 @@
{ self, config, pkgs, lib, ourLib, ... }:
{ self, inputs, config, pkgs, lib, ourLib, ... }:
let
inherit (lib) fileContents mkIf;
pkgBin = ourLib.pkgBinNoDep pkgs;
@ -139,7 +139,14 @@ in
diff-closures /run/current-system "$systemConfig"
'';
nix = {
nix =
let
registry =
builtins.mapAttrs
(_: v: { flake = v; })
(lib.filterAttrs (_: v: v ? outputs) inputs);
in
{
autoOptimiseStore = true;
gc.automatic = true;
optimise.automatic = true;
@ -152,6 +159,7 @@ in
keep-derivations = true
fallback = true
'';
inherit registry;
};
programs.command-not-found.enable = false;

View File

@ -18,6 +18,8 @@ in
"$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/";
};
environment.systemPackages = [ pkgs.qt5.qtwayland ];
xdg.portal = {
enable = true;
gtkUsePortal = true;