adding a flake.nix file to build this shell with nix

This commit is contained in:
notwinder 2025-08-25 04:32:34 +03:30
parent a110a0d636
commit 48d22b85d0
No known key found for this signature in database
GPG key ID: B7747DE9EEAAE164
3 changed files with 195 additions and 0 deletions

35
flake.nix Normal file
View file

@ -0,0 +1,35 @@
{
description = "Desktop shell for Caelestia dots";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
systems,
...
} @ inputs: let
eachSystem = nixpkgs.lib.genAttrs (import systems);
in {
formatter = eachSystem (pkgs: pkgs.alejandra);
packages = eachSystem (system: rec {
noctalia-shell = nixpkgs.legacyPackages.${system}.callPackage ./nix {
rev = self.rev or self.dirtyRev;
quickshell = inputs.quickshell.packages.${system}.default.override {
withX11 = false;
withI3 = false;
};
};
default = noctalia-shell;
});
};
}