mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 07:20:43 +00:00
Update options
This commit is contained in:
parent
439f9a15f3
commit
935b4094a2
7 changed files with 14 additions and 14 deletions
|
@ -2,6 +2,6 @@ _: {
|
|||
imports = [
|
||||
./device
|
||||
./home
|
||||
./system.nix
|
||||
./system
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ lib, ... }: with lib; let
|
||||
inherit (lib) mkEnableOption mkOption;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -6,11 +7,7 @@ in
|
|||
];
|
||||
|
||||
options.myOptions.home-manager = {
|
||||
enabled = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Should home-manager be enabled for this host?";
|
||||
};
|
||||
enable = mkEnableOption "home-manager";
|
||||
|
||||
stateVersion = mkOption {
|
||||
type = types.str;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ lib, ... }: with lib; let
|
||||
inherit (lib) mkEnableOption mkOption;
|
||||
in
|
||||
{
|
||||
options.myOptions.home-manager.git = {
|
||||
|
@ -14,11 +15,10 @@ in
|
|||
};
|
||||
|
||||
signing = {
|
||||
enabled = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Should commits and tags be sgined by default?";
|
||||
};
|
||||
enabled = mkEnableOption ''
|
||||
git commit signing.
|
||||
Requires `myOptions.home-manager.git.signing.key` to be set.
|
||||
'';
|
||||
key = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ lib, ... }: with lib; let
|
||||
inherit (lib) mkOption;
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
options.myOptions.system = {
|
||||
hostname = mkOption {
|
||||
type = types.str;
|
Loading…
Add table
Add a link
Reference in a new issue