diff --git a/home/config/ferdium.nix b/home/config/ferdium.nix new file mode 100644 index 00000000..e4c72814 --- /dev/null +++ b/home/config/ferdium.nix @@ -0,0 +1,85 @@ +{ accentColor, progressbarAccentColor }: +{ + inherit accentColor progressbarAccentColor; + adaptableDarkMode = true; + alwaysShowWorkspaces = false; + autoLaunchInBackground = false; + autoLaunchOnStart = false; + autohideMenuBar = false; + automaticUpdates = false; + beta = false; + clipboardNotifications = true; + closeToSystemTray = false; + confirmOnQuit = false; + customTodoServer = ""; + darkMode = false; + downloadFolderPath = "/home/pixelifytica/Downloads"; + enableGPUAcceleration = true; + enableGlobalHideShortcut = false; + enableLongPressServiceHint = false; + enableSpellchecking = true; + enableSystemTray = true; + enableTranslator = true; + fallbackLocale = "en-US"; + grayscaleServicesDim = 50; + hibernateOnStartup = true; + hibernationStrategy = 300; + hideAllServicesWorkspace = false; + hideCollapseButton = false; + hideDownloadButton = false; + hideNotificationsButton = false; + hideRecipesButton = false; + hideSettingsButton = false; + hideSplitModeButton = true; + hideWorkspacesButton = false; + iconSize = 20; + inactivityLock = 0; + isAppMuted = false; + isLockingFeatureEnabled = false; + isMenuCollapsed = false; + isTodosFeatureEnabled = true; + isTwoFactorAutoCatcherEnabled = false; + keepAllWorkspacesLoaded = false; + liftSingleInstanceLock = false; + locale = "en-US"; + locked = false; + lockedPassword = ""; + minimizeToSystemTray = false; + navigationBarBehaviour = "custom"; + navigationBarManualActive = false; + notifyTaskBarOnMessage = false; + predefinedTodoServer = "https://todoist.com/app"; + privateNotifications = false; + reloadAfterResume = true; + reloadAfterResumeTime = 10; + runInBackground = true; + scheduledDNDEnabled = false; + scheduledDNDEnd = "09:00"; + scheduledDNDStart = "17:00"; + searchEngine = "duckDuckGo"; + sentry = false; + server = "You are using Ferdium without a server"; + serviceRibbonWidth = 68; + showDisabledServices = true; + showDragArea = false; + showMessageBadgeWhenMuted = true; + showServiceName = false; + sidebarServicesLocation = 0; + spellcheckerLanguage = "en-GB"; + splitColumns = 3; + splitMode = false; + startMinimized = true; + translatorEngine = "LibreTranslate"; + translatorLanguage = "en"; + twoFactorAutoCatcherMatcher = "token, code, sms, verify"; + universalDarkMode = true; + useGrayscaleServices = false; + useHorizontalStyle = false; + useSelfSignedCertificates = false; + useTouchIdToUnlock = true; + userAgentPref = ""; + wakeUpHibernationSplay = true; + wakeUpHibernationStrategy = 0; + wakeUpStrategy = 300; + webRTCIPHandlingPolicy = "disable_non_proxied_udp"; +} diff --git a/home/config/teams-for-linux.nix b/home/config/teams-for-linux.nix new file mode 100644 index 00000000..0609ed4d --- /dev/null +++ b/home/config/teams-for-linux.nix @@ -0,0 +1,8 @@ +{ + awayOnSystemIdle = true; + closeAppOnCross = true; + followSystemTheme = true; + notificationMethod = "electron"; + optInTeamsV2 = true; + spellCheckerLanguages = [ "en_GB" ]; +} diff --git a/home/default.nix b/home/default.nix index 37aba570..1e9c7353 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,4 +1,9 @@ -{ pkgs, ... }: +{ + config, + pkgs, + accentColourName, + ... +}: { imports = [ # Programs @@ -18,20 +23,24 @@ krdc krita tokodon - webcord + ferdium signal-desktop teams-for-linux ]; xdg.configFile = { "autostart/org.kde.yakuake.desktop".source = "${pkgs.yakuake}/share/applications/org.kde.yakuake.desktop"; "autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop"; - "teams-for-linux/config.json".text = builtins.toJSON { - awayOnSystemIdle = true; - closeAppOnCross = true; - followSystemTheme = true; - notificationMethod = "electron"; - optInTeamsV2 = true; - spellCheckerLanguages = [ "en_GB" ]; - }; + "autostart/ferdium.desktop".source = "${pkgs.ferdium}/share/applications/ferdium.desktop"; + "Ferdium/config/settings.json".text = + let + accentColor = config.scheme.withHashtag.${accentColourName}; + in + builtins.toJSON ( + import ./config/ferdium.nix { + inherit accentColor; + progressbarAccentColor = accentColor; + } + ); + "teams-for-linux/config.json".text = builtins.toJSON (import ./config/teams-for-linux.nix); }; }