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 = {
|
config = lib.mkMerge [
|
||||||
enable = lib.mkDefault false;
|
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
|
||||||
settings = {
|
# Set enableAlacritty to true by default when there's a desktop environment
|
||||||
window = {
|
programs.alacritty.enable = lib.mkDefault true;
|
||||||
opacity = 0.95;
|
})
|
||||||
padding = {
|
|
||||||
x = 10;
|
{
|
||||||
y = 10;
|
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 = {
|
config = lib.mkMerge [
|
||||||
enable = lib.mkDefault false;
|
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
|
||||||
# Configuration can be added as needed
|
# 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 = {
|
config = lib.mkMerge [
|
||||||
enable = lib.mkDefault false;
|
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
|
||||||
config = {
|
programs.mpv.enable = lib.mkDefault true;
|
||||||
hwdec = "auto";
|
})
|
||||||
vo = "gpu";
|
|
||||||
};
|
{
|
||||||
};
|
programs.mpv = {
|
||||||
|
config = {
|
||||||
|
hwdec = "auto";
|
||||||
|
vo = "gpu";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,36 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
|
nixosConfig,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options.enableWezterm = lib.mkEnableOption "Wezterm terminal emulator";
|
config = lib.mkMerge [
|
||||||
config = {
|
(lib.mkIf (nixosConfig != null && nixosConfig.osbmModules.desktopEnvironment != "none") {
|
||||||
programs.wezterm = {
|
programs.wezterm.enable = lib.mkDefault true;
|
||||||
enable = config.enableWezterm;
|
})
|
||||||
extraConfig = ''
|
|
||||||
_G.shells = {
|
|
||||||
fish = '${lib.getExe pkgs.fish}'
|
|
||||||
};
|
|
||||||
|
|
||||||
wezterm.on('gui-startup', function(cmd)
|
{
|
||||||
local tab, pane, window = wezterm.mux.spawn_window(cmd or {})
|
programs.wezterm = {
|
||||||
window:gui_window():maximize()
|
extraConfig = ''
|
||||||
end)
|
_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 {
|
return {
|
||||||
default_prog = { _G.shells.fish },
|
default_prog = { _G.shells.fish },
|
||||||
window_decorations = "NONE",
|
window_decorations = "NONE",
|
||||||
hide_tab_bar_if_only_one_tab = true,
|
hide_tab_bar_if_only_one_tab = true,
|
||||||
enable_wayland = false,
|
enable_wayland = false,
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue