From d96fbd63510048bf56d3d600a65f7983096c1bb1 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Wed, 3 Mar 2021 00:51:39 +0100 Subject: migrating config This deploy logic is primarily based on hxchn's deploy lib [1], with some slight modifications to make it work with my setup. Everything seems to work fine for now. However, I am unsure about the usage of niv — the config doesn't seem to gain much from it, apart from (some) additional complexity. [1] https://gitlab.com/hexchen/nixfiles --- default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 default.nix (limited to 'default.nix') diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..f13eb77 --- /dev/null +++ b/default.nix @@ -0,0 +1,18 @@ +let + sources = import ./nix/sources.nix; + pkgs = import ./pkgs {}; + + hosts = import ./lib/hosts.nix { + inherit pkgs; + hostsDir = ./hosts; + commonImports = [ ./common ]; + pkgsPath = ./pkgs; + }; +in +{ + inherit sources pkgs; + inherit (hosts) hosts groups; + deploy = import ./lib/deploy.nix { inherit pkgs; inherit (hosts) hosts groups; }; +} + + -- cgit v1.2.3