nixcfg/modules/desktop.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2024-02-29 17:06:55 -05:00
{ config, pkgs, ... }:
{
## Enable the X11 windowing system.
2024-02-29 17:06:55 -05:00
services.xserver = {
enable = true;
2024-03-02 13:09:35 -05:00
xkb.layout = "us";
xkb.variant = "";
2024-03-24 19:44:09 -04:00
excludePackages = with pkgs; [ xterm ];
2024-02-29 17:06:55 -05:00
};
## Needed for Flatpaks
xdg.portal.enable = true;
services.flatpak.enable = true;
2024-03-05 18:47:01 -05:00
environment.systemPackages = with pkgs; [
firefox
fractal
github-desktop
gnome.gnome-software
2024-03-05 18:47:01 -05:00
google-chrome
obsidian
2024-03-22 11:17:01 -04:00
tauon
vscode
webcord
zoom-us
2024-03-05 18:47:01 -05:00
];
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "Hack" "DroidSansMono" "Noto" ]; })
fira-code
fira-code-symbols
liberation_ttf
];
fonts.fontDir.enable = true;
2024-03-24 19:44:09 -04:00
system.fsPackages = [ pkgs.bindfs ];
fileSystems = let
mkRoSymBind = path: {
device = path;
fsType = "fuse.bindfs";
options = [ "ro" "resolve-symlinks" "x-gvfs-hide" ];
};
aggregatedFonts = pkgs.buildEnv {
name = "system-fonts";
paths = config.fonts.packages;
pathsToLink = [ "/share/fonts" ];
};
in {
# Create an FHS mount to support flatpak host icons/fonts
"/usr/share/icons" = mkRoSymBind (config.system.path + "/share/icons");
"/usr/share/fonts" = mkRoSymBind (aggregatedFonts + "/share/fonts");
};
2024-02-29 17:06:55 -05:00
}