forked from noctalia-dev/noctalia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
82 lines (72 loc) · 2.23 KB
/
Copy pathflake.nix
File metadata and controls
82 lines (72 loc) · 2.23 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
71
72
73
74
75
76
77
78
79
80
81
82
{
description = "A sleek, customizable desktop shell crafted for Wayland.";
inputs = {
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";
};
outputs =
{ self, nixpkgs }:
let
inherit (nixpkgs.lib) genAttrs getExe warn;
systems = [
"x86_64-linux"
"aarch64-linux"
];
forEachSystem =
perSystem:
genAttrs systems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
perSystem { inherit pkgs system; }
);
in
{
overlays.default = final: prev: {
noctalia = final.callPackage ./nix/package.nix { };
};
packages = forEachSystem (
{ pkgs, ... }:
rec {
default = pkgs.callPackage ./nix/package.nix { };
# DEPRECATED: identical to `default`; kept for compat, warns on use.
cuda = warn "noctalia: the `.#cuda` package output is deprecated and now identical to `.#default` (autoAddDriverRunpath is always applied); switch to `.#default`. This alias will be removed in the future." default;
}
);
devShells = forEachSystem (
{ pkgs, system }:
{
default = pkgs.callPackage ./nix/devshell.nix {
noctalia = self.packages.${system}.default;
};
}
);
apps = forEachSystem (
{ system, ... }:
{
default = {
type = "app";
program = getExe self.packages.${system}.default;
};
}
);
homeModules.default =
{ pkgs, lib, ... }:
{
imports = [ ./nix/home-module.nix ];
programs.noctalia.package = lib.mkDefault self.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
hjemModules.default =
{ pkgs, lib, ... }:
{
imports = [ ./nix/hjem-module.nix ];
programs.noctalia.package = lib.mkDefault self.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
nixosModules.default =
{ pkgs, lib, ... }:
{
imports = [ ./nix/nixos-module.nix ];
programs.noctalia.package = lib.mkDefault self.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
};
}