plasma-manager/test/demo.nix
Heitor Augusto 6f1db348fc
Some checks failed
GitHub Pages Docs Generation / publish (ubuntu-latest) (push) Has been cancelled
Add treefmt for formatting and format everything (#370)
2024-09-22 12:57:32 -03:00

61 lines
1.2 KiB
Nix

{ home-manager-module, plasma-module }:
{ modulesPath, ... }:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
(modulesPath + "/virtualisation/qemu-vm.nix")
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;
}
];
services.xserver.enable = true;
services.displayManager = {
autoLogin.user = "fake";
autoLogin.enable = true;
defaultSession = "plasma";
sddm.enable = true;
};
services.desktopManager.plasma6.enable = true;
system.stateVersion = "23.11";
users.users.fake = {
createHome = true;
isNormalUser = true;
password = "password";
group = "users";
};
home-manager.users.fake = {
home.stateVersion = "22.05";
imports = [ plasma-module ];
};
};
}