diff --git a/flake.lock b/flake.lock index 671c1a4..c9034a5 100644 --- a/flake.lock +++ b/flake.lock @@ -1193,6 +1193,26 @@ "type": "github" } }, + "noctalia": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1768055992, + "narHash": "sha256-vbhRHMcRrKzJ8cppwCQL1Hjk0wqDorDTAG894paemiM=", + "owner": "noctalia-dev", + "repo": "noctalia-shell", + "rev": "10bd2aa303be259fe39c7f95433bb4a12657ad72", + "type": "github" + }, + "original": { + "owner": "noctalia-dev", + "repo": "noctalia-shell", + "type": "github" + } + }, "nuschtosSearch": { "inputs": { "flake-utils": "flake-utils", @@ -1283,6 +1303,7 @@ "nixpkgs": "nixpkgs_3", "nixpkgs-unstable": "nixpkgs-unstable", "nixvim": "nixvim", + "noctalia": "noctalia", "pre-commit-hooks": "pre-commit-hooks_2", "secrets": "secrets", "thunderbird-gnome-theme": "thunderbird-gnome-theme", diff --git a/flake.nix b/flake.nix index 9964a7c..19a27ec 100644 --- a/flake.nix +++ b/flake.nix @@ -88,6 +88,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + noctalia = { + url = "github:noctalia-dev/noctalia-shell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + pre-commit-hooks = { url = "github:cachix/git-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/users/jordan/common/optional/graphical/noctalia.nix b/users/jordan/common/optional/graphical/noctalia.nix new file mode 100644 index 0000000..305c374 --- /dev/null +++ b/users/jordan/common/optional/graphical/noctalia.nix @@ -0,0 +1,172 @@ +{ + inputs, + ... +}: +{ + imports = [ + inputs.noctalia.homeModules.default + ]; + + programs.niri.settings = { + overview.workspace-shadow.enable = false; + }; + + programs.noctalia-shell = { + enable = true; + systemd.enable = true; + + settings = { + audio = { + cavaFrameRate = 60; + volumeOverdrive = true; + }; + bar = { + density = "compact"; + marginHorizontal = 0.2; + marginVertical = 0.1; + position = "bottom"; + showCapsule = false; + showOutline = false; + transparent = false; + outerCorners = false; + widgets = { + center = [ + { + id = "Tray"; + blacklist = [ ]; + colorizeIcons = false; + drawerEnabled = false; + hidePassive = false; + pinned = [ ]; + } + { + id = "Workspace"; + characterCount = 10; + colorizeIcons = false; + enableScrollWheel = false; + followFocusedScreen = false; + hideUnoccupied = false; + labelMode = "name"; + showApplications = false; + showLabelsOnlyWhenOccupied = false; + } + ]; + left = [ + { + id = "ControlCenter"; + colorizeDistroLogo = false; + colorizeSystemIcon = "none"; + customIconPath = ""; + enableColorization = false; + icon = "noctalia"; + useDistroLogo = true; + } + { id = "WallpaperSelector"; } + { + id = "Spacer"; + width = 20; + } + { + id = "SystemMonitor"; + diskPath = "/persist"; + showCpuTemp = true; + showCpuUsage = true; + showDiskUsage = true; + showGpuTemp = true; + showMemoryAsPercent = true; + showMemoryUsage = true; + showNetworkStats = true; + usePrimaryColor = false; + } + { + id = "AudioVisualizer"; + colorName = "primary"; + hideWhenIdle = false; + width = 200; + } + ]; + right = [ + { + id = "MediaMini"; + hideMode = "hidden"; + hideWhenIdle = false; + maxWidth = 145; + scrollingMode = "hover"; + showAlbumArt = false; + showArtistFirst = true; + showProgressRing = true; + showVisualizer = false; + useFixedWidth = false; + visualizerType = "linear"; + } + { + id = "Spacer"; + width = 20; + } + { + id = "Microphone"; + displayMode = "alwaysShow"; + } + { + id = "Volume"; + displayMode = "alwaysShow"; + } + { + id = "Brightness"; + displayMode = "alwaysShow"; + } + { + id = "Spacer"; + width = 20; + } + { + id = "Battery"; + displayMode = "alwaysShow"; + showNoctaliaPerformance = false; + showPowerProfiles = false; + warningThreshold = 20; + } + { + id = "NotificationHistory"; + hideWhenZero = true; + showUnreadBadge = true; + } + { + id = "Clock"; + customFont = ""; + formatHorizontal = "ddd dd.MM. HH:mm:ss"; + formatVertical = "HH mm - dd MM"; + useCustomFont = false; + usePrimaryColor = false; + } + ]; + }; + }; + colorSchemes = { + predefinedScheme = "Ayu"; + }; + general = { + animationSpeed = 1.5; + radiusRatio = 0.4; + shadowDirection = "center"; + shadowOffsetX = 0; + shadowOffsetY = 0; + showSessionButtonsOnLockScreen = false; + }; + location = { + firstDayOfWeek = 0; + name = "Manchester, UK"; + }; + systemMonitor = { + enableNvidiaGpu = true; + }; + ui = { + fontDefault = "Adwaita Sans"; + fontFixed = "Adwaita Mono"; + panelBackgroundOpacity = 1; + }; + notifications.enabled = true; + dock.enabled = false; + }; + }; +} diff --git a/users/jordan/odyssey.nix b/users/jordan/odyssey.nix index 7477218..932fbaf 100644 --- a/users/jordan/odyssey.nix +++ b/users/jordan/odyssey.nix @@ -10,6 +10,7 @@ ./common/optional/graphical/libreoffice.nix ./common/optional/graphical/mimeapps.nix ./common/optional/graphical/niri.nix + ./common/optional/graphical/noctalia.nix ./common/optional/graphical/thunderbird.nix ];