Two changes that cannot be separated in the result: the Firefox preconfiguration is what made desktop.nix untenable, and the split is what it now lives in. Firefox replaces LibreWolf, with Betterfox as its preference base and the settings that Betterfox does not cover expressed as policies: uBlock Origin, the Catppuccin theme, no Pocket, no Sync, autoscroll, DuckDuckGo, no translation offer, no password prompts, no bookmarks toolbar, about:blank as home and new tab. Both add-ons are normal_installed and the preferences keep status "default", so none of it is locked away — undoing settings by hand was the reason to leave LibreWolf. desktop.nix carried thirteen topics over 637 lines, and the existing split followed the NixOS option namespace rather than the topic: services.pipewire here, its configPackages there; services.gvfs and services.udisks2 apart from their packages; Bluetooth likewise. Nine modules now each hold one topic with its options, packages, configs and services together. desktop.nix keeps the compositor, the /etc deployment, portals and what belongs to no topic. The refactor changes nothing about the built system, and that was checked after each of the eight steps rather than assumed. The plain store path does not serve as the criterion: moving a package to another module reorders environment.systemPackages, which changes the system-path hash and propagates into every file naming it. What was compared instead is the package set through diff-closures and every differing file with store hashes normalised away. Two steps reordered the user tmpfiles list, which is neutral only because no two rules name the same path — checked, not presumed.
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
# ABOUTME: The file manager stack: thunar, its plugins, thumbnails and mounting.
|
|
# ABOUTME: The services half used to live in modules/services.nix.
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
# Counterpart to thunar, thunar-volman, thunar-archive-plugin, tumbler and
|
|
# ffmpegthumbnailer in packages/official.txt.
|
|
programs.thunar = {
|
|
enable = true;
|
|
plugins = with pkgs; [ thunar-volman thunar-archive-plugin ];
|
|
};
|
|
services.tumbler.enable = true;
|
|
|
|
# Mounting and device discovery for thunar's side pane.
|
|
services.udisks2.enable = true;
|
|
services.gvfs.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
# ffmpegthumbnailer is what tumbler uses for video thumbnails.
|
|
gvfs
|
|
udisks2
|
|
ntfs3g
|
|
ffmpegthumbnailer
|
|
# Backend for thunar-archive-plugin above; without it its menu entries do
|
|
# nothing. The plugin looks up a .tap helper by the handler's desktop id
|
|
# inside its own store path, and it ships one for file-roller. xarchiver
|
|
# carries its .tap in its own package, where the plugin never looks.
|
|
file-roller
|
|
zip
|
|
unzip
|
|
];
|
|
}
|