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;
in
{
home-manager = lib.mkIf myHmConf.enabled {
home-manager = lib.mkIf myHmConf.enable {
# Use verbose mode for home-manager
verbose = true;

View file

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

View file

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

View file

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

View file

@ -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;

View file

@ -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 = "";

View file

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