feat: add nixosConfigurationPath variable
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user