mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:54:35 +00:00
Update options
This commit is contained in:
parent
439f9a15f3
commit
935b4094a2
|
@ -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;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
cpu.type = "intel";
|
||||
};
|
||||
home-manager = {
|
||||
enabled = true;
|
||||
enable = true;
|
||||
stateVersion = "23.11";
|
||||
git = {
|
||||
userName = "ItsDrike";
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
cpu.type = "amd";
|
||||
};
|
||||
home-manager = {
|
||||
enabled = true;
|
||||
enable = true;
|
||||
stateVersion = "23.11";
|
||||
git = {
|
||||
userName = "ItsDrike";
|
||||
|
|
|
@ -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…
Reference in a new issue