-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathflake.nix
More file actions
38 lines (34 loc) · 1.19 KB
/
flake.nix
File metadata and controls
38 lines (34 loc) · 1.19 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
{
description = "Small Tailscale Tray Manager";
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
outputs = {
self,
nixpkgs,
...
}: let
# We cannot actually support all systems covered in flakeExposed
# but I *really* doubt we'll get anyone running anything other than
# Linux and Darwin, or very rarely BSD. If those people come to my
# issue tracker, I might as well try to support those platforms.
# Who the hell uses powerpc in 2026?
systems = nixpkgs.lib.systems.flakeExposed;
forEachSystem = nixpkgs.lib.attrsets.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
});
packages = forEachSystem (system: {
tailray = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.packages.${system}.tailray;
});
homeManagerModules = {
tailray = import ./nix/modules/home-manager.nix self;
default = self.homeManagerModules.tailray;
};
nixosModules = {
tailray = import ./nix/modules/nixos.nix self;
default = self.nixosModules.tailray;
};
};
}