Skip to content

Commit

Permalink
[joshuto] add as a separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
ejiek committed Oct 28, 2023
1 parent 5b48978 commit e4fdc6e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions hosts/eFrame/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
cursor.size = 24;
extraConfig = "env = GDK_SCALE,2";
};
joshuto.enable = true;
nvim.enable = true;
nu.enable = true;
obsidian.enable = true;
Expand Down
1 change: 1 addition & 0 deletions hosts/ePower/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"10, monitor:HDMI-A-1, default:true"
];
};
joshuto.enable = true;
nvim.enable = true;
nu.enable = true;
obsidian.enable = true;
Expand Down
1 change: 0 additions & 1 deletion modules/cli_tools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ in {
gh
gomuks
hdparm
joshuto
lolcat
ripgrep
tmate
Expand Down
1 change: 1 addition & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
./fileSystems
./git
./hyprland
./joshuto
./networking
./nu
./nvim
Expand Down
20 changes: 20 additions & 0 deletions modules/joshuto/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) types mkIf mkDefault mkOption;
in {
options.my-config = {
joshuto.enable = mkOption {
description = "Enable jushuto";
type = types.bool;
default = false;
};
};

config = mkIf config.my-config.joshuto.enable {
home-manager.users.ejiek = {
programs.joshuto = {
enable = true;
};
};
};
}

0 comments on commit e4fdc6e

Please sign in to comment.