-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
100 lines (90 loc) · 2.76 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
nixos-hardware = {
url = "github:NixOS/nixos-hardware/master";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
# important: no input follows.
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1";
};
outputs =
{
self,
nixpkgs,
home-manager,
...
}:
let
forAllSystems =
f: nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (s: f nixpkgs.legacyPackages.${s});
args = {
self = self // {
lib = (
pkgs:
import ./lib {
inherit self;
inherit pkgs;
}
);
};
};
packages =
p: with p.extend self.overlays.default; {
tslib = callPackage ./packages/tslib.nix { };
viber = callPackage ./packages/viber { };
segger-jlink = (callPackage ./packages/segger-jlink { }).override {
acceptLicense = true;
};
widevinecdm-aarch64 = callPackage ./packages/widevinecdm-aarch64 { };
fex = callPackage ./packages/fex { };
krun = callPackage ./packages/krun { };
dhclient = callPackage ./packages/dhclient { };
zsh-completion-sync = callPackage ./packages/zsh-completion-sync.nix { };
erae-lab = callPackage ./packages/erae-lab { };
};
in
{
homeConfigurations = {
"alexandros-liarokapis@acumino" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ./homes/alexandros-liarokapis-acumino ];
extraSpecialArgs = args // {
self = self // {
user = "alexandros-liarokapis";
};
};
};
};
nixosConfigurations = {
"veritas@framework-13-amd-7840u" = nixpkgs.lib.nixosSystem {
modules = [ ./hosts/veritas-framework-13-amd-7840u ];
specialArgs = args // {
self = self // {
user = "veritas";
};
};
};
};
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
packages = forAllSystems packages;
overlays.default = final: super: removeAttrs (packages final) [ "default" ] // { };
};
}