hosts: simplify nix_path

This commit is contained in:
Timothy DeHerrera 2021-01-19 01:00:41 -07:00
parent bd50bcbdc2
commit 7c0381f478
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 3 additions and 7 deletions

View File

@ -1,5 +1,4 @@
{ home { lib
, lib
, nixos , nixos
, master , master
, nixos-hardware , nixos-hardware
@ -47,9 +46,7 @@ let
nix.nixPath = let path = toString ../.; in nix.nixPath = let path = toString ../.; in
[ [
"nixos-unstable=${master}" "nixos-unstable=${master}"
"nixpkgs=${nixos}" "nixos=${nixos}"
"nixpkgs-overlays=${path}/overlays"
"home-manager=${home}"
]; ];
nixpkgs = { inherit pkgs; }; nixpkgs = { inherit pkgs; };
@ -58,7 +55,6 @@ let
master.flake = master; master.flake = master;
nixflk.flake = self; nixflk.flake = self;
nixpkgs.flake = nixos; nixpkgs.flake = nixos;
home-manager.flake = home;
}; };
system.configurationRevision = lib.mkIf (self ? rev) self.rev; system.configurationRevision = lib.mkIf (self ? rev) self.rev;

View File

@ -67,7 +67,7 @@ in
nr = "np remove"; nr = "np remove";
ns = "n search --no-update-lock-file"; ns = "n search --no-update-lock-file";
nf = "n flake"; nf = "n flake";
nepl = "n repl '<nixpkgs>'"; nepl = "n repl '<nixos>'";
srch = "ns nixpkgs"; srch = "ns nixpkgs";
nrb = ifSudo "sudo nixos-rebuild"; nrb = ifSudo "sudo nixos-rebuild";
mn = '' mn = ''