mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-09-04 11:57:29 +02:00
aaa
This commit is contained in:
parent
393a0a3ea5
commit
43b0c0d9b1
10 changed files with 20 additions and 2229 deletions
|
|
@ -7,12 +7,12 @@ let
|
|||
# stolen: https://github.com/MultisampledNight/core/blob/678f176cb24f5dc4b5dc629cfd3e643487be01bb/system/packages/layaway/default.nix#L7-L25
|
||||
layaway = pkgs.rustPlatform.buildRustPackage rec {
|
||||
pname = "layaway";
|
||||
version = "0.2.0";
|
||||
version = "0.2.1";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
src = pkgs.fetchFromCodeberg {
|
||||
owner = "MultisampledNight";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
rev = "e3c25e8c887c61f22b7bf321d71f1d74f8ec960f";
|
||||
hash = "sha256-SzAuVFEy56svasO3+1p6ysBRrIQd0UZX++/P4ZuwWm0=";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -38,5 +38,5 @@
|
|||
};
|
||||
|
||||
# TODO: Proper switch
|
||||
users.defaultUserShell = pkgs.elvish;
|
||||
users.defaultUserShell = pkgs.nushell;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# Needed for nu_scripts background_task
|
||||
services.pueue = {
|
||||
|
|
@ -17,8 +17,7 @@
|
|||
target = ".config/nushell/shell-startup.nu";
|
||||
};
|
||||
programs.nushell = {
|
||||
enable = false;
|
||||
# package = config.users.defaultUserShell;
|
||||
enable = true;
|
||||
configFile.source = ./nu/config.nu;
|
||||
envFile.source = ./nu/env.nu;
|
||||
extraConfig = ''
|
||||
|
|
|
|||
|
|
@ -1,8 +1,17 @@
|
|||
alias gnix = cd ~/nix-configs/;
|
||||
alias grepo = cd ~/Documents/repos/;
|
||||
|
||||
alias wh = wormhole-rs;
|
||||
|
||||
alias b = broot;
|
||||
|
||||
alias gg = gitui;
|
||||
alias ga = git add;
|
||||
alias gc = git commit;
|
||||
alias gca = git commit --all;
|
||||
alias gp = git push;
|
||||
alias gl = git pull;
|
||||
alias gs = git status;
|
||||
alias clip = xclip -selection c;
|
||||
|
||||
alias cr = cargo run;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ def glog [
|
|||
}
|
||||
|
||||
# open typst IDE ish setup
|
||||
def typed [
|
||||
def typed_legacy [
|
||||
name: string
|
||||
] {
|
||||
const DEFAULT_TYPST_FILE = "#import \"@local/typst-configs:0.1.0\": generic, sf;\n#show: generic.with();"
|
||||
|
|
@ -44,7 +44,7 @@ def typed [
|
|||
} else if ($"($name).pdf" | path exists) {
|
||||
typst compile $"($name).typ"
|
||||
}
|
||||
mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"while true; do mupdf-x11 '($name).pdf' && break; done" $"bash -c 'while inotifywait -e modify \'($name).pdf\' ; do pkill -HUP mupdf; done'"
|
||||
mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"while true; do mupdf '($name).pdf' && break; done" $"bash -c 'while inotifywait -e modify \'($name).pdf\' ; do pkill -HUP mupdf; done'"
|
||||
}
|
||||
|
||||
# figure out when the next event is
|
||||
|
|
@ -93,7 +93,7 @@ def "dp ccchh" [] {
|
|||
}
|
||||
|
||||
def "dp gay" [] {
|
||||
layaway "dp3 + edp1/bottom,center + dp5/right,top"
|
||||
layaway "dp3 + edp1/bottom,center + dp5/left,top"
|
||||
# manual fix for lack of frequency in layaway, else monitor just turns off
|
||||
swaymsg "output DP-3 position 0 0 scale 1 transform normal resolution 1920x1080@60Hz"
|
||||
bars "LEN G27c-10"
|
||||
|
|
|
|||
Loading…
Reference in a new issue