Skip to content

Commit

Permalink
fix: rename dark-theme to options
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Feb 8, 2024
1 parent c627ae6 commit 99345dd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
1 change: 1 addition & 0 deletions hosts/asahi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ in {

extraSpecialArgs = {inherit inputs user pkgs;};
modules = [
../../modules/options.nix
../../modules/common.nix
sops-nix.homeManagerModule
{
Expand Down
4 changes: 2 additions & 2 deletions hosts/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ in {
];
};
modules = [
../../modules/dark-theme.nix
../../modules/options.nix
./config-common.nix
./networking.nix
./mini/configuration.nix
Expand All @@ -169,7 +169,7 @@ in {
home-manager.users."${user}" = {
home.stateVersion = "23.11";
imports = [
../../modules/dark-theme.nix
../../modules/options.nix
../../modules/shell/starship.nix
../../modules/common.nix
../../modules/rust.nix
Expand Down
7 changes: 0 additions & 7 deletions modules/dark-theme.nix

This file was deleted.

27 changes: 27 additions & 0 deletions modules/options.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{lib, ...}: {
options = {
darkTheme = lib.mkOption {
description = "enable dark mode theme";
type = lib.types.bool;
default = true;
};

gui = lib.mkOption {
description = "enable gui packages";
type = lib.types.bool;
default = false;
};

largeStorage = lib.mkOption {
description = "enable extra packages that take up space";
type = lib.types.bool;
default = false;
};

useHelixFork = lib.mkOption {
description = "enable using helix fork";
type = lib.types.bool;
default = false;
};
};
}

0 comments on commit 99345dd

Please sign in to comment.