Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/nixos/roles/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ in
./explorer.nix
];

options.hostConfig.roles.desktop = lib.mkEnableOption "Enable desktop features.";

config = lib.mkIf cfg {
services.gnome.gnome-keyring.enable = true;

Expand Down
2 changes: 0 additions & 2 deletions modules/nixos/roles/desktop/explorer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ let
cfg = config.hostConfig.roles.desktop;
in
{
options.hostConfig.roles.desktop = lib.mkEnableOption "Enable hyprland and desktop features.";

config = lib.mkIf cfg {
programs = {
thunar = {
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/services/bluetooth.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
cfg = config.hostConfig.services.bluetooth;
in
{
options.hostConfig.services.bluetooth = lib.mkEnableOption "Enable bluetooth features.";
options.hostConfig.services.bluetooth = lib.mkEnableOption "Enable Bluetooth support.";

config = lib.mkIf cfg {
hardware.bluetooth.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/services/opengl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let
cfg = config.hostConfig.services.opengl;
in
{
options.hostConfig.services.opengl = lib.mkEnableOption "Enable opengl features.";
options.hostConfig.services.opengl = lib.mkEnableOption "Enable OpenGL support.";

config = lib.mkIf cfg {
hardware = {
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/services/podman.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
cfg = config.hostConfig.services.podman;
in
{
options.hostConfig.services.podman = lib.mkEnableOption "Enable podman containerization engine:";
options.hostConfig.services.podman = lib.mkEnableOption "Enable Podman containerization.";

config = lib.mkIf cfg {
virtualisation.containers.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/services/printer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
cfg = config.hostConfig.services.printing;
in
{
options.hostConfig.services.printing = lib.mkEnableOption "Enable printing service.";
options.hostConfig.services.printing = lib.mkEnableOption "Enable printing support.";

config = lib.mkIf cfg {
services = {
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/services/sound.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
cfg = config.hostConfig.services.sound;
in
{
options.hostConfig.services.sound = lib.mkEnableOption "Enable sound.";
options.hostConfig.services.sound = lib.mkEnableOption "Enable sound support.";

config = lib.mkIf cfg {
services = {
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/services/tailscale.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
cfg = config.hostConfig.services.tailscale;
in
{
options.hostConfig.services.tailscale = lib.mkEnableOption "Enable tailscaled.";
options.hostConfig.services.tailscale = lib.mkEnableOption "Enable Tailscale.";

config = lib.mkIf cfg {
services.tailscale.enable = true;
Expand Down
5 changes: 3 additions & 2 deletions modules/nixos/system/boot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ let
in
{
options.hostConfig.boot = {
enable = lib.mkEnableOption "Enable install / config of bootloader";
armSupport = lib.mkEnableOption "Enable arm cross-compiler support";
enable = lib.mkEnableOption "Enable bootloader configuration.";
armSupport = lib.mkEnableOption "Enable ARM cross-compilation support.";
supportedFilesystems = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
description = "Additional filesystem types to support at boot.";
};
};

Expand Down
8 changes: 4 additions & 4 deletions modules/nixos/system/user.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ let
in
{
options.hostConfig.user = {
name = mylib.mkOpt lib.types.str "Name of user.";
initialHashedPassword = mylib.mkOpt lib.types.str "Password of user.";
extraGroups = mylib.mkOpt' (lib.types.listOf lib.types.str) [ ] "Additional groups for the user.";
extraOptions = mylib.mkOpt lib.types.attrs "Additional options for the user.";
name = mylib.mkOpt lib.types.str "Username for the account.";
initialHashedPassword = mylib.mkOpt lib.types.str "Initial hashed password for the account.";
extraGroups = mylib.mkOpt' (lib.types.listOf lib.types.str) [ ] "Additional supplemental groups.";
extraOptions = mylib.mkOpt lib.types.attrs "Extra user account options.";
};

config = {
Expand Down