Add some shared configs for standalone WMs

This commit is contained in:
NullBite 2024-02-07 09:08:07 +01:00
parent a3e82595df
commit 419a03ebd2
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
4 changed files with 36 additions and 0 deletions

View File

@ -23,6 +23,11 @@ let
in
{
# FIXME this is temporary just to get it working, need to make wm-common an
# option first
imports = [
./wm-common.nix
];
home.packages = with pkgs; [
kitty
dolphin

14
home/wm-common.nix Normal file
View File

@ -0,0 +1,14 @@
{ pkgs, lib, config, osConfig, options, ...}:
let
inherit (lib) mkDefault;
in
{
# Common options for standalone window managers; many of these (or
# alternatives thereof) are pulled in by desktop environments.
services = {
udiskie = {
enable = mkDefault true;
automount = mkDefault false;
};
};
}

View File

@ -2,6 +2,8 @@
{
imports = [
./desktop-common.nix
# FIXME make this into an option
./wm-common.nix
];
services.xserver.displayManager.sddm.enable = true;

15
system/wm-common.nix Normal file
View File

@ -0,0 +1,15 @@
{ pkgs, lib, config, options, ...}:
let
inherit (lib) mkDefault;
in
{
# Common options for standalone window managers; many of these (or
# alternatives thereof) are pulled in by desktop environments.
services = {
power-profiles-daemon.enable = mkDefault true;
blueman.enable = mkDefault config.hardware.bluetooth.enable;
};
programs = {
nm-applet.enable = mkDefault config.networking.networkmanager.enable;
};
}