From 662f02aae28c24902139ff201dbb08ba90ccac3a Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sun, 19 Feb 2023 07:02:00 +0100 Subject: [PATCH] lib: Removed nix registry handling (wrt nixpkgs and nixos-unstable) --- lib/host.nix | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/lib/host.nix b/lib/host.nix index 7701eb8..67407b3 100644 --- a/lib/host.nix +++ b/lib/host.nix @@ -1,6 +1,5 @@ { pkgs , nixpkgs -, nixos-unstable , unstablePkgs , home-manager , system @@ -24,7 +23,7 @@ add_imports = imports; in nixpkgs.lib.nixosSystem { - inherit system; + inherit system pkgs; modules = [ { @@ -33,19 +32,6 @@ (mkSysRole "acme") ]; - nixpkgs = { inherit pkgs; }; - - nix = { - nixPath = [ - "nixpkgs=${nixpkgs}" - "unstable=${nixos-unstable}" - ]; - registry = { - nixpkgs.flake = nixpkgs; - unstable.flake = nixos-unstable; - }; - }; - home-manager = { users.root.imports = pkgs.lib.singleton (mkHomeRole "common"); extraSpecialArgs.unstablePkgs = unstablePkgs; @@ -53,7 +39,7 @@ }; system.stateVersion = "22.11"; - + environment.shells = [ pkgs.zsh ]; users.defaultUserShell = pkgs.zsh; }