feat: add nixosConfigurationPath variable

This commit is contained in:
2026-04-21 17:11:15 +02:00
parent 6f363afbc8
commit 8cc4690839
2 changed files with 13 additions and 2 deletions
+6 -1
View File
@@ -20,7 +20,7 @@ let
); );
userType = lib.types.submodule ( userType = lib.types.submodule (
{ ... }: { config, ... }:
{ {
options = { options = {
name = lib.mkOption { name = lib.mkOption {
@@ -35,6 +35,11 @@ let
type = lib.types.str; type = lib.types.str;
}; };
nixosConfigurationPath = lib.mkOption {
type = lib.types.str;
default = "${config.homeDirectory}/.config/nixos";
};
emails = lib.mkOption { emails = lib.mkOption {
type = lib.types.attrsOf emailType; type = lib.types.attrsOf emailType;
}; };
+7 -1
View File
@@ -1,6 +1,12 @@
{ {
flake.modules.nixos.nix = flake.modules.nixos.nix =
{ inputs, ... }: {
config,
inputs,
lib,
pkgs,
...
}:
{ {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;