1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00

lib: move compat to lib

This commit is contained in:
Timothy DeHerrera 2021-04-18 20:51:47 -06:00
parent fbce126f4d
commit 127cb25bd1
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
7 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
let let
inherit (default.inputs.nixos) lib; inherit (default.inputs.nixos) lib;
default = (import ./compat).defaultNix; default = (import ./lib/compat).defaultNix;
in in
builtins.mapAttrs (_: v: lib.recurseIntoAttrs v) default.packages // { builtins.mapAttrs (_: v: lib.recurseIntoAttrs v) default.packages // {
shell = import ./shell.nix; shell = import ./shell.nix;

View File

@ -1,7 +1,7 @@
let let
inherit (lock.nodes.flake-compat.locked) rev narHash; inherit (lock.nodes.flake-compat.locked) rev narHash;
lock = builtins.fromJSON (builtins.readFile ../flake.lock); lock = builtins.fromJSON (builtins.readFile ../../flake.lock);
flake = (import flake = (import
( (
fetchTarball { fetchTarball {
@ -10,7 +10,7 @@ let
} }
) )
{ {
src = ../.; src = ../../.;
}); });
in in
flake flake

View File

@ -37,7 +37,7 @@ let
nix.nixPath = [ nix.nixPath = [
"nixpkgs=${nixos}" "nixpkgs=${nixos}"
"nixos-config=${self}/compat/nixos" "nixos-config=${self}/lib/compat/nixos"
"home-manager=${inputs.home}" "home-manager=${inputs.home}"
]; ];

View File

@ -1,7 +1,7 @@
let let
inherit (default.inputs.nixos) lib; inherit (default.inputs.nixos) lib;
default = (import "${../.}/compat").defaultNix; default = (import "${../lib}/compat").defaultNix;
ciSystems = [ ciSystems = [
"aarch64-linux" "aarch64-linux"

View File

@ -77,7 +77,7 @@ in
''; '';
# fix nixos-option # fix nixos-option
nixos-option = "nixos-option -I nixpkgs=${toString ../../compat}"; nixos-option = "nixos-option -I nixpkgs=${toString ../../lib/compat}";
# sudo # sudo
s = ifSudo "sudo -E "; s = ifSudo "sudo -E ";

View File

@ -1 +1 @@
(import ./compat).shellNix (import ./lib/compat).shellNix