mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 07:00:41 +00:00
Add blank home-manager config
This commit is contained in:
parent
da5262c60d
commit
e2764cb4cb
12 changed files with 98 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
_: {
|
||||
imports = [
|
||||
./device
|
||||
./home
|
||||
./system.nix
|
||||
];
|
||||
}
|
||||
|
|
18
options/home/default.nix
Normal file
18
options/home/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue