-
Notifications
You must be signed in to change notification settings - Fork 0
/
plasma.nix
123 lines (113 loc) · 3.37 KB
/
plasma.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{ config
, pkgs
, lib
, ...
}:
let
papirus-icons = import ./pkgs/papirus-icons.nix { inherit pkgs; };
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
plasma-manager =
(import flake-compat {
src = builtins.fetchTarball "https://github.com/pjones/plasma-manager/archive/9bac5925cf7716979535eed9c88e307fa9744169.tar.gz";
}).defaultNix;
in
{
imports = [
plasma-manager.homeManagerModules.plasma-manager
];
outOfStoreSymlinks.home = {
".local/bin/seaglass-spicetify" = "${builtins.toString ./.}/files/theme/seaglass-spicetify.py";
".local/bin/seaglass-theme" = "${builtins.toString ./.}/files/theme/seaglass-theme.sh";
};
programs.plasma = {
enable = true;
configFile = {
kdeglobals = {
General = {
fixed = "FiraCode Nerd Font,11,-1,5,50,0,0,0,0,0";
font = "SFNS Display,11,-1,5,50,0,0,0,0,0";
menuFont = "SFNS Display,11,-1,5,50,0,0,0,0,0";
smallestReadableFont = "SFNS Display,9,-1,5,50,0,0,0,0,0";
toolBarFont = "SFNS Display,11,-1,5,50,0,0,0,0,0";
BrowserApplication = "firefox.desktop";
};
KDE = {
LookAndFeelPackage = "seaglass";
widgetStyle = "Lightly";
};
};
dolphinrc.MainWindow.MenuBar = "Disabled";
lightlyrc.Style = {
DolphinSidebarOpacity = 80;
MenuOpacity = 80;
};
powermanagementprofilesrc =
let
events = grp: {
lidAction = "null";
powerButtonAction = "null";
configGroupNesting = [ grp "HandleButtonEvents" ];
};
in
{
AC = events "AC";
Battery = events "Battery";
LowBattery = events "LowBattery";
};
"spicetify/config-xpui.ini" = {
Setting = {
spotify_launch_flags = "--enable-features=UseOzonePlatform|--ozone-platform=wayland";
inject_css = 1;
inject_theme_js = 1;
color_scheme = "pywal";
current_theme = "Ziro";
replace_colors = 1;
overwrite_assets = 1;
};
AdditionalOptions = {
custom_apps = "marketplace|stats";
sidebar_config = 0;
home_config = 1;
experimental_fesatures = 1;
};
};
"zoomus.conf".General.xwayland = false;
};
};
outOfStoreSymlinks.xdgConfig."spicetify/Themes/Ziro" = "/usr/share/spicetify-cli/Themes/Ziro";
# Plasma theme
outOfStoreSymlinks.xdgData."plasma/look-and-feel/seaglass" = "${builtins.toString ./.}/files/theme/kde-theme";
# Icons
xdg.dataFile."icons/Papirus-Colors".source = "${papirus-icons}/Papirus-Colors";
xdg.dataFile."icons/Papirus-Colors-Dark".source = "${papirus-icons}/Papirus-Colors-Dark";
# Fonts
fonts.fontconfig = {
enable = true;
defaultFonts = {
sansSerif = [
"SF Pro Display"
"SFNS Display"
"Source Han Sans"
"Source Han Sans SC"
"Source Han Sans TC"
"Source Han Sans JP"
"Source Han Sans K"
];
monospace = [
"FiraCode Nerd Font"
"Source Han Mono"
];
serif = [
"New York"
"Source Han Serif"
"Source Han Serif SC"
"Source Han Serif TC"
"Source Han Serif JP"
"Source Han Serif K"
];
emoji = [
"Apple Color Emoji"
];
};
};
}