From bdb473938287fcef27e4793fbb115a1345f11b9a Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Sun, 28 Jun 2026 13:06:19 +0200 Subject: Moved features to desktop --- modules/desktop/browser.nix | 167 ++++++++++ modules/desktop/ngeNoctalia.json | 686 ++++++++++++++++++++++++++++++++++++++ modules/desktop/niri.nix | 43 +++ modules/desktop/noctalia.nix | 15 + modules/features/browser.nix | 167 ---------- modules/features/ngeNoctalia.json | 686 -------------------------------------- modules/features/niri.nix | 43 --- modules/features/noctalia.nix | 15 - 8 files changed, 911 insertions(+), 911 deletions(-) create mode 100644 modules/desktop/browser.nix create mode 100644 modules/desktop/ngeNoctalia.json create mode 100644 modules/desktop/niri.nix create mode 100644 modules/desktop/noctalia.nix delete mode 100644 modules/features/browser.nix delete mode 100644 modules/features/ngeNoctalia.json delete mode 100644 modules/features/niri.nix delete mode 100644 modules/features/noctalia.nix (limited to 'modules') diff --git a/modules/desktop/browser.nix b/modules/desktop/browser.nix new file mode 100644 index 0000000..e24f252 --- /dev/null +++ b/modules/desktop/browser.nix @@ -0,0 +1,167 @@ +{inputs, ...}: let + extensions = { + core = [ + "ublock-origin" + "privacybadger" + "cleanurls" + "sidebery" + ]; + security = [ + "bitwarden-password-manager" + ]; + qol = [ + "dark-reader" + "stylus" + ]; + youtube = [ + "sponsorblock" + "return-youtube-dislikes" + ]; + }; + + mkExt = names: + map ( + name: "https://addons.mozilla.org/firefox/downloads/latest/${name}/latest.xpi" + ) + names; +in { + # ----------------------------- + # NIXOS MODULE + # ----------------------------- + flake.nixosModules.browser = { + lib, + pkgs, + self, + ... + }: { + home-manager.users.mun = { + programs.librewolf = { + enable = true; + package = inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.librewolf-sandboxed; + + languagePacks = ["en-GB" "cs" "sk" "de"]; + + policies = { + DisableTelemetry = true; + DisableFirefoxStudies = true; + DisablePocket = true; + DisableFeedbackCommands = true; + + DefaultDownloadDirectory = "\${home}/Downloads"; + + # ----------------------------- + # EXTENSIONS + # ----------------------------- + Extensions.Install = mkExt (extensions.core ++ extensions.security ++ extensions.youtube); + + Extensions.Uninstall = [ + "google@search.mozilla.org" + "bing@search.mozilla.org" + "ddg@search.mozilla.org" + ]; + }; + + profiles = { + # ------------------------- + # 1. DAILY PROFILE (mun) + # ------------------------- + mun = { + isDefault = true; + + search = { + force = true; + default = "duckduckbleh"; + + engines = { + "duckduckbleh" = { + urls = [ + { + template = "https://noai.duckduckgo.com/"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + definedAliases = ["duck" "d"]; + }; + }; + }; + + settings = { + "signon.rememberSignons" = false; + "browser.startup.homepage" = "about:blank"; + }; + }; + + # ------------------------- + # 2. WORK PROFILE + # ------------------------- + work = { + isDefault = false; + + settings = { + # more permissive (auth sites break otherwise) + "signon.rememberSignons" = true; + "network.cookie.lifetimePolicy" = 0; + }; + }; + + # ------------------------- + # 3. SCHOOL PROFILE + # ------------------------- + school = { + isDefault = false; + + settings = { + "signon.rememberSignons" = true; + "privacy.clearOnShutdown.cookies" = false; + }; + }; + + # ------------------------- + # 4. OPSEC PROFILE (STRICT) + # ------------------------- + opsec = { + isDefault = false; + + settings = { + "signon.rememberSignons" = false; + "network.cookie.lifetimePolicy" = 2; + + "privacy.clearOnShutdown.cookies" = true; + "privacy.clearOnShutdown.history" = true; + }; + }; + }; + + # GLOBAL BASELINE (applies to all profiles) + settings = { + "privacy.trackingprotection.enabled" = true; + "network.dns.disablePrefetch" = true; + "browser.send_pings" = false; + "dom.security.https_only_mode" = true; + "privacy.resistFingerprinting" = true; + }; + }; + }; + }; + + perSystem = {pkgs, ...}: { + packages.librewolf-sandboxed = pkgs.writeShellScriptBin "librewolf" '' + exec ${pkgs.bubblewrap}/bin/bwrap \ + --unshare-all \ + --die-with-parent \ + --proc /proc \ + --dev /dev \ + --tmpfs /tmp \ + --ro-bind /nix/store /nix/store \ + --dir $HOME \ + --setenv HOME $HOME \ + --setenv MOZ_ENABLE_WAYLAND 1 \ + ${pkgs.librewolf}/bin/librewolf "$@" + ''; + }; +} diff --git a/modules/desktop/ngeNoctalia.json b/modules/desktop/ngeNoctalia.json new file mode 100644 index 0000000..9dfea92 --- /dev/null +++ b/modules/desktop/ngeNoctalia.json @@ -0,0 +1,686 @@ +{ + "settingsVersion": 59, + "bar": { + "barType": "floating", + "position": "top", + "monitors": [], + "density": "default", + "showOutline": false, + "showCapsule": true, + "capsuleOpacity": 0.14, + "capsuleColorKey": "secondary", + "widgetSpacing": 10, + "contentPadding": 0, + "fontScale": 1, + "enableExclusionZoneInset": true, + "backgroundOpacity": 0.93, + "useSeparateOpacity": true, + "marginVertical": 7, + "marginHorizontal": 9, + "frameThickness": 8, + "frameRadius": 12, + "outerCorners": true, + "hideOnOverview": false, + "displayMode": "non_exclusive", + "autoHideDelay": 500, + "autoShowDelay": 150, + "showOnWorkspaceSwitch": true, + "widgets": { + "left": [ + { + "compactMode": true, + "diskPath": "/", + "iconColor": "none", + "id": "SystemMonitor", + "showCpuCores": false, + "showCpuFreq": false, + "showCpuTemp": true, + "showCpuUsage": true, + "showDiskAvailable": false, + "showDiskUsage": false, + "showDiskUsageAsPercent": false, + "showGpuTemp": false, + "showLoadAverage": false, + "showMemoryAsPercent": false, + "showMemoryUsage": true, + "showNetworkStats": false, + "showSwapUsage": false, + "textColor": "none", + "useMonospaceFont": true, + "usePadding": false + }, + { + "defaultSettings": { + "precision": 8, + "showBarValue": true + }, + "id": "plugin:noctalia-calculator" + }, + { + "compactMode": false, + "hideMode": "hidden", + "hideWhenIdle": false, + "id": "MediaMini", + "maxWidth": 145, + "panelShowAlbumArt": true, + "scrollingMode": "hover", + "showAlbumArt": true, + "showArtistFirst": true, + "showProgressRing": true, + "showVisualizer": false, + "textColor": "none", + "useFixedWidth": false, + "visualizerType": "linear" + }, + { + "colorizeIcons": false, + "hideMode": "hidden", + "id": "ActiveWindow", + "maxWidth": 145, + "scrollingMode": "hover", + "showIcon": true, + "showText": true, + "textColor": "none", + "useFixedWidth": false + } + ], + "center": [ + { + "clockColor": "none", + "customFont": "", + "formatHorizontal": "HH:mm ddd, MMM dd", + "formatVertical": "HH mm - dd MM", + "id": "Clock", + "tooltipFormat": "HH:mm ddd, MMM dd", + "useCustomFont": false + } + ], + "right": [ + { + "displayMode": "onhover", + "iconColor": "none", + "id": "Volume", + "middleClickCommand": "pwvucontrol || pavucontrol", + "textColor": "none" + }, + { + "displayMode": "onhover", + "iconColor": "none", + "id": "Microphone", + "middleClickCommand": "pwvucontrol || pavucontrol", + "textColor": "none" + }, + { + "applyToAllMonitors": false, + "displayMode": "onhover", + "iconColor": "none", + "id": "Brightness", + "textColor": "none" + }, + { + "hideWhenZero": false, + "hideWhenZeroUnread": false, + "iconColor": "none", + "id": "NotificationHistory", + "showUnreadBadge": true, + "unreadBadgeColor": "primary" + }, + { + "characterCount": 2, + "colorizeIcons": false, + "emptyColor": "secondary", + "enableScrollWheel": true, + "focusedColor": "primary", + "followFocusedScreen": false, + "fontWeight": "bold", + "groupedBorderOpacity": 1, + "hideUnoccupied": false, + "iconScale": 0.8, + "id": "Workspace", + "labelMode": "index", + "occupiedColor": "secondary", + "pillSize": 0.6, + "showApplications": false, + "showApplicationsHover": false, + "showBadge": true, + "showLabelsOnlyWhenOccupied": true, + "unfocusedIconsOpacity": 1 + }, + { + "blacklist": [], + "chevronColor": "none", + "colorizeIcons": false, + "drawerEnabled": true, + "hidePassive": false, + "id": "Tray", + "pinned": [] + }, + { + "colorizeDistroLogo": false, + "colorizeSystemIcon": "none", + "colorizeSystemText": "none", + "customIconPath": "", + "enableColorization": false, + "icon": "noctalia", + "id": "ControlCenter", + "useDistroLogo": false + } + ] + }, + "mouseWheelAction": "volume", + "reverseScroll": false, + "mouseWheelWrap": true, + "middleClickAction": "controlCenter", + "middleClickFollowMouse": false, + "middleClickCommand": "", + "rightClickAction": "launcherPanel", + "rightClickFollowMouse": true, + "rightClickCommand": "", + "screenOverrides": [] + }, + "general": { + "avatarImage": "/home/mun/Documents/4_Configuration/assets/wallpapers/xenia.jpg", + "dimmerOpacity": 0, + "showScreenCorners": false, + "forceBlackScreenCorners": false, + "scaleRatio": 0.9, + "radiusRatio": 1, + "iRadiusRatio": 1, + "boxRadiusRatio": 1, + "screenRadiusRatio": 1, + "animationSpeed": 1.5, + "animationDisabled": false, + "compactLockScreen": false, + "lockScreenAnimations": true, + "lockOnSuspend": true, + "showSessionButtonsOnLockScreen": true, + "showHibernateOnLockScreen": true, + "enableLockScreenMediaControls": false, + "enableShadows": false, + "enableBlurBehind": true, + "shadowDirection": "bottom_right", + "shadowOffsetX": 2, + "shadowOffsetY": 3, + "language": "en-GB", + "allowPanelsOnScreenWithoutBar": true, + "showChangelogOnStartup": true, + "telemetryEnabled": false, + "enableLockScreenCountdown": false, + "lockScreenCountdownDuration": 10000, + "autoStartAuth": false, + "allowPasswordWithFprintd": false, + "clockStyle": "digital", + "clockFormat": "hh\\nmm", + "passwordChars": true, + "lockScreenMonitors": [], + "lockScreenBlur": 0.9, + "lockScreenTint": 0.5, + "keybinds": { + "keyUp": [ + "Up" + ], + "keyDown": [ + "Down" + ], + "keyLeft": [ + "Left" + ], + "keyRight": [ + "Right" + ], + "keyEnter": [ + "Return", + "Enter" + ], + "keyEscape": [ + "Esc" + ], + "keyRemove": [ + "Del" + ] + }, + "reverseScroll": false, + "smoothScrollEnabled": true + }, + "ui": { + "fontDefault": "Sans Serif", + "fontFixed": "monospace", + "fontDefaultScale": 1, + "fontFixedScale": 1, + "tooltipsEnabled": true, + "scrollbarAlwaysVisible": false, + "boxBorderEnabled": false, + "panelBackgroundOpacity": 0.93, + "translucentWidgets": false, + "panelsAttachedToBar": true, + "settingsPanelMode": "attached", + "settingsPanelSideBarCardStyle": false + }, + "location": { + "name": "Prague", + "weatherEnabled": true, + "weatherShowEffects": true, + "weatherTaliaMascotAlways": false, + "useFahrenheit": false, + "use12hourFormat": false, + "showWeekNumberInCalendar": false, + "showCalendarEvents": true, + "showCalendarWeather": true, + "analogClockInCalendar": false, + "firstDayOfWeek": -1, + "hideWeatherTimezone": false, + "hideWeatherCityName": false, + "autoLocate": false + }, + "calendar": { + "cards": [ + { + "enabled": true, + "id": "calendar-header-card" + }, + { + "enabled": true, + "id": "calendar-month-card" + }, + { + "enabled": true, + "id": "weather-card" + } + ] + }, + "wallpaper": { + "enabled": true, + "overviewEnabled": true, + "directory": "/home/mun/Documents/4_Configuration/assets/wallpapers", + "monitorDirectories": [], + "enableMultiMonitorDirectories": false, + "showHiddenFiles": false, + "viewMode": "recursive", + "setWallpaperOnAllMonitors": true, + "linkLightAndDarkWallpapers": true, + "fillMode": "crop", + "fillColor": "#002c4c", + "useSolidColor": false, + "solidColor": "#1a1a2e", + "automationEnabled": false, + "wallpaperChangeMode": "random", + "randomIntervalSec": 300, + "transitionDuration": 1500, + "transitionType": [ + "fade", + "disc", + "stripes", + "wipe", + "pixelate", + "honeycomb" + ], + "skipStartupTransition": false, + "transitionEdgeSmoothness": 0.05, + "panelPosition": "follow_bar", + "hideWallpaperFilenames": true, + "useOriginalImages": false, + "overviewBlur": 0.4, + "overviewTint": 0.6, + "useWallhaven": false, + "wallhavenQuery": "", + "wallhavenSorting": "relevance", + "wallhavenOrder": "desc", + "wallhavenCategories": "111", + "wallhavenPurity": "100", + "wallhavenRatios": "", + "wallhavenApiKey": "", + "wallhavenResolutionMode": "atleast", + "wallhavenResolutionWidth": "", + "wallhavenResolutionHeight": "", + "sortOrder": "name", + "favorites": [] + }, + "appLauncher": { + "enableClipboardHistory": true, + "autoPasteClipboard": false, + "enableClipPreview": true, + "clipboardWrapText": true, + "enableClipboardSmartIcons": true, + "enableClipboardChips": true, + "clipboardWatchTextCommand": "wl-paste --type text --watch cliphist store", + "clipboardWatchImageCommand": "wl-paste --type image --watch cliphist store", + "position": "center", + "pinnedApps": [], + "sortByMostUsed": true, + "terminalCommand": "alacritty -e", + "customLaunchPrefixEnabled": false, + "customLaunchPrefix": "", + "viewMode": "list", + "showCategories": true, + "iconMode": "native", + "showIconBackground": false, + "enableSettingsSearch": true, + "enableWindowsSearch": true, + "enableSessionSearch": true, + "ignoreMouseInput": false, + "screenshotAnnotationTool": "", + "overviewLayer": false, + "density": "default" + }, + "controlCenter": { + "position": "close_to_bar_button", + "diskPath": "/", + "shortcuts": { + "left": [ + { + "id": "Network" + }, + { + "id": "Bluetooth" + }, + { + "id": "WallpaperSelector" + }, + { + "id": "NoctaliaPerformance" + } + ], + "right": [ + { + "id": "Notifications" + }, + { + "id": "PowerProfile" + }, + { + "id": "KeepAwake" + }, + { + "id": "NightLight" + } + ] + }, + "cards": [ + { + "enabled": true, + "id": "profile-card" + }, + { + "enabled": true, + "id": "shortcuts-card" + }, + { + "enabled": true, + "id": "audio-card" + }, + { + "enabled": true, + "id": "brightness-card" + }, + { + "enabled": true, + "id": "weather-card" + }, + { + "enabled": true, + "id": "media-sysmon-card" + } + ] + }, + "systemMonitor": { + "cpuWarningThreshold": 80, + "cpuCriticalThreshold": 90, + "tempWarningThreshold": 80, + "tempCriticalThreshold": 90, + "gpuWarningThreshold": 80, + "gpuCriticalThreshold": 90, + "memWarningThreshold": 80, + "memCriticalThreshold": 90, + "swapWarningThreshold": 80, + "swapCriticalThreshold": 90, + "diskWarningThreshold": 80, + "diskCriticalThreshold": 90, + "diskAvailWarningThreshold": 20, + "diskAvailCriticalThreshold": 10, + "batteryWarningThreshold": 20, + "batteryCriticalThreshold": 5, + "enableDgpuMonitoring": true, + "useCustomColors": false, + "warningColor": "#a166cc", + "criticalColor": "#fd4663", + "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" + }, + "noctaliaPerformance": { + "disableWallpaper": false, + "disableDesktopWidgets": false + }, + "dock": { + "enabled": false, + "position": "bottom", + "displayMode": "auto_hide", + "dockType": "floating", + "backgroundOpacity": 1, + "floatingRatio": 1.3, + "size": 1, + "onlySameOutput": true, + "monitors": [ + "DP-3" + ], + "pinnedApps": [], + "colorizeIcons": true, + "showLauncherIcon": false, + "launcherPosition": "end", + "launcherUseDistroLogo": false, + "launcherIcon": "", + "launcherIconColor": "none", + "pinnedStatic": false, + "inactiveIndicators": false, + "groupApps": false, + "groupContextMenuMode": "extended", + "groupClickAction": "cycle", + "groupIndicatorStyle": "dots", + "deadOpacity": 0.6, + "animationSpeed": 1, + "sitOnFrame": false, + "showDockIndicator": false, + "indicatorThickness": 3, + "indicatorColor": "primary", + "indicatorOpacity": 0.6 + }, + "network": { + "bluetoothRssiPollingEnabled": false, + "bluetoothRssiPollIntervalMs": 60000, + "networkPanelView": "ethernet", + "wifiDetailsViewMode": "grid", + "bluetoothDetailsViewMode": "grid", + "bluetoothHideUnnamedDevices": false, + "disableDiscoverability": false, + "bluetoothAutoConnect": true + }, + "sessionMenu": { + "enableCountdown": true, + "countdownDuration": 10000, + "position": "center", + "showHeader": true, + "showKeybinds": true, + "largeButtonsStyle": true, + "largeButtonsLayout": "single-row", + "powerOptions": [ + { + "action": "lock", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "1" + }, + { + "action": "suspend", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "2" + }, + { + "action": "hibernate", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "3" + }, + { + "action": "reboot", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "4" + }, + { + "action": "logout", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "5" + }, + { + "action": "shutdown", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "6" + }, + { + "action": "rebootToUefi", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "7" + }, + { + "action": "userspaceReboot", + "command": "", + "countdownEnabled": true, + "enabled": false, + "keybind": "" + } + ] + }, + "notifications": { + "enabled": true, + "enableMarkdown": true, + "density": "default", + "monitors": [ + "DP-4" + ], + "location": "top_right", + "overlayLayer": true, + "backgroundOpacity": 0.3, + "respectExpireTimeout": false, + "lowUrgencyDuration": 3, + "normalUrgencyDuration": 8, + "criticalUrgencyDuration": 15, + "clearDismissed": true, + "saveToHistory": { + "low": true, + "normal": true, + "critical": true + }, + "sounds": { + "enabled": false, + "volume": 0.5, + "separateSounds": false, + "criticalSoundFile": "", + "normalSoundFile": "", + "lowSoundFile": "", + "excludedApps": "discord,firefox,chrome,chromium,edge" + }, + "enableMediaToast": false, + "enableKeyboardLayoutToast": true, + "enableBatteryToast": true + }, + "osd": { + "enabled": true, + "location": "top_right", + "autoHideMs": 2000, + "overlayLayer": true, + "backgroundOpacity": 1, + "enabledTypes": [ + 0, + 1, + 2 + ], + "monitors": [] + }, + "audio": { + "volumeStep": 5, + "volumeOverdrive": true, + "spectrumFrameRate": 60, + "visualizerType": "linear", + "spectrumMirrored": true, + "mprisBlacklist": [], + "preferredPlayer": "spotify, firefox", + "volumeFeedback": false, + "volumeFeedbackSoundFile": "" + }, + "brightness": { + "brightnessStep": 5, + "enforceMinimum": true, + "enableDdcSupport": false, + "backlightDeviceMappings": [] + }, + "colorSchemes": { + "useWallpaperColors": true, + "predefinedScheme": "Dracula", + "darkMode": true, + "schedulingMode": "off", + "manualSunrise": "06:30", + "manualSunset": "18:30", + "generationMethod": "faithful", + "monitorForColors": "", + "syncGsettings": true + }, + "templates": { + "activeTemplates": [], + "enableUserTheming": false + }, + "nightLight": { + "enabled": false, + "forced": false, + "autoSchedule": true, + "nightTemp": "4000", + "dayTemp": "6500", + "manualSunrise": "06:30", + "manualSunset": "18:30" + }, + "hooks": { + "enabled": false, + "wallpaperChange": "", + "darkModeChange": "", + "screenLock": "", + "screenUnlock": "", + "performanceModeEnabled": "", + "performanceModeDisabled": "", + "startup": "", + "session": "", + "colorGeneration": "" + }, + "plugins": { + "autoUpdate": true, + "notifyUpdates": true + }, + "idle": { + "enabled": true, + "screenOffTimeout": 600, + "lockTimeout": 660, + "suspendTimeout": 1800, + "fadeDuration": 5, + "screenOffCommand": "", + "lockCommand": "", + "suspendCommand": "", + "resumeScreenOffCommand": "", + "resumeLockCommand": "", + "resumeSuspendCommand": "", + "customCommands": "[]" + }, + "desktopWidgets": { + "enabled": false, + "overviewEnabled": true, + "gridSnap": false, + "gridSnapScale": false, + "monitorWidgets": [] + } +} diff --git a/modules/desktop/niri.nix b/modules/desktop/niri.nix new file mode 100644 index 0000000..2aa9d38 --- /dev/null +++ b/modules/desktop/niri.nix @@ -0,0 +1,43 @@ +{ + self, + inputs, + ... +}: { + flake.nixosModules.ngeNiri = { + pkgs, + lib, + ... + }: { + programs.niri = { + enable = true; + package = self.packages.${pkgs.stdenv.hostPlatform.system}.ngeNiri; + }; + }; + + perSystem = { + pkgs, + lib, + self', + ... + }: { + packages.ngeNiri = inputs.wrapper-modules.wrappers.niri.wrap { + inherit pkgs; + settings = { + spawn-at-startup = [ + (lib.getExe self'.packages.ngeNoctalia) + ]; + + xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite; + + layout.gaps = 5; + + binds = { + "Mod+Return".spawn-sh = lib.getExe pkgs.alacritty; + "Mod+Shift+Q".close-window = {}; + "Mod+D".spawn-sh = "${lib.getExe self'.packages.ngeNoctalia} ipc call launcher toggle"; + "Mod+Shift+S".spawn-sh = "${lib.getExe pkgs.niri} msg action screenshot"; + }; + }; + }; + }; +} diff --git a/modules/desktop/noctalia.nix b/modules/desktop/noctalia.nix new file mode 100644 index 0000000..8c3b146 --- /dev/null +++ b/modules/desktop/noctalia.nix @@ -0,0 +1,15 @@ +{ + self, + inputs, + ... +}: { + perSystem = {pkgs, ...}: { + packages.ngeNoctalia = inputs.wrapper-modules.wrappers.noctalia-shell.wrap { + inherit pkgs; + + settings = builtins.fromJSON ( + builtins.readFile ./ngeNoctalia.json + ); + }; + }; +} diff --git a/modules/features/browser.nix b/modules/features/browser.nix deleted file mode 100644 index e24f252..0000000 --- a/modules/features/browser.nix +++ /dev/null @@ -1,167 +0,0 @@ -{inputs, ...}: let - extensions = { - core = [ - "ublock-origin" - "privacybadger" - "cleanurls" - "sidebery" - ]; - security = [ - "bitwarden-password-manager" - ]; - qol = [ - "dark-reader" - "stylus" - ]; - youtube = [ - "sponsorblock" - "return-youtube-dislikes" - ]; - }; - - mkExt = names: - map ( - name: "https://addons.mozilla.org/firefox/downloads/latest/${name}/latest.xpi" - ) - names; -in { - # ----------------------------- - # NIXOS MODULE - # ----------------------------- - flake.nixosModules.browser = { - lib, - pkgs, - self, - ... - }: { - home-manager.users.mun = { - programs.librewolf = { - enable = true; - package = inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.librewolf-sandboxed; - - languagePacks = ["en-GB" "cs" "sk" "de"]; - - policies = { - DisableTelemetry = true; - DisableFirefoxStudies = true; - DisablePocket = true; - DisableFeedbackCommands = true; - - DefaultDownloadDirectory = "\${home}/Downloads"; - - # ----------------------------- - # EXTENSIONS - # ----------------------------- - Extensions.Install = mkExt (extensions.core ++ extensions.security ++ extensions.youtube); - - Extensions.Uninstall = [ - "google@search.mozilla.org" - "bing@search.mozilla.org" - "ddg@search.mozilla.org" - ]; - }; - - profiles = { - # ------------------------- - # 1. DAILY PROFILE (mun) - # ------------------------- - mun = { - isDefault = true; - - search = { - force = true; - default = "duckduckbleh"; - - engines = { - "duckduckbleh" = { - urls = [ - { - template = "https://noai.duckduckgo.com/"; - params = [ - { - name = "q"; - value = "{searchTerms}"; - } - ]; - } - ]; - definedAliases = ["duck" "d"]; - }; - }; - }; - - settings = { - "signon.rememberSignons" = false; - "browser.startup.homepage" = "about:blank"; - }; - }; - - # ------------------------- - # 2. WORK PROFILE - # ------------------------- - work = { - isDefault = false; - - settings = { - # more permissive (auth sites break otherwise) - "signon.rememberSignons" = true; - "network.cookie.lifetimePolicy" = 0; - }; - }; - - # ------------------------- - # 3. SCHOOL PROFILE - # ------------------------- - school = { - isDefault = false; - - settings = { - "signon.rememberSignons" = true; - "privacy.clearOnShutdown.cookies" = false; - }; - }; - - # ------------------------- - # 4. OPSEC PROFILE (STRICT) - # ------------------------- - opsec = { - isDefault = false; - - settings = { - "signon.rememberSignons" = false; - "network.cookie.lifetimePolicy" = 2; - - "privacy.clearOnShutdown.cookies" = true; - "privacy.clearOnShutdown.history" = true; - }; - }; - }; - - # GLOBAL BASELINE (applies to all profiles) - settings = { - "privacy.trackingprotection.enabled" = true; - "network.dns.disablePrefetch" = true; - "browser.send_pings" = false; - "dom.security.https_only_mode" = true; - "privacy.resistFingerprinting" = true; - }; - }; - }; - }; - - perSystem = {pkgs, ...}: { - packages.librewolf-sandboxed = pkgs.writeShellScriptBin "librewolf" '' - exec ${pkgs.bubblewrap}/bin/bwrap \ - --unshare-all \ - --die-with-parent \ - --proc /proc \ - --dev /dev \ - --tmpfs /tmp \ - --ro-bind /nix/store /nix/store \ - --dir $HOME \ - --setenv HOME $HOME \ - --setenv MOZ_ENABLE_WAYLAND 1 \ - ${pkgs.librewolf}/bin/librewolf "$@" - ''; - }; -} diff --git a/modules/features/ngeNoctalia.json b/modules/features/ngeNoctalia.json deleted file mode 100644 index 9dfea92..0000000 --- a/modules/features/ngeNoctalia.json +++ /dev/null @@ -1,686 +0,0 @@ -{ - "settingsVersion": 59, - "bar": { - "barType": "floating", - "position": "top", - "monitors": [], - "density": "default", - "showOutline": false, - "showCapsule": true, - "capsuleOpacity": 0.14, - "capsuleColorKey": "secondary", - "widgetSpacing": 10, - "contentPadding": 0, - "fontScale": 1, - "enableExclusionZoneInset": true, - "backgroundOpacity": 0.93, - "useSeparateOpacity": true, - "marginVertical": 7, - "marginHorizontal": 9, - "frameThickness": 8, - "frameRadius": 12, - "outerCorners": true, - "hideOnOverview": false, - "displayMode": "non_exclusive", - "autoHideDelay": 500, - "autoShowDelay": 150, - "showOnWorkspaceSwitch": true, - "widgets": { - "left": [ - { - "compactMode": true, - "diskPath": "/", - "iconColor": "none", - "id": "SystemMonitor", - "showCpuCores": false, - "showCpuFreq": false, - "showCpuTemp": true, - "showCpuUsage": true, - "showDiskAvailable": false, - "showDiskUsage": false, - "showDiskUsageAsPercent": false, - "showGpuTemp": false, - "showLoadAverage": false, - "showMemoryAsPercent": false, - "showMemoryUsage": true, - "showNetworkStats": false, - "showSwapUsage": false, - "textColor": "none", - "useMonospaceFont": true, - "usePadding": false - }, - { - "defaultSettings": { - "precision": 8, - "showBarValue": true - }, - "id": "plugin:noctalia-calculator" - }, - { - "compactMode": false, - "hideMode": "hidden", - "hideWhenIdle": false, - "id": "MediaMini", - "maxWidth": 145, - "panelShowAlbumArt": true, - "scrollingMode": "hover", - "showAlbumArt": true, - "showArtistFirst": true, - "showProgressRing": true, - "showVisualizer": false, - "textColor": "none", - "useFixedWidth": false, - "visualizerType": "linear" - }, - { - "colorizeIcons": false, - "hideMode": "hidden", - "id": "ActiveWindow", - "maxWidth": 145, - "scrollingMode": "hover", - "showIcon": true, - "showText": true, - "textColor": "none", - "useFixedWidth": false - } - ], - "center": [ - { - "clockColor": "none", - "customFont": "", - "formatHorizontal": "HH:mm ddd, MMM dd", - "formatVertical": "HH mm - dd MM", - "id": "Clock", - "tooltipFormat": "HH:mm ddd, MMM dd", - "useCustomFont": false - } - ], - "right": [ - { - "displayMode": "onhover", - "iconColor": "none", - "id": "Volume", - "middleClickCommand": "pwvucontrol || pavucontrol", - "textColor": "none" - }, - { - "displayMode": "onhover", - "iconColor": "none", - "id": "Microphone", - "middleClickCommand": "pwvucontrol || pavucontrol", - "textColor": "none" - }, - { - "applyToAllMonitors": false, - "displayMode": "onhover", - "iconColor": "none", - "id": "Brightness", - "textColor": "none" - }, - { - "hideWhenZero": false, - "hideWhenZeroUnread": false, - "iconColor": "none", - "id": "NotificationHistory", - "showUnreadBadge": true, - "unreadBadgeColor": "primary" - }, - { - "characterCount": 2, - "colorizeIcons": false, - "emptyColor": "secondary", - "enableScrollWheel": true, - "focusedColor": "primary", - "followFocusedScreen": false, - "fontWeight": "bold", - "groupedBorderOpacity": 1, - "hideUnoccupied": false, - "iconScale": 0.8, - "id": "Workspace", - "labelMode": "index", - "occupiedColor": "secondary", - "pillSize": 0.6, - "showApplications": false, - "showApplicationsHover": false, - "showBadge": true, - "showLabelsOnlyWhenOccupied": true, - "unfocusedIconsOpacity": 1 - }, - { - "blacklist": [], - "chevronColor": "none", - "colorizeIcons": false, - "drawerEnabled": true, - "hidePassive": false, - "id": "Tray", - "pinned": [] - }, - { - "colorizeDistroLogo": false, - "colorizeSystemIcon": "none", - "colorizeSystemText": "none", - "customIconPath": "", - "enableColorization": false, - "icon": "noctalia", - "id": "ControlCenter", - "useDistroLogo": false - } - ] - }, - "mouseWheelAction": "volume", - "reverseScroll": false, - "mouseWheelWrap": true, - "middleClickAction": "controlCenter", - "middleClickFollowMouse": false, - "middleClickCommand": "", - "rightClickAction": "launcherPanel", - "rightClickFollowMouse": true, - "rightClickCommand": "", - "screenOverrides": [] - }, - "general": { - "avatarImage": "/home/mun/Documents/4_Configuration/assets/wallpapers/xenia.jpg", - "dimmerOpacity": 0, - "showScreenCorners": false, - "forceBlackScreenCorners": false, - "scaleRatio": 0.9, - "radiusRatio": 1, - "iRadiusRatio": 1, - "boxRadiusRatio": 1, - "screenRadiusRatio": 1, - "animationSpeed": 1.5, - "animationDisabled": false, - "compactLockScreen": false, - "lockScreenAnimations": true, - "lockOnSuspend": true, - "showSessionButtonsOnLockScreen": true, - "showHibernateOnLockScreen": true, - "enableLockScreenMediaControls": false, - "enableShadows": false, - "enableBlurBehind": true, - "shadowDirection": "bottom_right", - "shadowOffsetX": 2, - "shadowOffsetY": 3, - "language": "en-GB", - "allowPanelsOnScreenWithoutBar": true, - "showChangelogOnStartup": true, - "telemetryEnabled": false, - "enableLockScreenCountdown": false, - "lockScreenCountdownDuration": 10000, - "autoStartAuth": false, - "allowPasswordWithFprintd": false, - "clockStyle": "digital", - "clockFormat": "hh\\nmm", - "passwordChars": true, - "lockScreenMonitors": [], - "lockScreenBlur": 0.9, - "lockScreenTint": 0.5, - "keybinds": { - "keyUp": [ - "Up" - ], - "keyDown": [ - "Down" - ], - "keyLeft": [ - "Left" - ], - "keyRight": [ - "Right" - ], - "keyEnter": [ - "Return", - "Enter" - ], - "keyEscape": [ - "Esc" - ], - "keyRemove": [ - "Del" - ] - }, - "reverseScroll": false, - "smoothScrollEnabled": true - }, - "ui": { - "fontDefault": "Sans Serif", - "fontFixed": "monospace", - "fontDefaultScale": 1, - "fontFixedScale": 1, - "tooltipsEnabled": true, - "scrollbarAlwaysVisible": false, - "boxBorderEnabled": false, - "panelBackgroundOpacity": 0.93, - "translucentWidgets": false, - "panelsAttachedToBar": true, - "settingsPanelMode": "attached", - "settingsPanelSideBarCardStyle": false - }, - "location": { - "name": "Prague", - "weatherEnabled": true, - "weatherShowEffects": true, - "weatherTaliaMascotAlways": false, - "useFahrenheit": false, - "use12hourFormat": false, - "showWeekNumberInCalendar": false, - "showCalendarEvents": true, - "showCalendarWeather": true, - "analogClockInCalendar": false, - "firstDayOfWeek": -1, - "hideWeatherTimezone": false, - "hideWeatherCityName": false, - "autoLocate": false - }, - "calendar": { - "cards": [ - { - "enabled": true, - "id": "calendar-header-card" - }, - { - "enabled": true, - "id": "calendar-month-card" - }, - { - "enabled": true, - "id": "weather-card" - } - ] - }, - "wallpaper": { - "enabled": true, - "overviewEnabled": true, - "directory": "/home/mun/Documents/4_Configuration/assets/wallpapers", - "monitorDirectories": [], - "enableMultiMonitorDirectories": false, - "showHiddenFiles": false, - "viewMode": "recursive", - "setWallpaperOnAllMonitors": true, - "linkLightAndDarkWallpapers": true, - "fillMode": "crop", - "fillColor": "#002c4c", - "useSolidColor": false, - "solidColor": "#1a1a2e", - "automationEnabled": false, - "wallpaperChangeMode": "random", - "randomIntervalSec": 300, - "transitionDuration": 1500, - "transitionType": [ - "fade", - "disc", - "stripes", - "wipe", - "pixelate", - "honeycomb" - ], - "skipStartupTransition": false, - "transitionEdgeSmoothness": 0.05, - "panelPosition": "follow_bar", - "hideWallpaperFilenames": true, - "useOriginalImages": false, - "overviewBlur": 0.4, - "overviewTint": 0.6, - "useWallhaven": false, - "wallhavenQuery": "", - "wallhavenSorting": "relevance", - "wallhavenOrder": "desc", - "wallhavenCategories": "111", - "wallhavenPurity": "100", - "wallhavenRatios": "", - "wallhavenApiKey": "", - "wallhavenResolutionMode": "atleast", - "wallhavenResolutionWidth": "", - "wallhavenResolutionHeight": "", - "sortOrder": "name", - "favorites": [] - }, - "appLauncher": { - "enableClipboardHistory": true, - "autoPasteClipboard": false, - "enableClipPreview": true, - "clipboardWrapText": true, - "enableClipboardSmartIcons": true, - "enableClipboardChips": true, - "clipboardWatchTextCommand": "wl-paste --type text --watch cliphist store", - "clipboardWatchImageCommand": "wl-paste --type image --watch cliphist store", - "position": "center", - "pinnedApps": [], - "sortByMostUsed": true, - "terminalCommand": "alacritty -e", - "customLaunchPrefixEnabled": false, - "customLaunchPrefix": "", - "viewMode": "list", - "showCategories": true, - "iconMode": "native", - "showIconBackground": false, - "enableSettingsSearch": true, - "enableWindowsSearch": true, - "enableSessionSearch": true, - "ignoreMouseInput": false, - "screenshotAnnotationTool": "", - "overviewLayer": false, - "density": "default" - }, - "controlCenter": { - "position": "close_to_bar_button", - "diskPath": "/", - "shortcuts": { - "left": [ - { - "id": "Network" - }, - { - "id": "Bluetooth" - }, - { - "id": "WallpaperSelector" - }, - { - "id": "NoctaliaPerformance" - } - ], - "right": [ - { - "id": "Notifications" - }, - { - "id": "PowerProfile" - }, - { - "id": "KeepAwake" - }, - { - "id": "NightLight" - } - ] - }, - "cards": [ - { - "enabled": true, - "id": "profile-card" - }, - { - "enabled": true, - "id": "shortcuts-card" - }, - { - "enabled": true, - "id": "audio-card" - }, - { - "enabled": true, - "id": "brightness-card" - }, - { - "enabled": true, - "id": "weather-card" - }, - { - "enabled": true, - "id": "media-sysmon-card" - } - ] - }, - "systemMonitor": { - "cpuWarningThreshold": 80, - "cpuCriticalThreshold": 90, - "tempWarningThreshold": 80, - "tempCriticalThreshold": 90, - "gpuWarningThreshold": 80, - "gpuCriticalThreshold": 90, - "memWarningThreshold": 80, - "memCriticalThreshold": 90, - "swapWarningThreshold": 80, - "swapCriticalThreshold": 90, - "diskWarningThreshold": 80, - "diskCriticalThreshold": 90, - "diskAvailWarningThreshold": 20, - "diskAvailCriticalThreshold": 10, - "batteryWarningThreshold": 20, - "batteryCriticalThreshold": 5, - "enableDgpuMonitoring": true, - "useCustomColors": false, - "warningColor": "#a166cc", - "criticalColor": "#fd4663", - "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" - }, - "noctaliaPerformance": { - "disableWallpaper": false, - "disableDesktopWidgets": false - }, - "dock": { - "enabled": false, - "position": "bottom", - "displayMode": "auto_hide", - "dockType": "floating", - "backgroundOpacity": 1, - "floatingRatio": 1.3, - "size": 1, - "onlySameOutput": true, - "monitors": [ - "DP-3" - ], - "pinnedApps": [], - "colorizeIcons": true, - "showLauncherIcon": false, - "launcherPosition": "end", - "launcherUseDistroLogo": false, - "launcherIcon": "", - "launcherIconColor": "none", - "pinnedStatic": false, - "inactiveIndicators": false, - "groupApps": false, - "groupContextMenuMode": "extended", - "groupClickAction": "cycle", - "groupIndicatorStyle": "dots", - "deadOpacity": 0.6, - "animationSpeed": 1, - "sitOnFrame": false, - "showDockIndicator": false, - "indicatorThickness": 3, - "indicatorColor": "primary", - "indicatorOpacity": 0.6 - }, - "network": { - "bluetoothRssiPollingEnabled": false, - "bluetoothRssiPollIntervalMs": 60000, - "networkPanelView": "ethernet", - "wifiDetailsViewMode": "grid", - "bluetoothDetailsViewMode": "grid", - "bluetoothHideUnnamedDevices": false, - "disableDiscoverability": false, - "bluetoothAutoConnect": true - }, - "sessionMenu": { - "enableCountdown": true, - "countdownDuration": 10000, - "position": "center", - "showHeader": true, - "showKeybinds": true, - "largeButtonsStyle": true, - "largeButtonsLayout": "single-row", - "powerOptions": [ - { - "action": "lock", - "command": "", - "countdownEnabled": true, - "enabled": true, - "keybind": "1" - }, - { - "action": "suspend", - "command": "", - "countdownEnabled": true, - "enabled": true, - "keybind": "2" - }, - { - "action": "hibernate", - "command": "", - "countdownEnabled": true, - "enabled": true, - "keybind": "3" - }, - { - "action": "reboot", - "command": "", - "countdownEnabled": true, - "enabled": true, - "keybind": "4" - }, - { - "action": "logout", - "command": "", - "countdownEnabled": true, - "enabled": true, - "keybind": "5" - }, - { - "action": "shutdown", - "command": "", - "countdownEnabled": true, - "enabled": true, - "keybind": "6" - }, - { - "action": "rebootToUefi", - "command": "", - "countdownEnabled": true, - "enabled": true, - "keybind": "7" - }, - { - "action": "userspaceReboot", - "command": "", - "countdownEnabled": true, - "enabled": false, - "keybind": "" - } - ] - }, - "notifications": { - "enabled": true, - "enableMarkdown": true, - "density": "default", - "monitors": [ - "DP-4" - ], - "location": "top_right", - "overlayLayer": true, - "backgroundOpacity": 0.3, - "respectExpireTimeout": false, - "lowUrgencyDuration": 3, - "normalUrgencyDuration": 8, - "criticalUrgencyDuration": 15, - "clearDismissed": true, - "saveToHistory": { - "low": true, - "normal": true, - "critical": true - }, - "sounds": { - "enabled": false, - "volume": 0.5, - "separateSounds": false, - "criticalSoundFile": "", - "normalSoundFile": "", - "lowSoundFile": "", - "excludedApps": "discord,firefox,chrome,chromium,edge" - }, - "enableMediaToast": false, - "enableKeyboardLayoutToast": true, - "enableBatteryToast": true - }, - "osd": { - "enabled": true, - "location": "top_right", - "autoHideMs": 2000, - "overlayLayer": true, - "backgroundOpacity": 1, - "enabledTypes": [ - 0, - 1, - 2 - ], - "monitors": [] - }, - "audio": { - "volumeStep": 5, - "volumeOverdrive": true, - "spectrumFrameRate": 60, - "visualizerType": "linear", - "spectrumMirrored": true, - "mprisBlacklist": [], - "preferredPlayer": "spotify, firefox", - "volumeFeedback": false, - "volumeFeedbackSoundFile": "" - }, - "brightness": { - "brightnessStep": 5, - "enforceMinimum": true, - "enableDdcSupport": false, - "backlightDeviceMappings": [] - }, - "colorSchemes": { - "useWallpaperColors": true, - "predefinedScheme": "Dracula", - "darkMode": true, - "schedulingMode": "off", - "manualSunrise": "06:30", - "manualSunset": "18:30", - "generationMethod": "faithful", - "monitorForColors": "", - "syncGsettings": true - }, - "templates": { - "activeTemplates": [], - "enableUserTheming": false - }, - "nightLight": { - "enabled": false, - "forced": false, - "autoSchedule": true, - "nightTemp": "4000", - "dayTemp": "6500", - "manualSunrise": "06:30", - "manualSunset": "18:30" - }, - "hooks": { - "enabled": false, - "wallpaperChange": "", - "darkModeChange": "", - "screenLock": "", - "screenUnlock": "", - "performanceModeEnabled": "", - "performanceModeDisabled": "", - "startup": "", - "session": "", - "colorGeneration": "" - }, - "plugins": { - "autoUpdate": true, - "notifyUpdates": true - }, - "idle": { - "enabled": true, - "screenOffTimeout": 600, - "lockTimeout": 660, - "suspendTimeout": 1800, - "fadeDuration": 5, - "screenOffCommand": "", - "lockCommand": "", - "suspendCommand": "", - "resumeScreenOffCommand": "", - "resumeLockCommand": "", - "resumeSuspendCommand": "", - "customCommands": "[]" - }, - "desktopWidgets": { - "enabled": false, - "overviewEnabled": true, - "gridSnap": false, - "gridSnapScale": false, - "monitorWidgets": [] - } -} diff --git a/modules/features/niri.nix b/modules/features/niri.nix deleted file mode 100644 index 2aa9d38..0000000 --- a/modules/features/niri.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ - self, - inputs, - ... -}: { - flake.nixosModules.ngeNiri = { - pkgs, - lib, - ... - }: { - programs.niri = { - enable = true; - package = self.packages.${pkgs.stdenv.hostPlatform.system}.ngeNiri; - }; - }; - - perSystem = { - pkgs, - lib, - self', - ... - }: { - packages.ngeNiri = inputs.wrapper-modules.wrappers.niri.wrap { - inherit pkgs; - settings = { - spawn-at-startup = [ - (lib.getExe self'.packages.ngeNoctalia) - ]; - - xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite; - - layout.gaps = 5; - - binds = { - "Mod+Return".spawn-sh = lib.getExe pkgs.alacritty; - "Mod+Shift+Q".close-window = {}; - "Mod+D".spawn-sh = "${lib.getExe self'.packages.ngeNoctalia} ipc call launcher toggle"; - "Mod+Shift+S".spawn-sh = "${lib.getExe pkgs.niri} msg action screenshot"; - }; - }; - }; - }; -} diff --git a/modules/features/noctalia.nix b/modules/features/noctalia.nix deleted file mode 100644 index 8c3b146..0000000 --- a/modules/features/noctalia.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ - self, - inputs, - ... -}: { - perSystem = {pkgs, ...}: { - packages.ngeNoctalia = inputs.wrapper-modules.wrappers.noctalia-shell.wrap { - inherit pkgs; - - settings = builtins.fromJSON ( - builtins.readFile ./ngeNoctalia.json - ); - }; - }; -} -- cgit v1.2.3