From 8cc4690839f674660abbcf830819ce6bc06a7874 Mon Sep 17 00:00:00 2001 From: Jelle Spreeuwenberg Date: Tue, 21 Apr 2026 17:11:15 +0200 Subject: [PATCH] feat: add nixosConfigurationPath variable --- modules/features/meta.nix | 7 ++++++- modules/features/nix.nix | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/features/meta.nix b/modules/features/meta.nix index f8d3907..96a36af 100644 --- a/modules/features/meta.nix +++ b/modules/features/meta.nix @@ -20,7 +20,7 @@ let ); userType = lib.types.submodule ( - { ... }: + { config, ... }: { options = { name = lib.mkOption { @@ -35,6 +35,11 @@ let type = lib.types.str; }; + nixosConfigurationPath = lib.mkOption { + type = lib.types.str; + default = "${config.homeDirectory}/.config/nixos"; + }; + emails = lib.mkOption { type = lib.types.attrsOf emailType; }; diff --git a/modules/features/nix.nix b/modules/features/nix.nix index e7e888a..aa7a4d0 100644 --- a/modules/features/nix.nix +++ b/modules/features/nix.nix @@ -1,6 +1,12 @@ { flake.modules.nixos.nix = - { inputs, ... }: + { + config, + inputs, + lib, + pkgs, + ... + }: { nixpkgs.config.allowUnfree = true;