nixos/modules/packages/plasma/konsole.nix

81 lines
2.8 KiB
Nix
Raw Normal View History

2024-02-12 10:04:56 +08:00
inputs:
{
2024-04-25 15:16:32 +08:00
config = inputs.lib.mkIf (builtins.elem "desktop" inputs.config.nixos.packages._packageSets)
2024-02-12 10:04:56 +08:00
{
2024-03-19 20:01:45 +08:00
nixos.user.sharedModules =
2024-04-25 15:16:32 +08:00
[{
2024-02-26 14:27:12 +08:00
config =
2024-02-12 10:04:56 +08:00
{
2024-02-26 14:27:12 +08:00
programs.plasma =
2024-02-12 10:04:56 +08:00
{
2024-02-26 14:27:12 +08:00
overrideConfig = true;
overrideConfigFiles = [ "konsolerc" "yakuakerc" ];
configFile =
2024-02-12 10:04:56 +08:00
{
2024-02-26 14:27:12 +08:00
yakuakerc =
2024-02-12 10:04:56 +08:00
{
2024-02-26 14:27:12 +08:00
Appearance =
{
2024-04-13 09:59:33 +08:00
HideSkinBorders.value = true;
Skin.value = "Slate";
Translucency.value = true;
2024-02-26 14:27:12 +08:00
};
2024-04-13 09:59:33 +08:00
"Desktop Entry".DefaultProfile.value = "plasma-manager.profile";
Dialogs.FirstRun.value = false;
2024-02-26 14:27:12 +08:00
Window =
{
2024-04-13 09:59:33 +08:00
KeepOpen.value = false;
KeepOpenAfterLastSessionCloses.value = true;
ShowSystrayIcon.value = false;
2024-02-26 14:27:12 +08:00
};
2024-02-12 10:04:56 +08:00
};
2024-02-26 14:27:12 +08:00
konsolerc =
2024-02-12 10:04:56 +08:00
{
2024-04-13 09:59:33 +08:00
"Desktop Entry".DefaultProfile.value = "plasma-manager.profile";
"MainWindow.Toolbar sessionToolbar".ToolButtonStyle.value = "IconOnly";
2024-02-12 10:04:56 +08:00
};
};
2024-02-26 14:27:12 +08:00
dataFile."konsole/plasma-manager.profile" =
2024-02-12 10:04:56 +08:00
{
2024-02-26 14:27:12 +08:00
Appearance =
{
2024-04-13 09:59:33 +08:00
AntiAliasFonts.value = true;
BoldIntense.value = true;
ColorScheme.value = "Breeze";
Font.value = "FiraCode Nerd Font Mono,10,-1,5,50,0,0,0,0,0";
UseFontLineChararacters.value = true;
WordModeAttr.value = false;
2024-02-26 14:27:12 +08:00
};
2024-04-13 09:59:33 +08:00
"Cursor Options".CursorShape.value = 1;
2024-02-26 14:27:12 +08:00
General =
{
2024-04-13 09:59:33 +08:00
Name.value = "plasma-manager";
Parent.value = "FALLBACK/";
TerminalCenter.value = true;
TerminalMargin.value = 1;
2024-02-26 14:27:12 +08:00
};
"Interaction Options" =
{
2024-04-13 09:59:33 +08:00
AutoCopySelectedText.value = true;
TrimLeadingSpacesInSelectedText.value = true;
TrimTrailingSpacesInSelectedText.value = true;
UnderlineFilesEnabled.value = true;
2024-02-26 14:27:12 +08:00
};
2024-04-13 09:59:33 +08:00
Scrolling = { HistoryMode.value = 2; ReflowLines.value = false; };
"Terminal Features".BlinkingCursorEnabled.value = true;
2024-02-12 10:04:56 +08:00
};
};
2024-02-26 14:27:12 +08:00
home.file.".local/share/konsole/Breeze.colorscheme".text = builtins.replaceStrings
[ "Opacity=1" ] [ "Opacity=0.9\nBlur=true" ]
(builtins.readFile "${inputs.pkgs.konsole}/share/konsole/Breeze.colorscheme");
2024-02-12 10:04:56 +08:00
};
2024-04-25 15:16:32 +08:00
}];
2024-02-12 10:04:56 +08:00
environment.persistence =
let impermanence = inputs.config.nixos.system.impermanence;
2024-02-26 14:27:12 +08:00
in inputs.lib.mkIf impermanence.enable (inputs.lib.mkMerge (builtins.map
(user:
{ "${impermanence.root}".users.${user}.directories = [ ".local/share/konsole" ".local/share/yakuake" ]; })
2024-03-19 20:01:45 +08:00
inputs.config.nixos.user.users));
2024-02-12 10:04:56 +08:00
};
}