feat: add nixosConfigurationPath variable

This commit is contained in:
kiri committed 2026-04-21 17:24:11 +02:00
1 parent 6f363afbc8
commit 8cc4690839
2 files changed
+13 -2

No files matched your search

+6 -1
View File
@@ -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;
};
+7 -1
View File
@@ -1,6 +1,12 @@
{
flake.modules.nixos.nix =
{ inputs, ... }:
{
config,
inputs,
lib,
pkgs,
...
}:
{
nixpkgs.config.allowUnfree = true;