Move home config into modules
This commit is contained in:
parent
b08fc5a41e
commit
d5cbf61286
299 changed files with 850 additions and 698 deletions
37
modules/desktop/xmonad.nix
Normal file
37
modules/desktop/xmonad.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
|
||||
let cfg = config.modules.desktop.xmonad;
|
||||
in {
|
||||
options.modules.desktop.xmonad = {
|
||||
enable = mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "fr";
|
||||
desktopManager.xterm.enable = false;
|
||||
windowManager.xmonad.enable = true;
|
||||
displayManager.lightdm = {
|
||||
enable = true;
|
||||
background = "/etc/nixos/configs/files/wallpaper.png";
|
||||
greeters.mini.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.${config.user.name} = {
|
||||
xsession = {
|
||||
windowManager.xmonad = {
|
||||
enable = true;
|
||||
enableContribAndExtras = true;
|
||||
config = ./files/xmonad.hs;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue