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,
...
}: {
imports = [
../../common/users.nix
./hardware-configuration.nix
./software.nix
];
{ config, pkgs, inputs, nixos-hardware, ... }: {
imports =
[ ../../common/users.nix ./hardware-configuration.nix ./software.nix ];
elss = {
# base system
@ -25,6 +16,7 @@
enable = true;
sway.enable = true;
i3.enable = false;
plasma.enable = false;
# set dpi if used in mobile applications
# dpi = 180;
};
@ -36,13 +28,10 @@
openvpn.enable = true;
# nm-networks
networking.nmConnections = [
];
networking.nmConnections = [ ];
# enable sops
sops = {
enable = true;
};
sops = { enable = true; };
# enable wireguard
wireguard.enable = true;
@ -50,25 +39,17 @@
# user setup
users = {
enable = true;
admins = ["ellmau"];
users = [];
admins = [ "ellmau" ];
users = [ ];
meta = {
ellmau.git = {
signDefault = true;
};
};
meta = { ellmau.git = { signDefault = true; }; };
};
};
boot = {
extraModulePackages = [
config.boot.kernelPackages.v4l2loopback
];
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
kernelModules = [
"v4l2loopback"
];
kernelModules = [ "v4l2loopback" ];
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
];
};
}