mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 01:56:13 +01:00
Remove shh
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
9c4af92771
commit
167dfbac3e
|
@ -4,7 +4,6 @@
|
|||
./alacritty
|
||||
./bash
|
||||
./ssh
|
||||
./shh
|
||||
./emacs
|
||||
# ./pulseaudio
|
||||
./xmonad
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{-# LANGUAGE TemplateHaskell #-}
|
||||
module Shell where
|
||||
import Shh
|
||||
$(loadEnv SearchPath)
|
||||
|
||||
e :: Cmd
|
||||
e = emacsclient
|
|
@ -1,19 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.magic_rb.programs.shh;
|
||||
in
|
||||
{
|
||||
options.magic_rb.programs.shh = {
|
||||
enable = mkEnableOption "Enable shh, the Haskell shell.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.file.".shh/Shell.hs".source = ./Shell.hs;
|
||||
home.file.".shh/init.ghci".source = ./init.ghci;
|
||||
|
||||
home.packages = [
|
||||
pkgs.magic_rb.shh
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
:seti -XNoOverloadedLists
|
||||
import Shh
|
||||
import Shh.Prompt
|
||||
:set prompt-function formatPrompt "%u@\ESC[37m%h\ESC[m:\ESC[32m%w\ESC[31m$\ESC[m "
|
||||
:set prompt-cont "| "
|
|
@ -1,13 +0,0 @@
|
|||
final: prev:
|
||||
let
|
||||
ghc = prev.haskellPackages.ghcWithPackages (p: with p; [shh shh-extras word8]);
|
||||
in
|
||||
{
|
||||
magic_rb = prev.magic_rb or {} // {
|
||||
shh = prev.writeShellScriptBin "shh" ''
|
||||
export PATH=${ghc}/bin:${prev.haskellPackages.shh}/bin:$PATH
|
||||
|
||||
exec shh $@
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -27,7 +27,6 @@ inputs: {
|
|||
enable = true;
|
||||
enableDirenv = true;
|
||||
};
|
||||
shh.enable = true;
|
||||
ssh.enable = true;
|
||||
emacs.enable = true;
|
||||
xmonad.enable = true;
|
||||
|
|
Loading…
Reference in a new issue