alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
xdg-open: fix in mc
author
lassulus
date
3 years ago
(Sep 29, 2023, 9:01 PM CEST)
commit
30efdc17
30efdc1724ce9bbd6bd95351221464226b6295bb
parent
537014d8
537014d88d2b3b6790b0f486c41b62025242cf9c
+4
-12
1 changed file
Expand all
Collapse all
Unified
Split
nixos
2configs
xdg-open.nix
+4
-12
nixos/2configs/xdg-open.nix
View file
Reviewed
···
1
1
-
{ config, pkgs, lib, ... }: let
2
2
-
3
3
-
xdg-open-wrapper = pkgs.writeDashBin "xdg-open" ''
4
4
-
exec ${xdg-open}/bin/xdg-open "$@" >> /tmp/xdg-debug.log 2>&1
5
5
-
'';
1
1
+
{ pkgs, ... }: let
6
2
7
3
xdg-open = pkgs.writeBashBin "xdg-open" ''
8
4
set -xe
···
52
48
inode/directory)
53
49
alacritty --execute mc "$FILE" ;;
54
50
*)
51
51
+
echo $TERM >> /tmp/xdg.debug
55
52
# open dmenu and ask for program to open with
56
56
-
runner=$(print -rC1 -- ''${(ko)commands} | dmenu)
53
53
+
runner=$({ IFS=:; ls -H $PATH; } | sort | dmenu)
57
54
exec $runner "$FILE";;
58
55
esac
59
56
'';
60
57
in {
61
61
-
environment.systemPackages = [ xdg-open-wrapper ];
62
62
-
63
63
-
security.sudo.extraConfig = ''
64
64
-
cr ALL=(lass) NOPASSWD: ${xdg-open}/bin/xdg-open *
65
65
-
ff ALL=(lass) NOPASSWD: ${xdg-open}/bin/xdg-open *
66
66
-
'';
58
58
+
environment.systemPackages = [ xdg-open ];
67
59
}