* nix/hm: add home manager module * nix/hm: remove uneeded options * nix/hm: add cli option * nix/hm: allow shell use CLI when 'cli.enable' is false * nix/hm: fix systemd service * nix/hm: use config dir from xdg standard
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
{
|
|
description = "Desktop shell for Caelestia dots";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
quickshell = {
|
|
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
caelestia-cli = {
|
|
url = "github:caelestia-dots/cli";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.caelestia-shell.follows = "";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
...
|
|
} @ inputs: let
|
|
forAllSystems = fn:
|
|
nixpkgs.lib.genAttrs nixpkgs.lib.platforms.linux (
|
|
system: fn nixpkgs.legacyPackages.${system}
|
|
);
|
|
in {
|
|
formatter = forAllSystems (pkgs: pkgs.alejandra);
|
|
|
|
packages = forAllSystems (pkgs: rec {
|
|
caelestia-shell = pkgs.callPackage ./nix {
|
|
rev = self.rev or self.dirtyRev;
|
|
quickshell = inputs.quickshell.packages.${pkgs.system}.default.override {
|
|
withX11 = false;
|
|
withI3 = false;
|
|
};
|
|
caelestia-cli = inputs.caelestia-cli.packages.${pkgs.system}.default;
|
|
};
|
|
with-cli = caelestia-shell.override {withCli = true;};
|
|
default = caelestia-shell;
|
|
});
|
|
|
|
devShells = forAllSystems (pkgs: {
|
|
default = let
|
|
shell = self.packages.${pkgs.system}.caelestia-shell;
|
|
in
|
|
pkgs.mkShellNoCC {
|
|
inputsFrom = [shell];
|
|
packages = with pkgs; [material-symbols rubik nerd-fonts.caskaydia-cove];
|
|
CAELESTIA_BD_PATH = "${shell}/bin/beat_detector";
|
|
};
|
|
});
|
|
|
|
homeManagerModules.default = import ./nix/hm-module.nix self;
|
|
};
|
|
}
|