-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
86 lines (81 loc) · 1.91 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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.11";
widevine = {
url = "github:ExpidusOS/nixpkgs?ref=feat/widevine-again";
};
umu = {
url = "github:Open-Wine-Components/umu-launcher/?dir=packaging\/nix&submodules=1/1.1.4";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-x13s = {
url = "github:BrainWart/x13s-nixos";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
umu,
nixos-x13s,
widevine,
}: let
system = "aarch64-linux";
overlay-widevine = final: prev: {
widevine-overlay = import widevine {
inherit system;
config.allowUnfree = true;
};
};
in {
nixosConfigurations = {
pluto = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./pluto.nix
];
specialArgs = {
inherit umu;
};
};
juno = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./juno.nix
];
specialArgs = {
};
};
charon = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
nixos-x13s.nixosModules.default
({
config,
pkgs,
...
}: {nixpkgs.overlays = [overlay-widevine];})
./charon.nix
];
specialArgs = {
inherit widevine;
};
};
};
devShell.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.pkgs.mkShell {
buildInputs = with nixpkgs.legacyPackages.x86_64-linux.pkgs; [
gitMinimal
nil
alejandra
];
};
devShell.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.pkgs.mkShell {
buildInputs = with nixpkgs.legacyPackages.aarch64-linux.pkgs; [
gitMinimal
nil
alejandra
];
};
};
}