-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ lib, ... }: | ||
|
||
{ | ||
imports = [ | ||
./konsole.nix | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ config, lib, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.programs.konsole; | ||
in | ||
|
||
{ | ||
options.programs.konsole = { | ||
enable = mkEnableOption '' | ||
Enable configuration management for Konsole | ||
''; | ||
|
||
defaultProfile = mkOption { | ||
type = with types; nullOr str; | ||
default = null; | ||
example = "Catppuccin"; | ||
description = '' | ||
The name of the konsole profile file to use by default | ||
To see what options you have, just take a look at ~/.local/share/konsole/ | ||
''; | ||
}; | ||
}; | ||
|
||
config = mkIf (config.programs.plasma.enable && cfg.enable) { | ||
programs.plasma.configFile."konsolerc" = mkMerge [ | ||
( | ||
mkIf (cfg.defaultProfile != null ) { | ||
"Desktop entry"."DefaultProfile" = cfg.defaultProfile; | ||
} | ||
) | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters