Split into more modules

This commit is contained in:
Paul-Henri Froidmont 2023-03-23 19:01:42 +01:00
parent b6760195ce
commit 70f3e0a538
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
15 changed files with 219 additions and 124 deletions

View file

@ -0,0 +1,60 @@
{ 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 {
modules.desktop.polybar.enable = true;
services.xserver = {
enable = true;
layout = "fr";
desktopManager.xterm.enable = false;
windowManager.xmonad.enable = true;
displayManager.lightdm = {
enable = true;
background = ../wallpaper.png;
greeters.mini = {
enable = true;
user = config.user.name;
extraConfig = ''
text-color = "#fbf1c7"
password-background-color = "#3c3836"
window-color = "#282828"
border-color = "#458588"
'';
};
};
};
home-manager.users.${config.user.name} = {
xsession = {
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ./xmonad.hs;
};
};
home = {
file.".xmonad/scripts" = {
source = ./scripts;
recursive = true;
};
packages = with pkgs.unstable; [
i3lock
feh
scrot
];
};
};
};
}