set home manager options properly
This commit is contained in:
parent
181fa36037
commit
533b197825
4 changed files with 71 additions and 49 deletions
|
|
@ -1,18 +1,26 @@
|
|||
{ lib, ... }:
|
||||
{ lib, nixosConfig, ... }:
|
||||
{
|
||||
programs.alacritty = {
|
||||
enable = lib.mkDefault false;
|
||||
settings = {
|
||||
window = {
|
||||
opacity = 0.95;
|
||||
padding = {
|
||||
x = 10;
|
||||
y = 10;
|
||||
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 = {
|
||||
settings = {
|
||||
window = {
|
||||
opacity = 0.95;
|
||||
padding = {
|
||||
x = 10;
|
||||
y = 10;
|
||||
};
|
||||
};
|
||||
font = {
|
||||
size = 11.0;
|
||||
};
|
||||
};
|
||||
};
|
||||
font = {
|
||||
size = 11.0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,18 @@
|
|||
{ lib, ... }:
|
||||
{ lib, nixosConfig, ... }:
|
||||
{
|
||||
programs.mpv = {
|
||||
enable = lib.mkDefault false;
|
||||
config = {
|
||||
hwdec = "auto";
|
||||
vo = "gpu";
|
||||
};
|
||||
};
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
|
||||
programs.mpv.enable = lib.mkDefault true;
|
||||
})
|
||||
|
||||
{
|
||||
programs.mpv = {
|
||||
config = {
|
||||
hwdec = "auto";
|
||||
vo = "gpu";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,32 +1,36 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
nixosConfig,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.enableWezterm = lib.mkEnableOption "Wezterm terminal emulator";
|
||||
config = {
|
||||
programs.wezterm = {
|
||||
enable = config.enableWezterm;
|
||||
extraConfig = ''
|
||||
_G.shells = {
|
||||
fish = '${lib.getExe pkgs.fish}'
|
||||
};
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
|
||||
programs.wezterm.enable = lib.mkDefault true;
|
||||
})
|
||||
|
||||
wezterm.on('gui-startup', function(cmd)
|
||||
local tab, pane, window = wezterm.mux.spawn_window(cmd or {})
|
||||
window:gui_window():maximize()
|
||||
end)
|
||||
{
|
||||
programs.wezterm = {
|
||||
extraConfig = ''
|
||||
_G.shells = {
|
||||
fish = '${lib.getExe pkgs.fish}'
|
||||
};
|
||||
|
||||
wezterm.on('gui-startup', function(cmd)
|
||||
local tab, pane, window = wezterm.mux.spawn_window(cmd or {})
|
||||
window:gui_window():maximize()
|
||||
end)
|
||||
|
||||
|
||||
return {
|
||||
default_prog = { _G.shells.fish },
|
||||
window_decorations = "NONE",
|
||||
hide_tab_bar_if_only_one_tab = true,
|
||||
enable_wayland = false,
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
return {
|
||||
default_prog = { _G.shells.fish },
|
||||
window_decorations = "NONE",
|
||||
hide_tab_bar_if_only_one_tab = true,
|
||||
enable_wayland = false,
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue