Update options

This commit is contained in:
ItsDrike 2024-04-07 16:54:36 +02:00
parent 439f9a15f3
commit 935b4094a2
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
7 changed files with 14 additions and 14 deletions

View file

@ -4,7 +4,7 @@ let
username = config.myOptions.system.username; username = config.myOptions.system.username;
in in
{ {
home-manager = lib.mkIf myHmConf.enabled { home-manager = lib.mkIf myHmConf.enable {
# Use verbose mode for home-manager # Use verbose mode for home-manager
verbose = true; verbose = true;

View file

@ -29,7 +29,7 @@
cpu.type = "intel"; cpu.type = "intel";
}; };
home-manager = { home-manager = {
enabled = true; enable = true;
stateVersion = "23.11"; stateVersion = "23.11";
git = { git = {
userName = "ItsDrike"; userName = "ItsDrike";

View file

@ -28,7 +28,7 @@
cpu.type = "amd"; cpu.type = "amd";
}; };
home-manager = { home-manager = {
enabled = true; enable = true;
stateVersion = "23.11"; stateVersion = "23.11";
git = { git = {
userName = "ItsDrike"; userName = "ItsDrike";

View file

@ -2,6 +2,6 @@ _: {
imports = [ imports = [
./device ./device
./home ./home
./system.nix ./system
]; ];
} }

View file

@ -1,4 +1,5 @@
{ lib, ... }: with lib; let { lib, ... }: with lib; let
inherit (lib) mkEnableOption mkOption;
in in
{ {
imports = [ imports = [
@ -6,11 +7,7 @@ in
]; ];
options.myOptions.home-manager = { options.myOptions.home-manager = {
enabled = mkOption { enable = mkEnableOption "home-manager";
type = types.bool;
default = false;
description = "Should home-manager be enabled for this host?";
};
stateVersion = mkOption { stateVersion = mkOption {
type = types.str; type = types.str;

View file

@ -1,4 +1,5 @@
{ lib, ... }: with lib; let { lib, ... }: with lib; let
inherit (lib) mkEnableOption mkOption;
in in
{ {
options.myOptions.home-manager.git = { options.myOptions.home-manager.git = {
@ -14,11 +15,10 @@ in
}; };
signing = { signing = {
enabled = mkOption { enabled = mkEnableOption ''
type = types.bool; git commit signing.
default = true; Requires `myOptions.home-manager.git.signing.key` to be set.
description = "Should commits and tags be sgined by default?"; '';
};
key = mkOption { key = mkOption {
type = types.str; type = types.str;
default = ""; default = "";

View file

@ -1,6 +1,9 @@
{ lib, ... }: with lib; let { lib, ... }: with lib; let
inherit (lib) mkOption;
in in
{ {
imports = [ ];
options.myOptions.system = { options.myOptions.system = {
hostname = mkOption { hostname = mkOption {
type = types.str; type = types.str;