This commit is contained in:
Nathan McCarty 2022-09-04 04:09:33 -04:00
parent c555f7ceee
commit 532a573ffc
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
4 changed files with 26 additions and 19 deletions

View File

@ -1,6 +1,10 @@
{ config, lib, pkgs, ... }:
{
nathan = {
config = {
isDesktop = true;
};
};
home-manager.config = import ./home.nix;
}

View File

@ -112,23 +112,6 @@ in
description = "Whether to install the 'nathan' user";
type = lib.types.bool;
};
# Name of the user to install
user = mkOption {
default = "nathan";
example = "nathan";
description = "Username to use for common configuration";
type = lib.types.str;
};
# Name of the user to install
email = mkOption {
default = "nathan@mccarty.io";
example = "nathan@mccarty.io";
description = "Email to use for common configuration";
type = lib.types.str;
};
# Is this system a desktop?
# Off by default
isDesktop = mkEnableOption "Desktop specific settings";
# Should we harden this system?
# On by default
harden = mkEnableOptionT "Apply system hardening";

View File

@ -25,5 +25,7 @@ in
# Set login shell
user.shell = "${pkgs.fish}/bin/fish";
nathan.config.user = "nix-on-droid";
};
}

View File

@ -18,7 +18,25 @@ in
};
};
# General system configuration
config = { };
config = {
# Name of the user to install
user = mkOption {
default = "nathan";
example = "nathan";
description = "Username to use for common configuration";
type = lib.types.str;
};
# Name of the user to install
email = mkOption {
default = "nathan@mccarty.io";
example = "nathan@mccarty.io";
description = "Email to use for common configuration";
type = lib.types.str;
};
# Is this system a desktop?
# Off by default
isDesktop = mkEnableOption "Desktop specific settings";
};
};
};
}