From ba5e85ca67db1ca6c3e316a5c76e5d6da58bbd1c Mon Sep 17 00:00:00 2001 From: Matan Bendix Shenhav Date: Sat, 20 Sep 2025 14:02:20 +0200 Subject: [PATCH] chore(flake): format with nixfmt-rfc-style --- flake.nix | 58 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 19 deletions(-) diff --git a/flake.nix b/flake.nix index 09696b114..1e36f1541 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,5 @@ { - description = - "Noctalia shell - a Wayland desktop shell built with Quickshell"; + description = "Noctalia shell - a Wayland desktop shell built with Quickshell"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; @@ -12,13 +11,22 @@ }; }; - outputs = { self, nixpkgs, systems, quickshell, ... }: - let eachSystem = nixpkgs.lib.genAttrs (import systems); - in { - formatter = - eachSystem (system: nixpkgs.legacyPackages.${system}.alejandra); + outputs = + { + self, + nixpkgs, + systems, + quickshell, + ... + }: + let + eachSystem = nixpkgs.lib.genAttrs (import systems); + in + { + formatter = eachSystem (system: nixpkgs.legacyPackages.${system}.alejandra); - packages = eachSystem (system: + packages = eachSystem ( + system: let pkgs = nixpkgs.legacyPackages.${system}; qs = quickshell.packages.${system}.default.override { @@ -26,7 +34,8 @@ withI3 = false; }; - runtimeDeps = with pkgs; + runtimeDeps = + with pkgs; [ bash bluez @@ -42,21 +51,32 @@ networkmanager wlsunset wl-clipboard - ] ++ lib.optionals (pkgs.stdenv.hostPlatform.isx86_64) - [ gpu-screen-recorder ]; + ] + ++ lib.optionals (pkgs.stdenv.hostPlatform.isx86_64) [ gpu-screen-recorder ]; fontconfig = pkgs.makeFontsConf { - fontDirectories = [ pkgs.roboto pkgs.inter-nerdfont ]; + fontDirectories = [ + pkgs.roboto + pkgs.inter-nerdfont + ]; }; - in { + in + { default = pkgs.stdenv.mkDerivation { pname = "noctalia-shell"; version = self.rev or self.dirtyRev or "dirty"; src = ./.; - nativeBuildInputs = - [ pkgs.gcc pkgs.makeWrapper pkgs.qt6.wrapQtAppsHook ]; - buildInputs = [ qs pkgs.xkeyboard_config pkgs.qt6.qtbase ]; + nativeBuildInputs = [ + pkgs.gcc + pkgs.makeWrapper + pkgs.qt6.wrapQtAppsHook + ]; + buildInputs = [ + qs + pkgs.xkeyboard_config + pkgs.qt6.qtbase + ]; propagatedBuildInputs = runtimeDeps; installPhase = '' @@ -70,14 +90,14 @@ ''; meta = { - description = - "A sleek and minimal desktop shell thoughtfully crafted for Wayland, built with Quickshell."; + description = "A sleek and minimal desktop shell thoughtfully crafted for Wayland, built with Quickshell."; homepage = "https://github.com/noctalia-dev/noctalia-shell"; license = pkgs.lib.licenses.mit; mainProgram = "noctalia-shell"; }; }; - }); + } + ); defaultPackage = eachSystem (system: self.packages.${system}.default);