90 lines
1.8 KiB
Nix
90 lines
1.8 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.xyno.presets.cli;
|
|
in
|
|
{
|
|
options.xyno.presets.cli.enable =
|
|
lib.mkEnableOption "enables xynos cli config with fish and helix and stuff";
|
|
config = lib.mkIf cfg.enable {
|
|
xyno.cli.fish.enable = true;
|
|
xyno.cli.starship.enable = true;
|
|
security.sudo.enable = false;
|
|
|
|
nix.settings = {
|
|
trusted-users = lib.mkDefault [
|
|
"root"
|
|
"@wheel"
|
|
];
|
|
allowed-users = lib.mkDefault [
|
|
"root"
|
|
"@wheel"
|
|
];
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
nix.extraOptions = "experimental-features = nix-command flakes";
|
|
programs.nh.enable = true;
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
enableFishIntegration = true;
|
|
};
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/361592 needed for run0
|
|
security.pam.services.systemd-run0 = { };
|
|
programs.tmux.enable = true;
|
|
|
|
programs.yazi = {
|
|
enable = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
jq
|
|
fd
|
|
bottom
|
|
htop
|
|
imagemagick
|
|
bat
|
|
ffmpeg
|
|
poppler
|
|
w3m
|
|
curl
|
|
aria2
|
|
fzf
|
|
file
|
|
git
|
|
neofetch
|
|
ripgrep
|
|
pv
|
|
yt-dlp
|
|
helix
|
|
lm_sensors
|
|
dig
|
|
(pkgs.writeShellScriptBin "sudo" "run0 $@")
|
|
];
|
|
programs.mosh.enable = true;
|
|
environment.variables.EDITOR = "hx";
|
|
environment.variables.VISUAL = "hx";
|
|
|
|
environment.shellAliases = {
|
|
l = "ls -al";
|
|
n = "yazi";
|
|
gc = "git commit -v";
|
|
gpl = "git pull";
|
|
gd = "git diff";
|
|
ga = "git add";
|
|
gp = "git push";
|
|
gpf = "git push --force-with-lease";
|
|
gs = "git status -v";
|
|
gl = "git log --graph";
|
|
p = "cd ~/proj";
|
|
ytl = ''yt-dlp -f "bv*+mergeall[vcodec=none]" --audio-multistreams'';
|
|
sudo = "run0";
|
|
};
|
|
};
|
|
}
|