38 lines
1.6 KiB
Nix
38 lines
1.6 KiB
Nix
{ inputs, lib, ... }:
|
|
{
|
|
imports = [ inputs.nixos-core.nixosModules.default ];
|
|
system.activationScripts.users = lib.mkForce "";
|
|
system.disableInstallerTools = true;
|
|
programs.less.lessopen = null;
|
|
boot.enableContainers = false;
|
|
boot.loader.grub.enable = false;
|
|
environment.defaultPackages = lib.mkDefault [ ];
|
|
documentation.info.enable = false;
|
|
system.tools.nixos-option.enable = false;
|
|
system.tools.nixos-generate-config.enable = lib.mkDefault false;
|
|
system.nixos-core.enable = true;
|
|
# system.nixos-core.components.userGroupsActivation.enable = false;
|
|
nixpkgs.overlays = [
|
|
(final: prev: {
|
|
xdg-utils = final.symlinkJoin {
|
|
name = "xdg-utils-handlr-shim-${prev.handlr-regex.version or "0"}";
|
|
paths = [
|
|
final.xdg-user-dirs
|
|
(final.writeShellScriptBin "xdg-open" ''exec ${final.handlr-regex}/bin/handlr open "$@"'')
|
|
(final.writeShellScriptBin "xdg-mime" ''exec ${final.handlr-regex}/bin/handlr mime "$@"'')
|
|
(final.writeShellScriptBin "xdg-settings" ''exec ${final.handlr-regex}/bin/handlr get "$@"'')
|
|
(final.writeShellScriptBin "xdg-email" ''exec ${final.handlr-regex}/bin/handlr open "mailto:$*"'')
|
|
|
|
(final.writeShellScriptBin "xdg-desktop-menu" "exit 0")
|
|
(final.writeShellScriptBin "xdg-desktop-icon" "exit 0")
|
|
(final.writeShellScriptBin "xdg-icon-resource" "exit 0")
|
|
(final.writeShellScriptBin "xdg-screensaver" "exit 0")
|
|
];
|
|
meta = {
|
|
description = "xdg-utils shim backed by handlr-regex (perl-free)";
|
|
mainProgram = "xdg-open";
|
|
};
|
|
};
|
|
})
|
|
];
|
|
}
|