From 14e72c5f239dd02234cbe467c3a4be1c0845c7cd Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 19 Aug 2021 23:33:53 +0200 Subject: Enable pure instantiation of config via flake i.e. via `nix run .#hostname`. Currently pulling in a pending pull request at jupyterWith for flakeified JupyterLab installations. The entire system consisting of `nixos_system` and `nixos_home` flakes can now be purely instantiated from clones in the user directory. No "/etc/nixos" resp. ".config/nixpkgs" needed. This is nice, probably not going to bother merging both repositories. --- home.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'home.nix') diff --git a/home.nix b/home.nix index 27a9bba..5589325 100644 --- a/home.nix +++ b/home.nix @@ -1,10 +1,7 @@ -{ config, pkgs, pkgs-personal, ... }: +{ config, pkgs, pkgs-personal, hostname, ... }: { - imports = let - # impure access to system config - hostname = (import { }).config.networking.hostName; - in [ + imports = [ # define options custom to this config ./custom.nix # load host specific stuff -- cgit v1.2.3