1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add plasma module and options

This commit is contained in:
Stefan Ellmauthaler 2023-03-24 15:22:37 +01:00
parent 34a025d25f
commit 66487cff8a
Signed by: ellmau
GPG Key ID: C804A9C1B7AF8256
2 changed files with 35 additions and 30 deletions

View File

@ -1,15 +1,6 @@
{ { config, pkgs, inputs, nixos-hardware, ... }: {
config, imports =
pkgs, [ ../../common/users.nix ./hardware-configuration.nix ./software.nix ];
inputs,
nixos-hardware,
...
}: {
imports = [
../../common/users.nix
./hardware-configuration.nix
./software.nix
];
elss = { elss = {
# base system # base system
@ -25,6 +16,7 @@
enable = true; enable = true;
sway.enable = true; sway.enable = true;
i3.enable = false; i3.enable = false;
plasma.enable = false;
# set dpi if used in mobile applications # set dpi if used in mobile applications
# dpi = 180; # dpi = 180;
}; };
@ -36,13 +28,10 @@
openvpn.enable = true; openvpn.enable = true;
# nm-networks # nm-networks
networking.nmConnections = [ networking.nmConnections = [ ];
];
# enable sops # enable sops
sops = { sops = { enable = true; };
enable = true;
};
# enable wireguard # enable wireguard
wireguard.enable = true; wireguard.enable = true;
@ -53,22 +42,14 @@
admins = [ "ellmau" ]; admins = [ "ellmau" ];
users = [ ]; users = [ ];
meta = { meta = { ellmau.git = { signDefault = true; }; };
ellmau.git = {
signDefault = true;
};
};
}; };
}; };
boot = { boot = {
extraModulePackages = [ extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
config.boot.kernelPackages.v4l2loopback
];
kernelModules = [ kernelModules = [ "v4l2loopback" ];
"v4l2loopback"
];
plymouth.enable = true; plymouth.enable = true;
}; };

24
modules/plasma.nix Normal file
View File

@ -0,0 +1,24 @@
{
config,
pkgs,
lib,
...
}:
with lib; {
options.elss.graphical.plasma.enable = mkEnableOption "Use plasma";
config = let
cfg = config.elss.graphical.plasma;
in
mkIf cfg.enable {
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
};
environment.systemPackages = with pkgs; [
firefox
thunderbird
];
};
}