From 4b442b85223bf4e718db5ca917c17e4446144eb1 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 25 Jan 2022 18:08:24 +0900 Subject: home: make populator more obvious --- home/default.nix | 2 +- home/profiles/default.nix | 13 ------------- home/profiles/populate.nix | 13 +++++++++++++ 3 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 home/profiles/default.nix create mode 100644 home/profiles/populate.nix diff --git a/home/default.nix b/home/default.nix index f9cb94a..2ba3707 100644 --- a/home/default.nix +++ b/home/default.nix @@ -8,7 +8,7 @@ pkgs = import unstable-small { system = "x86_64-linux"; overlays = with inputs; [ chaotic-nixpkgs.overlay ]; }; extraModules = [ - ./profiles + ./profiles/populate.nix ./profiles/base ./profiles/browsing ./profiles/development diff --git a/home/profiles/default.nix b/home/profiles/default.nix deleted file mode 100644 index af9d9a8..0000000 --- a/home/profiles/default.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ config, lib, ... }: -let - profileEnabler = - let - reducer = l: r: { "${r}".enable = true; } // l; - in - builtins.foldl' reducer { } config.activeProfiles; -in -{ - options.activeProfiles = lib.mkOption { type = lib.types.listOf lib.types.str; }; - - config.profiles = profileEnabler; -} diff --git a/home/profiles/populate.nix b/home/profiles/populate.nix new file mode 100644 index 0000000..af9d9a8 --- /dev/null +++ b/home/profiles/populate.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: +let + profileEnabler = + let + reducer = l: r: { "${r}".enable = true; } // l; + in + builtins.foldl' reducer { } config.activeProfiles; +in +{ + options.activeProfiles = lib.mkOption { type = lib.types.listOf lib.types.str; }; + + config.profiles = profileEnabler; +} -- cgit 1.4.1