mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-19 10:04:03 +05:30
Major update to handle multiple systems
This commit is contained in:
parent
0453901d17
commit
cd1d2d866b
34 changed files with 2040 additions and 456 deletions
43
modules/system/plasma/default.nix
Normal file
43
modules/system/plasma/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ config, lib, pkgs, ...}:
|
||||
|
||||
let
|
||||
cfg = config.systemSettings.plasma;
|
||||
in {
|
||||
options = {
|
||||
systemSettings.plasma = {
|
||||
enable = lib.mkEnableOption "Enable plasma";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.xserver.enable = true;
|
||||
services.xserver = {
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
xkbOptions = "caps:escape";
|
||||
};
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
services.xserver.displayManager.sddm.wayland.enable = true;
|
||||
services.xserver.desktopManager.plasma6.enable = true;
|
||||
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
kdePackages.kate
|
||||
kdePackages.dolphin
|
||||
];
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
services.avahi.nssmdns.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue