From 9670461055b46fb0d0e144be580619570f0746da Mon Sep 17 00:00:00 2001 From: moons14 Date: Wed, 29 Oct 2025 18:26:57 +0900 Subject: [PATCH] install noctalia --- flake.nix | 10 +++++ modules/core/noctalia.nix | 6 +++ modules/home/noctalia.nix | 86 +++++++++++++++++++++++++++++++++++++++ profiles/gui.nix | 2 + 4 files changed, 104 insertions(+) create mode 100644 modules/core/noctalia.nix create mode 100644 modules/home/noctalia.nix diff --git a/flake.nix b/flake.nix index a2d048b..645fd04 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,16 @@ }; vicinae.url = "github:vicinaehq/vicinae"; + + quickshell = { + url = "github:outfoxxed/quickshell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + noctalia = { + url = "github:noctalia-dev/noctalia-shell"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.quickshell.follows = "quickshell"; + }; }; outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, ...}: diff --git a/modules/core/noctalia.nix b/modules/core/noctalia.nix new file mode 100644 index 0000000..48eb326 --- /dev/null +++ b/modules/core/noctalia.nix @@ -0,0 +1,6 @@ +{ pkgs, inputs, ... }: +{ + environment.systemPackages = with pkgs; [ + inputs.noctalia.packages.${system}.default + ]; +} \ No newline at end of file diff --git a/modules/home/noctalia.nix b/modules/home/noctalia.nix new file mode 100644 index 0000000..88244a4 --- /dev/null +++ b/modules/home/noctalia.nix @@ -0,0 +1,86 @@ +{ pkgs, inputs, ... }: +{ + home-manager.users.drfoobar = { + # import the home manager module + imports = [ + inputs.noctalia.homeModules.default + ]; + + # configure options + programs.noctalia-shell = { + enable = true; + colors = { + # you must set ALL of these + mError = "#dddddd"; + mOnError = "#111111"; + mOnPrimary = "#111111"; + mOnSecondary = "#111111"; + mOnSurface = "#828282"; + mOnSurfaceVariant = "#5d5d5d"; + mOnTertiary = "#111111"; + mOutline = "#3c3c3c"; + mPrimary = "#aaaaaa"; + mSecondary = "#a7a7a7"; + mShadow = "#000000"; + mSurface = "#111111"; + mSurfaceVariant = "#191919"; + mTertiary = "#cccccc"; + }; + settings = { + # configure noctalia here; defaults will + # be deep merged with these attributes. + bar = { + density = "compact"; + position = "right"; + showCapsule = false; + widgets = { + left = [ + { + id = "SidePanelToggle"; + useDistroLogo = true; + } + { + id = "WiFi"; + } + { + id = "Bluetooth"; + } + ]; + center = [ + { + hideUnoccupied = false; + id = "Workspace"; + labelMode = "none"; + } + ]; + right = [ + { + alwaysShowPercentage = false; + id = "Battery"; + warningThreshold = 30; + } + { + formatHorizontal = "HH:mm"; + formatVertical = "HH mm"; + id = "Clock"; + useMonospacedFont = true; + usePrimaryColor = true; + } + ]; + }; + }; + colorSchemes.predefinedScheme = "Monochrome"; + general = { + avatarImage = "/home/drfoobar/.face"; + radiusRatio = 0.2; + }; + location = { + monthBeforeDay = true; + name = "Marseille, France"; + }; + }; + # this may also be a string or a path to a JSON file, + # but in this case must include *all* settings. + }; + }; +} \ No newline at end of file diff --git a/profiles/gui.nix b/profiles/gui.nix index f805442..b13fa02 100644 --- a/profiles/gui.nix +++ b/profiles/gui.nix @@ -5,6 +5,7 @@ ./../modules/core/niri.nix ./../modules/core/hyprland.nix ./../modules/core/greetd.nix + ./../modules/core/noctalia.nix ]; home-manager.users.moons.imports = [ @@ -12,5 +13,6 @@ ./../modules/home/vscode.nix ./../modules/home/browser.nix ./../modules/home/vicinae.nix + ./../modules/home/noctalia.nix ]; } \ No newline at end of file