-
Notifications
You must be signed in to change notification settings - Fork 3
Add support for Plasma6 #378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ jobs: | |
pwd-manager, | ||
firewall, | ||
screenlock, | ||
screenlock-plasma5, | ||
secureboot, | ||
luks, | ||
zfs, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
{ | ||
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, ... }: | ||
{ 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: { | ||
|
@@ -33,17 +38,32 @@ | |
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; | ||
zfs = pkgsOverlayed.testers.runNixOSTest ./test/integration/zfs.nix; | ||
pwd-manager = pkgsOverlayed.testers.runNixOSTest ./test/integration/pwd-manager.nix; | ||
screenlock = pkgsOverlayed.testers.runNixOSTest ./test/integration/screenlock.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; | ||
autologin = pkgsOverlayed.testers.runNixOSTest ./test/integration/autologin.nix; | ||
zfs = pkgsOverlayed.testers.runNixOSTest ./test/integration/zfs.nix; | ||
|
||
screenlock = pkgsOverlayed.testers.runNixOSTest ./test/integration/screenlock.nix; | ||
screenlock-plasma5 = | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sadly needs to be a separate file to get the old 24.11 nixpkgs in there. If someone can figure out how to merge this into |
||
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; | ||
} | ||
); | ||
}; | ||
}; | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Test for KDE Plasma 5 using nixpkgs-24.11 | ||
# This is separate because Plasma 5 was removed from newer nixpkgs | ||
{ pkgsOverlayed }: | ||
{ | ||
name = "Screen Lock - Plasma 5"; | ||
interactive.sshBackdoor.enable = true; | ||
|
||
nodes = { | ||
kde5 = | ||
{ ... }: | ||
{ | ||
services.paretosecurity.enable = true; | ||
services.paretosecurity.package = pkgsOverlayed.paretosecurity; | ||
|
||
# Install KDE Plasma 5 Desktop Environment | ||
services.xserver.enable = true; | ||
services.xserver.desktopManager.plasma5.enable = true; | ||
services.displayManager.sddm.enable = true; | ||
services.colord.enable = false; | ||
}; | ||
}; | ||
|
||
testScript = '' | ||
# Test KDE Plasma 5 | ||
# Test 1: Check passes with lock enabled | ||
kde5.succeed("kwriteconfig5 --file kscreenlockerrc --group Daemon --key LockOnResume true") | ||
out = kde5.succeed("paretosecurity check --only 37dee029-605b-4aab-96b9-5438e5aa44d8") | ||
assert "[OK] Password after sleep or screensaver is on" in out, f"Expected check to pass, got \n{out}" | ||
|
||
# Test 2: Check fails when lock is disabled | ||
kde5.succeed("kwriteconfig5 --file kscreenlockerrc --group Daemon --key LockOnResume false") | ||
status, out = kde5.execute("paretosecurity check --only 37dee029-605b-4aab-96b9-5438e5aa44d8") | ||
assert "[FAIL] Password after sleep or screensaver is off" in out, f"Expected check to fail, got \n{out}" | ||
''; | ||
} |
Uh oh!
There was an error while loading. Please reload this page.