mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 18:24:34 +00:00
Update options
This commit is contained in:
parent
439f9a15f3
commit
935b4094a2
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -2,6 +2,6 @@ _: {
|
||||||
imports = [
|
imports = [
|
||||||
./device
|
./device
|
||||||
./home
|
./home
|
||||||
./system.nix
|
./system
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 = "";
|
||||||
|
|
|
@ -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;
|
Loading…
Reference in a new issue