feat: moving stuff from home.nix to split modules (not really for now...)
This commit is contained in:
27
modules/home-manager/helix.nix
Normal file
27
modules/home-manager/helix.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myHome.helix;
|
||||
in {
|
||||
options = {
|
||||
myHome.helix.enable = lib.mkEnableOption "enables helix";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
settings = {
|
||||
editor = {
|
||||
lsp = {
|
||||
enable = true;
|
||||
display-messages = true;
|
||||
display-inlay-hints = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
26
modules/home-manager/kitty.nix
Normal file
26
modules/home-manager/kitty.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myHome.kitty;
|
||||
in {
|
||||
options = {
|
||||
myHome.kitty.enable = lib.mkEnableOption "enables kitty";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.kitty = lib.mkForce {
|
||||
enable = true;
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
dynamic_background_opacity = true;
|
||||
enable_audio_bell = false;
|
||||
mouse_hide_wait = "-1.0";
|
||||
background_opacity = "0.5";
|
||||
background_blur = 5;
|
||||
font_family = "Fira Code";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -12,6 +12,7 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
bottles
|
||||
steam
|
||||
discord
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user