Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
70 lines (61 loc) · 2.12 KB
/
Copy pathflake.nix
File metadata and controls
70 lines (61 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
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 = "";
};
m3shapes = {
url = "github:soramanew/m3shapes/32ad9ce328bb77ed349b40a3be10ee9ea610b8ab";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
...
} @ inputs: let
inherit (nixpkgs.lib) genAttrs platforms modules lists systems;
pkgsOf = nixpkgs.legacyPackages;
systems' = lists.intersectLists platforms.linux systems.flakeExposed;
eachSystem = genAttrs systems';
in {
formatter = eachSystem (system: pkgsOf.${system}.alejandra);
packages = eachSystem (system: let
pkgs = pkgsOf.${system};
in rec {
caelestia-shell = pkgs.callPackage ./nix {
rev = self.rev or self.dirtyRev;
stdenv = pkgs.clangStdenv;
quickshell = inputs.quickshell.packages.${system}.default.override {
withX11 = false;
withI3 = false;
};
caelestia-cli = inputs.caelestia-cli.packages.${system}.default;
m3shapes = inputs.m3shapes.packages.${system}.default;
};
with-cli = caelestia-shell.override {withCli = true;};
debug = caelestia-shell.override {debug = true;};
default = caelestia-shell;
});
devShells = eachSystem (system: {
default = let
pkgs = pkgsOf.${system};
shell = self.packages.${system}.caelestia-shell;
mkShell = pkgs.mkShell.override {stdenv = shell.stdenv;};
in
mkShell {
inputsFrom = [shell shell.plugin shell.extras];
packages = with pkgs; [clazy material-symbols rubik nerd-fonts.caskaydia-cove];
CAELESTIA_XKB_RULES_PATH = "${pkgs.xkeyboard-config}/share/xkeyboard-config-2/rules/base.lst";
};
});
homeManagerModules.default = modules.importApply ./nix/hm-module.nix self;
};
}