-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
83 lines (81 loc) · 2.56 KB
/
flake.nix
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
83
{
description = "Clansty's Nix configurations and packages";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
nur.url = "github:nix-community/NUR";
xremap-flake.url = "github:xremap/nix-flake";
darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
deploy-rs.url = "github:serokell/deploy-rs";
hercules-ci = {
url = "github:hercules-ci/nixflk";
inputs.nixos.follows = "nixpkgs";
};
wsl.url = "github:nix-community/NixOS-WSL";
sddm-sugar-candy-nix = {
url = "gitlab:Zhaith-Izaliel/sddm-sugar-candy-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
blurgyy.url = "github:blurgyy/flames";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
workspace-config = {
url = "github:clansty/Clansty/365b368";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs:
let
configurations = import ./configurations inputs;
dirContents = builtins.readDir ./packages;
pkgNames = builtins.attrNames dirContents;
in
inputs.flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ]
(system:
let
pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
config.allowUnsupportedSystem = true;
config.allowBroken = true;
};
genPackage = name: {
inherit name;
value = pkgs.callPackage (./packages + "/${name}") { };
};
in
{
packages = builtins.listToAttrs (map genPackage pkgNames);
}) //
{
overlays.clansty = final: prev:
let
genPackage = name: {
inherit name;
value = final.callPackage (./packages + "/${name}") { };
};
in
builtins.listToAttrs (map genPackage pkgNames);
nixosConfigurations = configurations.nixos;
homeConfigurations = configurations.home;
deploy = import ./configurations/servers.nix inputs;
};
}