forked from colonelpanic/dotfiles
[NixOS] Move desktop stuff out of base.nix
This commit is contained in:
41
nixos/desktop.nix
Normal file
41
nixos/desktop.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user