From e64e07cfd5548245b71082a9cf1fe2986a94b657 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Mon, 29 Dec 2025 02:18:06 +1000 Subject: [PATCH] added noctalia shell --- flake.nix | 12 +++++-- home/desktop/noctalia.nix | 68 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 home/desktop/noctalia.nix diff --git a/flake.nix b/flake.nix index e5aff60..939ddcc 100755 --- a/flake.nix +++ b/flake.nix @@ -74,7 +74,7 @@ flake-utils = { url = "github:numtide/flake-utils"; }; ## Flake parts - https://github.com/hercules-ci/flake-parts - flake-parts = { url = "github:hercules-ci/flake-parts"; }; + flake-parts = { url =https://docs.noctalia.dev/getting-started/nixos/ "github:hercules-ci/flake-parts"; }; ## Secrets management - https://github.com/Mic92/sops-nix sops-nix = { url = "github:Mic92/sops-nix"; }; @@ -100,6 +100,11 @@ ## Easy themeing - https://github.com/Misterio77/nix-colors nix-colors = { url = "github:misterio77/nix-colors"; }; + noctalia = { # cool desktop shell - https://docs.noctalia.dev/getting-started/nixos/ + url = "github:noctalia-dev/noctalia-shell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + ## Niri window manager - ## https://github.com/YaLTeR/niri ## https://github.com/sodiboo/niri-flake/ @@ -130,7 +135,7 @@ }; - outputs = { self, nixpkgs, sops-nix, home-manager, musnix, niri, ... } + outputs = { self, nixpkgs, sops-nix, home-manager, musnix, niri, noctalia, ... } @inputs: let @@ -158,7 +163,7 @@ hades = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs outputs; - inherit niri; + inherit niri noctalia; inherit label version; inherit flakePath disksPath; inherit primaryUser userDesc homeDir; @@ -166,6 +171,7 @@ }; modules = [ ./core/hosts/hades + ./home/desktop/noctalia.nix sops-nix.nixosModules.sops musnix.nixosModules.musnix home-manager.nixosModules.home-manager diff --git a/home/desktop/noctalia.nix b/home/desktop/noctalia.nix new file mode 100644 index 0000000..6cb08cf --- /dev/null +++ b/home/desktop/noctalia.nix @@ -0,0 +1,68 @@ +{ pkgs, inputs, ... }: +{ + home-manager.users.drfoobar = { + # import the home manager module + imports = [ + inputs.noctalia.homeModules.default + ]; + + # configure options + programs.noctalia-shell = { + enable = true; + settings = { + # configure noctalia here + bar = { + density = "compact"; + position = "right"; + showCapsule = false; + widgets = { + left = [ + { + id = "ControlCenter"; + 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. + }; + }; +}