-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathflake.nix
More file actions
70 lines (65 loc) · 2.66 KB
/
flake.nix
File metadata and controls
70 lines (65 loc) · 2.66 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
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-2411.url = "github:NixOS/nixpkgs/nixos-24.11";
};
outputs =
inputs@{
flake-parts,
nixpkgs,
nixpkgs-2411,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
perSystem =
{ pkgs, system, ... }:
let
# Create pkgs from nixpkgs-24.11 for Plasma 5 testing
pkgs2411 = import nixpkgs-2411 { inherit system; };
# Extend pkgs with our paretosecurity overlay
pkgsOverlayed = pkgs.extend (
final: prev: {
paretosecurity = prev.paretosecurity.overrideAttrs (_: {
src = {
outPath = ./.;
rev = final.lib.substring 0 8 (builtins.hashFile "sha256" ./go.sum);
};
version = "${builtins.hashFile "sha256" "${toString ./go.sum}"}";
vendorHash = "sha256-jAcUf4VjtKB/Q2wHOVnCgcmPp5XNMqV8Ei9kpWoGO4Q=";
});
}
);
in
{
packages.default = pkgsOverlayed.paretosecurity;
checks = {
autologin = pkgsOverlayed.testers.runNixOSTest ./test/integration/autologin.nix;
cli = pkgsOverlayed.testers.runNixOSTest ./test/integration/cli.nix;
firewall = pkgsOverlayed.testers.runNixOSTest ./test/integration/firewall.nix;
help = pkgsOverlayed.testers.runNixOSTest ./test/integration/help.nix;
luks = pkgsOverlayed.testers.runNixOSTest ./test/integration/luks.nix;
pwd-manager = pkgsOverlayed.testers.runNixOSTest ./test/integration/pwd-manager.nix;
secureboot = pkgsOverlayed.testers.runNixOSTest ./test/integration/secureboot.nix;
trayicon = pkgsOverlayed.testers.runNixOSTest ./test/integration/trayicon.nix;
xfce = pkgsOverlayed.testers.runNixOSTest ./test/integration/desktop/xfce.nix;
zfs = pkgsOverlayed.testers.runNixOSTest ./test/integration/zfs.nix;
screenlock = pkgsOverlayed.testers.runNixOSTest ./test/integration/screenlock.nix;
screenlock-plasma5 =
let
# Extend pkgs2411 with our paretosecurity overlay
pkgs2411Overlayed = pkgs2411.extend (
_: _: {
inherit (pkgsOverlayed) paretosecurity;
}
);
in
pkgs2411Overlayed.testers.runNixOSTest (
import ./test/integration/screenlock-plasma5.nix {
inherit pkgsOverlayed;
}
);
};
};
};
}