dotfiles/lib/nixos/modules/awesome.nix

43 lines
691 B
Nix
Raw Normal View History

2024-06-15 11:17:07 +00:00
{
2024-06-15 11:52:54 +00:00
pkgs,
self,
username,
...
}:
let
inherit (pkgs) writeShellApplication;
2024-06-15 11:52:54 +00:00
script-autostart = writeShellApplication {
name = "awesome-autostart";
text = ''
set -o errexit
2024-06-15 11:52:54 +00:00
${pkgs.nitrogen}/bin/nitrogen --set-zoom-fill --random "''${HOME}/Pictures/Wallpaper"
'';
};
2024-06-15 11:52:54 +00:00
in
{
environment.systemPackages = with pkgs; [
script-autostart
nitrogen
];
2024-06-15 11:17:07 +00:00
2024-07-14 08:14:15 +00:00
services.xserver = {
displayManager.lightdm.enable = true;
windowManager.awesome = {
enable = true;
noArgb = true;
};
2024-06-15 11:17:07 +00:00
};
2024-06-15 11:52:54 +00:00
home-manager.users.${username} = {
xdg.configFile.awesome = {
source = "${self}/config/awesome";
recursive = true;
};
};
2024-06-15 11:17:07 +00:00
}