-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
77 lines (74 loc) · 1.93 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
{
description = "nixos templatevm configurations";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
...
}: let
lib = nixpkgs.lib;
system = "x86_64-linux";
qubesPackages = final: prev: {
qubes-core-qubesdb = prev.callPackage ./pkgs/qubes-core-qubesdb {};
qubes-core-vchan-xen = prev.callPackage ./pkgs/qubes-core-vchan-xen {};
qubes-core-qrexec = prev.callPackage ./pkgs/qubes-core-qrexec {};
qubes-core-agent-linux = prev.callPackage ./pkgs/qubes-core-agent-linux {};
qubes-linux-utils = prev.callPackage ./pkgs/qubes-linux-utils {};
qubes-gui-common = prev.callPackage ./pkgs/qubes-gui-common {};
qubes-gui-agent-linux = prev.callPackage ./pkgs/qubes-gui-agent-linux {};
qubes-sshd = prev.callPackage ./pkgs/qubes-sshd {};
qubes-usb-proxy = prev.callPackage ./pkgs/qubes-usb-proxy {};
};
pkgs = import nixpkgs {
inherit system;
overlays = [
qubesPackages
];
};
in {
overlays.default = qubesPackages;
nixosModules.default = {
config,
lib,
pkgs,
...
}: {
imports = [
./modules/qubes/core.nix
./modules/qubes/db.nix
./modules/qubes/gui.nix
./modules/qubes/networking.nix
./modules/qubes/qrexec.nix
./modules/qubes/sshd.nix
./modules/qubes/updates.nix
./modules/qubes/usb.nix
];
};
nixosProfiles.default = {
config,
lib,
pkgs,
...
}: {
imports = [
./profiles/qubes.nix
];
};
rpm = pkgs.callPackage ./tools/rpm.nix {
inherit nixpkgs;
qubesVersion = "4.2.0";
nixosConfig =
lib.nixosSystem
{
inherit pkgs system;
modules = [
self.nixosModules.default
self.nixosProfiles.default
./examples/configuration.nix
];
};
};
};
}