set home manager options properly

This commit is contained in:
Osman Faruk Bayram 2025-10-22 21:20:10 +03:00
parent 181fa36037
commit 533b197825
4 changed files with 71 additions and 49 deletions

View file

@ -1,7 +1,13 @@
{ lib, ... }:
{ lib, nixosConfig, ... }:
{
config = lib.mkMerge [
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
# Set enableAlacritty to true by default when there's a desktop environment
programs.alacritty.enable = lib.mkDefault true;
})
{
programs.alacritty = {
enable = lib.mkDefault false;
settings = {
window = {
opacity = 0.95;
@ -16,3 +22,5 @@
};
};
}
];
}

View file

@ -1,7 +1,9 @@
{ lib, ... }:
{ lib, nixosConfig, ... }:
{
programs.ghostty = {
enable = lib.mkDefault false;
# Configuration can be added as needed
};
config = lib.mkMerge [
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
# Set enableGhostty to true by default when there's a desktop environment
programs.ghostty.enable = lib.mkDefault true;
})
];
}

View file

@ -1,10 +1,18 @@
{ lib, ... }:
{ lib, nixosConfig, ... }:
{
config = lib.mkMerge [
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
programs.mpv.enable = lib.mkDefault true;
})
{
programs.mpv = {
enable = lib.mkDefault false;
config = {
hwdec = "auto";
vo = "gpu";
};
};
}
];
}

View file

@ -1,14 +1,17 @@
{
lib,
config,
pkgs,
nixosConfig,
...
}:
{
options.enableWezterm = lib.mkEnableOption "Wezterm terminal emulator";
config = {
config = lib.mkMerge [
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
programs.wezterm.enable = lib.mkDefault true;
})
{
programs.wezterm = {
enable = config.enableWezterm;
extraConfig = ''
_G.shells = {
fish = '${lib.getExe pkgs.fish}'
@ -28,5 +31,6 @@
}
'';
};
};
}
];
}