1
0

settings.nix 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. { config, pkgs, lib, inputs, ... }:
  2. let
  3. users = import ./../../../../config/users.nix;
  4. in
  5. {
  6. programs.dank-material-shell = {
  7. settings = {
  8. currentThemeName = "dynamic";
  9. currentThemeCategory = "dynamic";
  10. customThemeFile = "/home/${users.default}/.config/DankMaterialShell/themes/gnomeAdwaita/theme.json";
  11. registryThemeVariants = {
  12. deepmono = {
  13. dark = {
  14. accent = "fog";
  15. flavor = "mono";
  16. };
  17. };
  18. };
  19. radiusStrength = 38;
  20. clockFormat = "24h";
  21. greeterEnableFprint = true;
  22. greeterEnableU2f = true;
  23. weatherEnabled = false;
  24. fontFamily = "Adwaita Sans";
  25. monoFontFamily = "Adwaita Mono";
  26. powerMenuActions = [
  27. "reboot"
  28. "logout"
  29. "poweroff"
  30. "lock"
  31. "suspend"
  32. "restart"
  33. "hibernate"
  34. ];
  35. powerMenuDefaultAction = "poweroff";
  36. dockConfigs = [
  37. {
  38. id = "dock";
  39. name = "Dock";
  40. enabled = false;
  41. screenPreferences = [
  42. "all"
  43. ];
  44. showOnLastDisplay = false;
  45. position = 0;
  46. mode = "compact";
  47. taskbarAlign = "center";
  48. widgetExpansion = "popout";
  49. iconSize = 40;
  50. spacing = 4;
  51. itemSpacing = 4;
  52. margin = 0;
  53. bottomGap = 0;
  54. transparency = 1;
  55. followInterfaceStyle = true;
  56. autoHide = false;
  57. smartAutoHide = false;
  58. useOverlayLayer = false;
  59. editOnRightClick = false;
  60. showOnFullscreen = false;
  61. openOnOverview = false;
  62. groupByApp = false;
  63. separatePinnedAndRunningApps = false;
  64. restoreSpecialWorkspaceOnClick = false;
  65. isolateDisplays = false;
  66. indicatorStyle = "circle";
  67. borderEnabled = false;
  68. borderColor = "surfaceText";
  69. borderOpacity = 1;
  70. borderThickness = 1;
  71. launcherEnabled = false;
  72. launcherLogoMode = "apps";
  73. launcherLogoCustomPath = "";
  74. launcherLogoColorOverride = "";
  75. launcherLogoSizeOffset = 0;
  76. launcherLogoBrightness = 0.5;
  77. launcherLogoContrast = 1;
  78. maxVisibleApps = 0;
  79. maxVisibleRunningApps = 0;
  80. showOverflowBadge = true;
  81. showTrash = false;
  82. trashFileManager = "default";
  83. trashCustomCommand = "";
  84. magnification = false;
  85. magnificationScale = 130;
  86. magnificationProfile = "parabolic";
  87. magnificationExpand = false;
  88. order = [];
  89. widgets = [
  90. {
  91. enabled = true;
  92. id = "dock_launcher";
  93. widgetId = "dockLauncher";
  94. }
  95. {
  96. enabled = true;
  97. id = "dock_apps";
  98. widgetId = "appsDock";
  99. }
  100. {
  101. enabled = true;
  102. id = "dock_trash";
  103. widgetId = "dockTrash";
  104. }
  105. ];
  106. }
  107. ];
  108. matugenSpec = "2021";
  109. dmsWindowsFloatingSeeded = [
  110. "hyprland"
  111. ];
  112. syncComponentAnimationSpeeds = false;
  113. barElevationEnabled = false;
  114. controlCenterWidgets = [
  115. {
  116. col = 0;
  117. enabled = true;
  118. h = 1;
  119. id = "user";
  120. row = 0;
  121. w = 5;
  122. }
  123. {
  124. col = 5;
  125. enabled = true;
  126. h = 1;
  127. id = "settings";
  128. row = 0;
  129. small = true;
  130. w = 1;
  131. }
  132. {
  133. col = 6;
  134. enabled = true;
  135. h = 1;
  136. id = "lock";
  137. row = 0;
  138. small = true;
  139. w = 1;
  140. }
  141. {
  142. col = 7;
  143. enabled = true;
  144. h = 1;
  145. id = "power";
  146. row = 0;
  147. small = true;
  148. w = 1;
  149. }
  150. {
  151. col = 0;
  152. enabled = true;
  153. h = 1;
  154. id = "volumeSlider";
  155. row = 1;
  156. w = 4;
  157. }
  158. {
  159. col = 4;
  160. enabled = true;
  161. h = 1;
  162. id = "brightnessSlider";
  163. row = 1;
  164. w = 4;
  165. }
  166. {
  167. col = 0;
  168. enabled = true;
  169. h = 1;
  170. id = "wifi";
  171. row = 2;
  172. w = 4;
  173. }
  174. {
  175. col = 4;
  176. enabled = true;
  177. h = 1;
  178. id = "bluetooth";
  179. row = 2;
  180. w = 4;
  181. }
  182. {
  183. col = 0;
  184. enabled = true;
  185. h = 1;
  186. id = "audioOutput";
  187. row = 3;
  188. w = 4;
  189. }
  190. {
  191. col = 4;
  192. enabled = true;
  193. h = 1;
  194. id = "audioInput";
  195. row = 3;
  196. w = 4;
  197. }
  198. {
  199. col = 0;
  200. enabled = true;
  201. h = 1;
  202. id = "nightMode";
  203. row = 4;
  204. w = 4;
  205. }
  206. {
  207. col = 4;
  208. enabled = true;
  209. h = 1;
  210. id = "idleInhibitor";
  211. row = 4;
  212. w = 4;
  213. }
  214. {
  215. col = 0;
  216. enabled = true;
  217. h = 1;
  218. id = "edit";
  219. row = 5;
  220. small = true;
  221. w = 1;
  222. }
  223. {
  224. col = 1;
  225. enabled = true;
  226. h = 1;
  227. id = "runningApps";
  228. row = 5;
  229. small = true;
  230. w = 3;
  231. }
  232. {
  233. col = 4;
  234. enabled = true;
  235. h = 1;
  236. id = "builtin_vpn";
  237. row = 5;
  238. w = 4;
  239. }
  240. ];
  241. appIdSubstitutions = [];
  242. clockDateFormat = "dddd, d. MMM";
  243. dashCards = [
  244. {
  245. id = "clock";
  246. w = 2;
  247. h = 1;
  248. col = 3;
  249. row = 0;
  250. }
  251. {
  252. id = "weather";
  253. w = 1;
  254. h = 1;
  255. }
  256. {
  257. id = "calendar";
  258. w = 5;
  259. h = 3;
  260. col = 0;
  261. row = 1;
  262. }
  263. {
  264. id = "media";
  265. w = 3;
  266. h = 1;
  267. col = 0;
  268. row = 0;
  269. }
  270. ];
  271. dashOptions = {
  272. overview = {
  273. panelColumns = 5;
  274. panelRows = 4;
  275. };
  276. };
  277. welbeingEnabled = false;
  278. networkPreference = "wifi";
  279. cursorSettings = {
  280. dwl = {
  281. cursorHideTimeout = 0;
  282. };
  283. hyprland = {
  284. hideOnKeyPress = false;
  285. hideOnTouch = false;
  286. inactiveTimeout = 0;
  287. };
  288. niri = {
  289. hideAfterInactiveMs = 0;
  290. hideWhenTyping = false;
  291. };
  292. size = 24;
  293. theme = "System Default";
  294. };
  295. acMonitorTimeout = 300;
  296. acLockTimeout = 300;
  297. acSuspendTimeout = 600;
  298. lockBeforeSuspend = true;
  299. enableFprint = true;
  300. enableU2f = true;
  301. notificationHistoryEnabled = false;
  302. notificationHistoryMaxAgeDays = 1;
  303. osdPowerProfileEnabled = true;
  304. updaterUseCustomCommand = true;
  305. updaterCustomCommand = "nix-update";
  306. screenPreferences = {
  307. notepad = [];
  308. notifications = [
  309. "all"
  310. ];
  311. wallpaper = [
  312. "all"
  313. ];
  314. };
  315. showOnLastDisplay = {
  316. notifications = true;
  317. };
  318. barConfigs = [
  319. {
  320. attachToScreenEdge = false;
  321. autoHide = false;
  322. autoHideDelay = 250;
  323. borderColor = "surfaceText";
  324. borderEnabled = false;
  325. borderOpacity = 1;
  326. borderThickness = 1;
  327. bottomGap = 0;
  328. centerWidgets = [
  329. {
  330. clockCompactMode = false;
  331. enabled = true;
  332. id = "clock";
  333. clockNotificationBadge = false;
  334. }
  335. ];
  336. clickThrough = false;
  337. enabled = true;
  338. followInterfaceStyle = true;
  339. fontScale = 1;
  340. gothCornerRadiusOverride = false;
  341. gothCornerRadiusValue = 12;
  342. gothCornersEnabled = false;
  343. iconScale = 1;
  344. id = "default";
  345. innerPadding = -4;
  346. leftWidgets = [
  347. {
  348. enabled = true;
  349. id = "workspaceSwitcher";
  350. showWorkspaceApps = true;
  351. showWorkspaceIndex = true;
  352. }
  353. {
  354. enabled = true;
  355. id = "music";
  356. }
  357. ];
  358. maximizeDetection = true;
  359. maximizeWidgetIcons = false;
  360. maximizeWidgetText = false;
  361. name = "Main Bar";
  362. noBackground = false;
  363. openOnOverview = false;
  364. popupGapsAuto = true;
  365. popupGapsManual = 0;
  366. position = 1;
  367. rightWidgets = [
  368. {
  369. enabled = true;
  370. id = "notificationButton";
  371. }
  372. {
  373. enabled = true;
  374. id = "systemTray";
  375. }
  376. {
  377. enabled = true;
  378. id = "usbManager";
  379. }
  380. {
  381. enabled = true;
  382. id = "battery";
  383. }
  384. {
  385. enabled = true;
  386. id = "controlCenterButton";
  387. showAudioPercent = false;
  388. showBatteryIcon = false;
  389. showBrightnessIcon = true;
  390. showBrightnessPercent = false;
  391. showMicIcon = true;
  392. showMicPercent = false;
  393. showPrinterIcon = false;
  394. showScreenSharingIcon = true;
  395. }
  396. ];
  397. screenPreferences = [
  398. "all"
  399. ];
  400. scrollEnabled = true;
  401. scrollXBehavior = "focusWindow";
  402. scrollYBehavior = "workspace";
  403. shadowColorMode = "text";
  404. shadowCustomColor = "#000000";
  405. shadowIntensity = 0;
  406. shadowOpacity = 60;
  407. showOnLastDisplay = true;
  408. showOnWindowsOpen = false;
  409. spacing = 0;
  410. squareCorners = true;
  411. transparency = 1;
  412. visible = true;
  413. widgetFollowInterfaceStyle = true;
  414. widgetOutlineColor = "primary";
  415. widgetOutlineEnabled = false;
  416. widgetOutlineOpacity = 1;
  417. widgetOutlineThickness = 1;
  418. widgetPadding = 8;
  419. widgetTransparency = 1;
  420. }
  421. ];
  422. builtInPluginSettings = {
  423. dms_clipboard_search = {
  424. trigger = "cb";
  425. };
  426. dms_notepad = {
  427. enabled = false;
  428. };
  429. dms_settings_search = {
  430. trigger = "?";
  431. };
  432. dms_qr_generator = {
  433. trigger = "qrg";
  434. };
  435. dms_power = {
  436. trigger = "pw";
  437. };
  438. };
  439. configVersion = 42;
  440. };
  441. };
  442. }