1
0

default.nix 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. { config, pkgs, lib, inputs, ... }:
  2. {
  3. imports = [
  4. inputs.noctalia.homeModules.default
  5. ];
  6. home.packages = [
  7. inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default
  8. ];
  9. programs.noctalia-shell = {
  10. enable = true;
  11. settings = {
  12. settingsVersion = 0;
  13. bar = {
  14. barType = "simple";
  15. position = "top";
  16. monitors = [ ];
  17. density = "default";
  18. showOutline = false;
  19. showCapsule = true;
  20. capsuleOpacity = 1;
  21. capsuleColorKey = "none";
  22. widgetSpacing = 6;
  23. contentPadding = 2;
  24. fontScale = 1;
  25. enableExclusionZoneInset = true;
  26. backgroundOpacity = 0.93;
  27. useSeparateOpacity = false;
  28. marginVertical = 4;
  29. marginHorizontal = 4;
  30. frameThickness = 8;
  31. frameRadius = 12;
  32. outerCorners = true;
  33. hideOnOverview = false;
  34. displayMode = "always_visible";
  35. autoHideDelay = 500;
  36. autoShowDelay = 150;
  37. showOnWorkspaceSwitch = true;
  38. widgets = {
  39. left = [
  40. {
  41. id = "Launcher";
  42. }
  43. {
  44. id = "Clock";
  45. }
  46. {
  47. id = "SystemMonitor";
  48. }
  49. {
  50. id = "ActiveWindow";
  51. }
  52. {
  53. id = "MediaMini";
  54. }
  55. ];
  56. center = [
  57. {
  58. id = "Workspace";
  59. }
  60. ];
  61. right = [
  62. {
  63. id = "Tray";
  64. }
  65. {
  66. id = "NotificationHistory";
  67. }
  68. {
  69. id = "Battery";
  70. }
  71. {
  72. id = "Volume";
  73. }
  74. {
  75. id = "Brightness";
  76. }
  77. {
  78. id = "ControlCenter";
  79. }
  80. ];
  81. };
  82. mouseWheelAction = "none";
  83. reverseScroll = false;
  84. mouseWheelWrap = true;
  85. middleClickAction = "none";
  86. middleClickFollowMouse = false;
  87. middleClickCommand = "";
  88. rightClickAction = "controlCenter";
  89. rightClickFollowMouse = true;
  90. rightClickCommand = "";
  91. screenOverrides = [ ];
  92. };
  93. general = {
  94. avatarImage = "";
  95. dimmerOpacity = 0.2;
  96. showScreenCorners = false;
  97. forceBlackScreenCorners = false;
  98. scaleRatio = 1;
  99. radiusRatio = 1;
  100. iRadiusRatio = 1;
  101. boxRadiusRatio = 1;
  102. screenRadiusRatio = 1;
  103. animationSpeed = 1;
  104. animationDisabled = false;
  105. compactLockScreen = false;
  106. lockScreenAnimations = false;
  107. lockOnSuspend = true;
  108. showSessionButtonsOnLockScreen = true;
  109. showHibernateOnLockScreen = false;
  110. enableLockScreenMediaControls = false;
  111. enableShadows = true;
  112. enableBlurBehind = true;
  113. shadowDirection = "bottom_right";
  114. shadowOffsetX = 2;
  115. shadowOffsetY = 3;
  116. language = "";
  117. allowPanelsOnScreenWithoutBar = true;
  118. showChangelogOnStartup = true;
  119. telemetryEnabled = false;
  120. enableLockScreenCountdown = true;
  121. lockScreenCountdownDuration = 10000;
  122. autoStartAuth = false;
  123. allowPasswordWithFprintd = false;
  124. clockStyle = "custom";
  125. clockFormat = "hh\nmm";
  126. passwordChars = false;
  127. lockScreenMonitors = [ ];
  128. lockScreenBlur = 0;
  129. lockScreenTint = 0;
  130. keybinds = {
  131. keyUp = [
  132. "Up"
  133. ];
  134. keyDown = [
  135. "Down"
  136. ];
  137. keyLeft = [
  138. "Left"
  139. ];
  140. keyRight = [
  141. "Right"
  142. ];
  143. keyEnter = [
  144. "Return"
  145. "Enter"
  146. ];
  147. keyEscape = [
  148. "Esc"
  149. ];
  150. keyRemove = [
  151. "Del"
  152. ];
  153. };
  154. reverseScroll = false;
  155. smoothScrollEnabled = true;
  156. };
  157. ui = {
  158. fontDefault = "";
  159. fontFixed = "";
  160. fontDefaultScale = 1;
  161. fontFixedScale = 1;
  162. tooltipsEnabled = true;
  163. scrollbarAlwaysVisible = true;
  164. boxBorderEnabled = false;
  165. panelBackgroundOpacity = 0.93;
  166. translucentWidgets = false;
  167. panelsAttachedToBar = true;
  168. settingsPanelMode = "attached";
  169. settingsPanelSideBarCardStyle = false;
  170. };
  171. location = {
  172. name = "";
  173. weatherEnabled = true;
  174. weatherShowEffects = true;
  175. weatherTaliaMascotAlways = false;
  176. useFahrenheit = false;
  177. use12hourFormat = false;
  178. showWeekNumberInCalendar = false;
  179. showCalendarEvents = true;
  180. showCalendarWeather = true;
  181. analogClockInCalendar = false;
  182. firstDayOfWeek = -1;
  183. hideWeatherTimezone = false;
  184. hideWeatherCityName = false;
  185. autoLocate = true;
  186. };
  187. calendar = {
  188. cards = [
  189. {
  190. enabled = true;
  191. id = "calendar-header-card";
  192. }
  193. {
  194. enabled = true;
  195. id = "calendar-month-card";
  196. }
  197. {
  198. enabled = true;
  199. id = "weather-card";
  200. }
  201. ];
  202. };
  203. wallpaper = {
  204. enabled = true;
  205. overviewEnabled = false;
  206. directory = "";
  207. monitorDirectories = [ ];
  208. enableMultiMonitorDirectories = false;
  209. showHiddenFiles = false;
  210. viewMode = "single";
  211. setWallpaperOnAllMonitors = true;
  212. linkLightAndDarkWallpapers = true;
  213. fillMode = "crop";
  214. fillColor = "#000000";
  215. useSolidColor = false;
  216. solidColor = "#1a1a2e";
  217. automationEnabled = false;
  218. wallpaperChangeMode = "random";
  219. randomIntervalSec = 300;
  220. transitionDuration = 1500;
  221. transitionType = [
  222. "fade"
  223. "disc"
  224. "stripes"
  225. "wipe"
  226. "pixelate"
  227. "honeycomb"
  228. ];
  229. skipStartupTransition = false;
  230. transitionEdgeSmoothness = 0.05;
  231. panelPosition = "follow_bar";
  232. hideWallpaperFilenames = false;
  233. useOriginalImages = false;
  234. overviewBlur = 0.4;
  235. overviewTint = 0.6;
  236. useWallhaven = false;
  237. wallhavenQuery = "";
  238. wallhavenSorting = "relevance";
  239. wallhavenOrder = "desc";
  240. wallhavenCategories = "111";
  241. wallhavenPurity = "100";
  242. wallhavenRatios = "";
  243. wallhavenApiKey = "";
  244. wallhavenResolutionMode = "atleast";
  245. wallhavenResolutionWidth = "";
  246. wallhavenResolutionHeight = "";
  247. sortOrder = "name";
  248. favorites = [ ];
  249. };
  250. appLauncher = {
  251. enableClipboardHistory = false;
  252. autoPasteClipboard = false;
  253. enableClipPreview = true;
  254. clipboardWrapText = true;
  255. enableClipboardSmartIcons = true;
  256. enableClipboardChips = true;
  257. clipboardWatchTextCommand = "wl-paste --type text --watch cliphist store";
  258. clipboardWatchImageCommand = "wl-paste --type image --watch cliphist store";
  259. position = "center";
  260. pinnedApps = [ ];
  261. sortByMostUsed = true;
  262. terminalCommand = "alacritty -e";
  263. customLaunchPrefixEnabled = false;
  264. customLaunchPrefix = "";
  265. viewMode = "list";
  266. showCategories = true;
  267. iconMode = "tabler";
  268. showIconBackground = false;
  269. enableSettingsSearch = true;
  270. enableWindowsSearch = true;
  271. enableSessionSearch = true;
  272. ignoreMouseInput = false;
  273. screenshotAnnotationTool = "";
  274. overviewLayer = false;
  275. density = "default";
  276. };
  277. controlCenter = {
  278. position = "close_to_bar_button";
  279. diskPath = "/";
  280. shortcuts = {
  281. left = [
  282. {
  283. id = "Network";
  284. }
  285. {
  286. id = "Bluetooth";
  287. }
  288. {
  289. id = "WallpaperSelector";
  290. }
  291. {
  292. id = "NoctaliaPerformance";
  293. }
  294. ];
  295. right = [
  296. {
  297. id = "Notifications";
  298. }
  299. {
  300. id = "PowerProfile";
  301. }
  302. {
  303. id = "KeepAwake";
  304. }
  305. {
  306. id = "NightLight";
  307. }
  308. ];
  309. };
  310. cards = [
  311. {
  312. enabled = true;
  313. id = "profile-card";
  314. }
  315. {
  316. enabled = true;
  317. id = "shortcuts-card";
  318. }
  319. {
  320. enabled = true;
  321. id = "audio-card";
  322. }
  323. {
  324. enabled = false;
  325. id = "brightness-card";
  326. }
  327. {
  328. enabled = true;
  329. id = "weather-card";
  330. }
  331. {
  332. enabled = true;
  333. id = "media-sysmon-card";
  334. }
  335. ];
  336. };
  337. systemMonitor = {
  338. cpuWarningThreshold = 80;
  339. cpuCriticalThreshold = 90;
  340. tempWarningThreshold = 80;
  341. tempCriticalThreshold = 90;
  342. gpuWarningThreshold = 80;
  343. gpuCriticalThreshold = 90;
  344. memWarningThreshold = 80;
  345. memCriticalThreshold = 90;
  346. swapWarningThreshold = 80;
  347. swapCriticalThreshold = 90;
  348. diskWarningThreshold = 80;
  349. diskCriticalThreshold = 90;
  350. diskAvailWarningThreshold = 20;
  351. diskAvailCriticalThreshold = 10;
  352. batteryWarningThreshold = 20;
  353. batteryCriticalThreshold = 5;
  354. enableDgpuMonitoring = false;
  355. useCustomColors = false;
  356. warningColor = "";
  357. criticalColor = "";
  358. externalMonitor = "resources || missioncenter || jdsystemmonitor || corestats || system-monitoring-center || gnome-system-monitor || plasma-systemmonitor || mate-system-monitor || ukui-system-monitor || deepin-system-monitor || pantheon-system-monitor";
  359. };
  360. noctaliaPerformance = {
  361. disableWallpaper = true;
  362. disableDesktopWidgets = true;
  363. };
  364. dock = {
  365. enabled = true;
  366. position = "bottom";
  367. displayMode = "auto_hide";
  368. dockType = "floating";
  369. backgroundOpacity = 1;
  370. floatingRatio = 1;
  371. size = 1;
  372. onlySameOutput = true;
  373. monitors = [ ];
  374. pinnedApps = [ ];
  375. colorizeIcons = false;
  376. showLauncherIcon = false;
  377. launcherPosition = "end";
  378. launcherUseDistroLogo = false;
  379. launcherIcon = "";
  380. launcherIconColor = "none";
  381. pinnedStatic = false;
  382. inactiveIndicators = false;
  383. groupApps = false;
  384. groupContextMenuMode = "extended";
  385. groupClickAction = "cycle";
  386. groupIndicatorStyle = "dots";
  387. deadOpacity = 0.6;
  388. animationSpeed = 1;
  389. sitOnFrame = false;
  390. showDockIndicator = false;
  391. indicatorThickness = 3;
  392. indicatorColor = "primary";
  393. indicatorOpacity = 0.6;
  394. };
  395. network = {
  396. bluetoothRssiPollingEnabled = false;
  397. bluetoothRssiPollIntervalMs = 60000;
  398. networkPanelView = "wifi";
  399. wifiDetailsViewMode = "grid";
  400. bluetoothDetailsViewMode = "grid";
  401. bluetoothHideUnnamedDevices = false;
  402. disableDiscoverability = false;
  403. bluetoothAutoConnect = true;
  404. };
  405. sessionMenu = {
  406. enableCountdown = true;
  407. countdownDuration = 10000;
  408. position = "center";
  409. showHeader = true;
  410. showKeybinds = true;
  411. largeButtonsStyle = true;
  412. largeButtonsLayout = "single-row";
  413. powerOptions = [
  414. {
  415. action = "lock";
  416. enabled = true;
  417. keybind = "1";
  418. }
  419. {
  420. action = "suspend";
  421. enabled = true;
  422. keybind = "2";
  423. }
  424. {
  425. action = "hibernate";
  426. enabled = true;
  427. keybind = "3";
  428. }
  429. {
  430. action = "reboot";
  431. enabled = true;
  432. keybind = "4";
  433. }
  434. {
  435. action = "logout";
  436. enabled = true;
  437. keybind = "5";
  438. }
  439. {
  440. action = "shutdown";
  441. enabled = true;
  442. keybind = "6";
  443. }
  444. {
  445. action = "rebootToUefi";
  446. enabled = true;
  447. keybind = "7";
  448. }
  449. ];
  450. };
  451. notifications = {
  452. enabled = true;
  453. enableMarkdown = false;
  454. density = "default";
  455. monitors = [ ];
  456. location = "top_right";
  457. overlayLayer = true;
  458. backgroundOpacity = 1;
  459. respectExpireTimeout = false;
  460. lowUrgencyDuration = 3;
  461. normalUrgencyDuration = 8;
  462. criticalUrgencyDuration = 15;
  463. clearDismissed = true;
  464. saveToHistory = {
  465. low = true;
  466. normal = true;
  467. critical = true;
  468. };
  469. sounds = {
  470. enabled = false;
  471. volume = 0.5;
  472. separateSounds = false;
  473. criticalSoundFile = "";
  474. normalSoundFile = "";
  475. lowSoundFile = "";
  476. excludedApps = "discord,firefox,chrome,chromium,edge";
  477. };
  478. enableMediaToast = false;
  479. enableKeyboardLayoutToast = true;
  480. enableBatteryToast = true;
  481. };
  482. osd = {
  483. enabled = true;
  484. location = "top_right";
  485. autoHideMs = 2000;
  486. overlayLayer = true;
  487. backgroundOpacity = 1;
  488. enabledTypes = [
  489. 0
  490. 1
  491. 2
  492. ];
  493. monitors = [ ];
  494. };
  495. audio = {
  496. volumeStep = 5;
  497. volumeOverdrive = false;
  498. spectrumFrameRate = 30;
  499. visualizerType = "linear";
  500. spectrumMirrored = true;
  501. mprisBlacklist = [ ];
  502. preferredPlayer = "";
  503. volumeFeedback = false;
  504. volumeFeedbackSoundFile = "";
  505. };
  506. brightness = {
  507. brightnessStep = 5;
  508. enforceMinimum = true;
  509. enableDdcSupport = false;
  510. backlightDeviceMappings = [ ];
  511. };
  512. colorSchemes = {
  513. useWallpaperColors = false;
  514. predefinedScheme = "Noctalia (default)";
  515. darkMode = true;
  516. schedulingMode = "off";
  517. manualSunrise = "06:30";
  518. manualSunset = "18:30";
  519. generationMethod = "tonal-spot";
  520. monitorForColors = "";
  521. syncGsettings = true;
  522. };
  523. templates = {
  524. activeTemplates = [ ];
  525. enableUserTheming = false;
  526. };
  527. nightLight = {
  528. enabled = false;
  529. forced = false;
  530. autoSchedule = true;
  531. nightTemp = "4000";
  532. dayTemp = "6500";
  533. manualSunrise = "06:30";
  534. manualSunset = "18:30";
  535. };
  536. hooks = {
  537. enabled = false;
  538. wallpaperChange = "";
  539. darkModeChange = "";
  540. screenLock = "";
  541. screenUnlock = "";
  542. performanceModeEnabled = "";
  543. performanceModeDisabled = "";
  544. startup = "";
  545. session = "";
  546. colorGeneration = "";
  547. };
  548. plugins = {
  549. autoUpdate = false;
  550. notifyUpdates = true;
  551. };
  552. idle = {
  553. enabled = false;
  554. screenOffTimeout = 600;
  555. lockTimeout = 660;
  556. suspendTimeout = 1800;
  557. fadeDuration = 5;
  558. screenOffCommand = "";
  559. lockCommand = "";
  560. suspendCommand = "";
  561. resumeScreenOffCommand = "";
  562. resumeLockCommand = "";
  563. resumeSuspendCommand = "";
  564. customCommands = "[]";
  565. };
  566. desktopWidgets = {
  567. enabled = false;
  568. overviewEnabled = true;
  569. gridSnap = false;
  570. gridSnapScale = false;
  571. monitorWidgets = [ ];
  572. };
  573. };
  574. };
  575. }