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

View File

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