Add blank home-manager config

This commit is contained in:
ItsDrike 2024-03-23 23:06:58 +01:00
parent da5262c60d
commit e2764cb4cb
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
12 changed files with 98 additions and 4 deletions

View file

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

18
options/home/default.nix Normal file
View file

@ -0,0 +1,18 @@
{ lib, ... }: with lib; let
in
{
options.myOptions.home-manager = {
enabled = mkOption {
type = types.bool;
default = false;
description = "Should home-manager be enabled for this host?";
};
stateVersion = mkOption {
type = types.str;
default = config.system.nixos;
description = "HomeManager's state version";
};
};
}

View file

@ -3,13 +3,13 @@ in
{
options.myOptions.system = {
hostname = mkOption {
description = "hostname for this system";
type = types.str;
description = "Hostname for this system";
};
username = mkOption {
description = "username for the primary admin account for this system";
type = types.str;
description = "Username for the primary admin account for this system";
};
};
}