refactor
This commit is contained in:
21
modules/desktop/x11-plasma.nix
Normal file
21
modules/desktop/x11-plasma.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
layout = "de";
|
||||
xkbVariant = "";
|
||||
};
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
|
||||
# Enable automatic login for the user.
|
||||
services.xserver.displayManager.autoLogin.enable = true;
|
||||
services.xserver.displayManager.autoLogin.user = "jonas";
|
||||
|
||||
}
|
||||
6
modules/hardware/bluetooth.nix
Normal file
6
modules/hardware/bluetooth.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
# Enable Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
}
|
||||
6
modules/hardware/printing.nix
Normal file
6
modules/hardware/printing.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
}
|
||||
20
modules/hardware/sound.nix
Normal file
20
modules/hardware/sound.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment this
|
||||
#jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
}
|
||||
6
modules/services/docker.nix
Normal file
6
modules/services/docker.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
virtualisation.docker.enable = true;
|
||||
users.users.jonas.extraGroups = [ "docker" ];
|
||||
}
|
||||
6
modules/system/console.nix
Normal file
6
modules/system/console.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
# Configure console keymap
|
||||
console.keyMap = "de";
|
||||
}
|
||||
Reference in New Issue
Block a user