Compare commits

...

2 commits

Author SHA1 Message Date
1e5c09b1e8 Add vlc to video-and-sound module 2025-02-18 12:01:20 +02:00
e86768299c Add compatability for zsh to gitprompt
This helps with the shell shifting the cursor around
2025-02-18 12:00:41 +02:00
3 changed files with 24 additions and 2 deletions

View file

@ -0,0 +1,21 @@
{
description = "Flake for TeXlive with python pygments";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
inputs.systems.url = "github:nix-systems/default";
inputs.flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell { packages = with pkgs; [ texliveFull python3Packages.pygments ]; };
}
);
}

View file

@ -1,4 +1,4 @@
{config, pkgs, pkgs-unstable, ...}: {
{lib, config, pkgs, pkgs-unstable, ...}: {
programs.zsh = {
enable = true;
enableCompletion = true;
@ -23,7 +23,7 @@
initExtra = ''
setopt promptsubst
export PROMPT='%F{12}[%f%F{10}%n%f%F{12}@%f%F{white}%m%f%F{12}]%f%F{white}:%f %F{white}%~%f%F{12}>%b$(${pkgs-unstable.gitprompt-rs}/bin/gitprompt-rs)%f%F{10}%(!.#.$)%f '
export PROMPT='%F{12}[%f%F{10}%n%f%F{12}@%f%F{white}%m%f%F{12}]%f%F{white}:%f %F{white}%~%f%F{12}>%b$(${lib.getExe pkgs-unstable.gitprompt-rs} zsh)%f%F{10}%(!.#.$)%f '
unsetopt beep
bindkey '^R' history-incremental-search-backward
'';

View file

@ -4,6 +4,7 @@
...
}: {
environment.systemPackages = with pkgs; [
vlc
#shotcut
];