summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/mc.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/lass/2configs/mc.nix b/lass/2configs/mc.nix
index b7d5a4ceb..fc347ba3c 100644
--- a/lass/2configs/mc.nix
+++ b/lass/2configs/mc.nix
@@ -322,13 +322,19 @@ let
in {
environment.systemPackages = [
- (pkgs.lib.overrideDerivation pkgs.mc (original : {
- postInstall = ''
- rm -f $out/etc/mc/mc.ext
- ln -s ${mcExt} $out/etc/mc/mc.ext
- cp $out/share/mc/skins/nicedark.ini $out/share/mc/skins/default.ini
- '';
- }))
+ (pkgs.concat "mc" [
+ pkgs.mc
+ (pkgs.writeDashBin "mc" ''
+ export MC_DATADIR=${pkgs.concat "mc-datadir" [
+ (pkgs.writeOut "mc-ext" {
+ "/mc.ext".link = mcExt;
+ "/sfs.ini".text = "";
+ })
+ ]}
+ export TERM=xterm-256color
+ exec ${pkgs.mc}/bin/mc -S xoria256 "$@"
+ '')
+ ])
];
}