summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2025-07-04 13:01:14 -0400
committerKleidi Bujari <mail@4kb.net>2025-07-04 13:01:14 -0400
commit11a36194345b23839dc3ee1136bdc74a2b43cdbe (patch)
tree85377a476194d1d7e85c7851d1dc9893fe48367f /modules
parent0f55378c91ad7f8ff959d168bb072be368dd3af2 (diff)
downloaddepot-11a36194345b23839dc3ee1136bdc74a2b43cdbe.tar.gz
depot-11a36194345b23839dc3ee1136bdc74a2b43cdbe.tar.bz2
depot-11a36194345b23839dc3ee1136bdc74a2b43cdbe.zip
enable docs and fix large closure builds
Diffstat (limited to 'modules')
-rw-r--r--modules/desktop.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/desktop.nix b/modules/desktop.nix
index 3e0485e..f8e7f95 100644
--- a/modules/desktop.nix
+++ b/modules/desktop.nix
@@ -5,6 +5,7 @@ let
in
{
environment.systemPackages = with pkgs; [
+ audacious
foot
fuzzel
imv
@@ -21,8 +22,17 @@ in
xorg.xeyes
xwayland-satellite
zathura
+
+ ((emacsPackagesFor emacs-pgtk).emacsWithPackages (
+ epkgs: [ epkgs.mu4e ]
+ ))
];
+ documentation = {
+ doc.enable = true;
+ info.enable = true;
+ };
+
security.rtkit.enable = true;
services.pipewire = {
enable = true;
@@ -30,6 +40,16 @@ in
alsa.enable = true;
};
+ # Build nix derivations on disk rather than in /tmp which is mounted
+ # in RAM, otherwise large closures fail to build due to lack of
+ # space. Since desktops are used as dev machines, this option lives
+ # here rather than on a more general module.
+ systemd.services.nix-daemon.environment.TMPDIR = "/nix/tmp";
+
+ # Make sure the directory for evaluating large closures exists for
+ # the nix daemon.
+ systemd.tmpfiles.rules = [ "d /nix/tmp 755 root root - -" ];
+
systemd.user.services =
let
afterGraphical = ExecStart: {
@@ -47,6 +67,7 @@ in
mako = afterGraphical "${pkgs.mako}/bin/mako";
waybar = afterGraphical "${pkgs.waybar}/bin/waybar";
udiskie = afterGraphical "${pkgs.udiskie}/bin/udiskie";
+ xwayland = afterGraphical "${pkgs.xwayland-satellite}/bin/xwayland-satellite";
};
qt = {