Set core.editor to vi; add Plasma wallpaper option; persist /etc
This commit is contained in:
parent
15769eda74
commit
f5595cad1a
6 changed files with 36 additions and 13 deletions
|
|
@ -45,6 +45,15 @@ in
|
|||
description = "Enable Breeze Dark, GTK Breeze-Dark, and dark cursors.";
|
||||
};
|
||||
|
||||
wallpapers = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = [
|
||||
../../hosts/_shared_assets/wallpapers/pixel_neon.png
|
||||
../../hosts/_shared_assets/wallpapers/pixel_neon_v.png
|
||||
];
|
||||
description = "List of wallpaper paths to set system-wide for immediate loading.";
|
||||
};
|
||||
|
||||
sddm.autologinUser = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
|
|
@ -197,6 +206,17 @@ in
|
|||
'';
|
||||
})
|
||||
|
||||
(mkIf ((length cfg.wallpapers) > 0) {
|
||||
environment.etc."xdg/plasma-org.kde.plasma.desktop-appletsrc".text =
|
||||
let
|
||||
wallpaperPath = builtins.head cfg.wallpapers;
|
||||
in
|
||||
''
|
||||
[Containments][1][Wallpaper][org.kde.image][General]
|
||||
Image=file://${wallpaperPath}
|
||||
'';
|
||||
})
|
||||
|
||||
# GPU blocks
|
||||
(mkIf cfg.gpu.amd.enable {
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
|
|
|
|||
|
|
@ -294,10 +294,6 @@ in
|
|||
lookAndFeel = "org.kde.breezedark.desktop";
|
||||
theme = "breeze-dark";
|
||||
cursor.theme = "breeze_cursors";
|
||||
wallpaper = [
|
||||
../../../hosts/_shared_assets/wallpapers/pixel_neon.png
|
||||
../../../hosts/_shared_assets/wallpapers/pixel_neon_v.png
|
||||
];
|
||||
};
|
||||
|
||||
configFile = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue