plasma-manager/test/demo.nix

61 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{ home-manager-module, plasma-module }:
{ modulesPath, ... }:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
(modulesPath + "/virtualisation/qemu-vm.nix")
2024-02-26 20:36:24 +03:00
home-manager-module
];
config = {
networking.hostName = "plasma-demo";
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
autoResize = true;
};
boot = {
growPartition = true;
loader.timeout = 5;
kernelParams = [
"console=ttyS0"
"boot.shell_on_fail"
];
};
virtualisation.forwardPorts = [
{
from = "host";
host.port = 2222;
guest.port = 22;
}
];
2024-04-22 18:14:02 +03:00
services.xserver.enable = true;
services.displayManager = {
autoLogin.user = "fake";
autoLogin.enable = true;
defaultSession = "plasma";
sddm.enable = true;
};
2024-04-22 18:14:02 +03:00
services.desktopManager.plasma6.enable = true;
2024-04-22 18:14:02 +03:00
system.stateVersion = "23.11";
2024-02-26 20:36:24 +03:00
users.users.fake = {
createHome = true;
isNormalUser = true;
password = "password";
group = "users";
};
home-manager.users.fake = {
home.stateVersion = "22.05";
2024-04-22 18:14:02 +03:00
imports = [ plasma-module ];
2024-02-26 20:36:24 +03:00
};
};
}