205a1ccc8f
- Add prepare-commit-msg git hook that generates conventional commit messages - Modularize fish configuration with separate conf.d files - Convert configuration files from .text to .source format for structured data - Add sops-nix SOPS configuration with explicit secret definitions - Upgrade age identity to single key file management approach - Add system activation script for age key management - Generate .sops.yaml for SOPS creation rules - Restructure README.md with improved table and cleaner formatting - Refactor config files to use pkgs.formats.json/toml generators - Implement YAML format for ashell and walker service configurations - Update SSH config source to use sops secrets - Convert zed and other config files to use structured .source format
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
# Patch termfilechooser .portal to add Niri to UseIn
|
|
termfilechooser-niri = pkgs.xdg-desktop-portal-termfilechooser.overrideAttrs (old: {
|
|
postFixup =
|
|
(old.postFixup or "")
|
|
+ ''
|
|
substituteInPlace $out/share/xdg-desktop-portal/portals/termfilechooser.portal \
|
|
--replace-fail "wlroots;" "wlroots;Niri;"
|
|
'';
|
|
});
|
|
in {
|
|
xdg.portal = {
|
|
enable = true;
|
|
config = {
|
|
common = {
|
|
default = ["wlr" "gtk"];
|
|
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
|
|
"org.freedesktop.impl.portal.Screenshot" = "wlr";
|
|
"org.freedesktop.impl.portal.RemoteDesktop" = "wlr";
|
|
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
|
|
"org.freedesktop.impl.portal.OpenURI" = "gtk";
|
|
# FileChooser covers both OpenFile and SaveFile use-cases
|
|
"org.freedesktop.impl.portal.FileChooser" = "termfilechooser";
|
|
};
|
|
};
|
|
extraPortals = [
|
|
pkgs.xdg-desktop-portal-gtk
|
|
pkgs.xdg-desktop-portal-wlr
|
|
termfilechooser-niri
|
|
];
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
NIX_XDG_DESKTOP_PORTAL_DIR = lib.mkForce null;
|
|
};
|
|
}
|