core: use self for nixos-option compat path

This commit is contained in:
Pacman99 2021-05-11 11:40:37 -07:00
parent 725e459655
commit 8a590c9fef

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { self, config, lib, pkgs, ... }:
let inherit (lib) fileContents; let inherit (lib) fileContents;
in in
{ {
@ -76,7 +76,7 @@ in
''; '';
# fix nixos-option # fix nixos-option
nixos-option = "nixos-option -I nixpkgs=${toString ../../lib/compat}"; nixos-option = "nixos-option -I nixpkgs=${self}/lib/compat";
# sudo # sudo
s = ifSudo "sudo -E "; s = ifSudo "sudo -E ";