[NixOS] Move desktop stuff out of base.nix

This commit is contained in:
2023-06-28 21:45:08 -06:00
parent a05cb56d60
commit 31494a27fb
4 changed files with 47 additions and 35 deletions

41
nixos/desktop.nix Normal file
View File

@@ -0,0 +1,41 @@
{ config, pkgs, options, inputs, ... }:
{
imports = [
./fonts.nix
];
nixpkgs.overlays = with inputs; [
xmonad.overlay
xmonad-contrib.overlay
notifications-tray-icon.overlay
] ++ taffybar.overlays;
services.autorandr.enable = true;
services.xserver = {
exportConfiguration = true;
enable = true;
layout = "us";
desktopManager = {
plasma5.enable = true;
};
windowManager = {
session = [
{
name = "xmonad";
start = ''
/usr/bin/env imalison-xmonad &
waitPID=$!
'';
}
];
};
displayManager = {
sddm = {
enable = true;
};
sessionCommands = ''
systemctl --user import-environment GDK_PIXBUF_MODULE_FILE DBUS_SESSION_BUS_ADDRESS PATH
'';
};
};
}