added stuff

This commit is contained in:
fwastring 2025-06-03 21:39:19 +02:00
parent 6bce9f0f69
commit f0f251c814
10 changed files with 72 additions and 73 deletions

View file

@ -10,6 +10,7 @@
{ {
imports = [ imports = [
# ../shared/vial.nix # ../shared/vial.nix
# ../shared/st.nix
]; ];
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
@ -26,6 +27,16 @@
users.defaultUserShell = pkgs.bash; users.defaultUserShell = pkgs.bash;
documentation.man.generateCaches = false; documentation.man.generateCaches = false;
programs.fish.enable = true; programs.fish.enable = true;
programs.slock = {
enable = true;
package = with pkgs; (slock.overrideAttrs (oldAttrs: rec {
src = builtins.fetchGit {
url = "https://github.com/fwastring/slock";
rev = "53ada91fefc22f6c9c76ef71b9741b385b6bedfb";
};
buildInputs = oldAttrs.buildInputs ++ [ xorg.libX11.dev xorg.libXft imlib2 xorg.libXinerama pkg-config xorg.libXrandr xorg.xrandr libxcrypt xorg.libXext xorg.xorgproto];
}));
};
programs.bash = { programs.bash = {
interactiveShellInit = '' interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]] if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
@ -85,19 +96,15 @@
environment.sessionVariables = { environment.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
VISUAL = "nvim";
TERM = "xterm-256color"; TERM = "xterm-256color";
}; };
time.timeZone = "Europe/Stockholm"; time.timeZone = "Europe/Stockholm";
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
(nerdfonts.override { nerd-fonts.comic-shanns-mono
fonts = [ nerd-fonts.fira-code
"Hack"
"FiraCode"
"ComicShannsMono"
];
})
]; ];
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
@ -124,12 +131,24 @@
}; };
}; };
console.keyMap = "sv-latin1"; console.keyMap = "sv-latin1";
console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
lolcat
fortune
cowsay
pkg-config
xlsfonts
xorg.fontmiscmisc
xorg.mkfontdir
xclip
vim vim
git git
openssh openssh
rofi dysk
rsync
procs
dust
(wrapHelm kubernetes-helm { (wrapHelm kubernetes-helm {
plugins = with pkgs.kubernetes-helmPlugins; [ plugins = with pkgs.kubernetes-helmPlugins; [
helm-secrets helm-secrets
@ -140,17 +159,36 @@
}) })
k3sup k3sup
nixfmt-rfc-style nixfmt-rfc-style
# LSPs
nixd nixd
unstable.neovim unstable.neovim
omnisharp-roslyn omnisharp-roslyn
nodePackages.vscode-json-languageserver nodePackages.vscode-json-languageserver
tailwindcss-language-server tailwindcss-language-server
dmenu dockerfile-language-server-nodejs
nodejs_22
bash-language-server
(st.overrideAttrs (oldAttrs: rec {
src = builtins.fetchGit {
url = "https://github.com/fwastring/st";
rev = "9b95aafa2bcb3f4f991a5fc2c7cb939ce3f550b2";
};
buildInputs = oldAttrs.buildInputs ++ [ xorg.libX11.dev xorg.libXft imlib2 xorg.libXinerama pkg-config];
}))
(dmenu.overrideAttrs (oldAttrs: rec {
src = builtins.fetchGit {
url = "https://github.com/fwastring/dmenu";
rev = "2f09f9ead8c2736dbca838393f97e5a0e4e55a2e";
};
buildInputs = oldAttrs.buildInputs ++ [ xorg.libX11.dev xorg.libXft imlib2 xorg.libXinerama pkg-config];
}))
]; ];
services = { services = {
picom.enable = true; picom.enable = true;
clipmenu.enable = true;
openssh = { openssh = {
enable = true; enable = true;
}; };
@ -173,11 +211,6 @@
enable = true; enable = true;
}; };
}; };
locate = {
enable = true;
package = pkgs.mlocate;
localuser = null;
};
blueman = { blueman = {
enable = true; enable = true;
}; };

View file

@ -59,7 +59,6 @@
bat bat
bluez bluez
bluez-tools bluez-tools
unstable.betterlockscreen
# tmux # tmux
fzf fzf
eza eza
@ -72,24 +71,18 @@
wireguard-tools wireguard-tools
acpi acpi
light light
# dmenu-rs-enable-plugins
# Dev # Dev
unstable.fluxcd
argocd argocd
gh gh
unstable.deno
unstable.hugo
unstable.logstash
ngrok ngrok
tailwindcss tailwindcss
nodejs_23
yarn yarn
plantuml plantuml
go go
templ templ
goa goa
azuredatastudio
mdbtools
prettierd prettierd
#Tools #Tools
@ -100,28 +93,7 @@
lazydocker lazydocker
kubectl kubectl
#LSP
# roslyn
# roslyn-ls
dockerfile-language-server-nodejs
docker-compose-language-service
bash-language-server
python312Packages.python-lsp-server
yaml-language-server
lua-language-server
typescript
nil
jdt-language-server
texlab
marksman
tree-sitter
vue-language-server
typescript-language-server
gopls
rust-analyzer
# UI # UI
# rofi-bluetooth
pastel pastel
imagemagick imagemagick
@ -147,7 +119,6 @@
poppler_utils poppler_utils
#Desktop #Desktop
fluent-reader
unstable.feishin unstable.feishin
libreoffice libreoffice
unstable.signal-desktop unstable.signal-desktop

View file

@ -3,12 +3,12 @@
inputs = { inputs = {
# Nixpkgs # Nixpkgs
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
fw-pkgs.url = "github:fwastring/fwpkgs/main"; fw-pkgs.url = "github:fwastring/fwpkgs/main";
# Home manager # Home manager
home-manager.url = "github:nix-community/home-manager/release-24.11"; home-manager.url = "github:nix-community/home-manager/release-25.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };

View file

@ -1,16 +1,13 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let let
dmenu = pkgs.dmenu.overrideAttrs (old: { dmenu = pkgs.dmenu.overrideAttrs (old: {
src = builtins.fetchGit { # nativeBuildInputs = with pkgs; [
url = "https://github.com/FredzyW/dmenu.git"; # xorg.libX11.dev
rev = "7ec109778998462a6762745c65c47a73283b810e"; # xorg.libXft
}; # imlib2
nativeBuildInputs = with pkgs; [ # xorg.libXinerama
xorg.libX11.dev # ];
xorg.libXft patches = [ ../config/dmenu-center.diff ];
imlib2
xorg.libXinerama
];
}); });
in in
{ {

View file

@ -8,7 +8,7 @@ let
dwm = pkgs.dwm.overrideAttrs (old: { dwm = pkgs.dwm.overrideAttrs (old: {
src = builtins.fetchGit { src = builtins.fetchGit {
url = "https://github.com/FredzyW/dwm-conf.git"; url = "https://github.com/FredzyW/dwm-conf.git";
rev = "f70f48bdb01df6bae9c63131a6c84e812141788c"; rev = "e9d94d70c3865a1289c20382df21acc3a138ed88";
}; };
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
xorg.libX11.dev xorg.libX11.dev
@ -23,7 +23,7 @@ let
url = "https://github.com/FredzyW/dwmblocks.git"; url = "https://github.com/FredzyW/dwmblocks.git";
rev = "d60ccc8c1180aa617fb1033bf1e44a2866647764"; rev = "d60ccc8c1180aa617fb1033bf1e44a2866647764";
}; };
}) });
in in
{ {
home.packages = [ home.packages = [

View file

@ -28,10 +28,6 @@
name = "done"; name = "done";
src = pkgs.fishPlugins.done.src; src = pkgs.fishPlugins.done.src;
} }
{
name = "sponge";
src = pkgs.fishPlugins.sponge.src;
}
{ {
name = "grc"; name = "grc";
src = pkgs.fishPlugins.grc.src; src = pkgs.fishPlugins.grc.src;
@ -39,6 +35,7 @@
]; ];
shellAbbrs = { shellAbbrs = {
homec = "nvim ~/nix/config/home.nix"; homec = "nvim ~/nix/config/home.nix";
cat = "bat";
n = "eza -l --no-time --no-permissions --no-user"; n = "eza -l --no-time --no-permissions --no-user";
ls = "eza -l --no-time --no-permissions --no-user"; ls = "eza -l --no-time --no-permissions --no-user";
dev = "nix develop --command fish"; dev = "nix develop --command fish";

View file

@ -105,7 +105,7 @@
"{{if gt .Code 0}}p:red{{end}}" "{{if gt .Code 0}}p:red{{end}}"
"{{if eq .Code 0}}p:green{{end}}" "{{if eq .Code 0}}p:green{{end}}"
]; ];
"template"= ""; "template"= ">";
} }
]; ];
} }
@ -118,7 +118,7 @@
"{{if gt .Code 0}}p:red{{end}}" "{{if gt .Code 0}}p:red{{end}}"
"{{if eq .Code 0}}p:green{{end}}" "{{if eq .Code 0}}p:green{{end}}"
]; ];
"template"= " "; "template"= ">";
}; };
"secondary_prompt"= { "secondary_prompt"= {
"background"= "transparent"; "background"= "transparent";
@ -126,7 +126,7 @@
"{{if gt .Code 0}}p:red{{end}}" "{{if gt .Code 0}}p:red{{end}}"
"{{if eq .Code 0}}p:green{{end}}" "{{if eq .Code 0}}p:green{{end}}"
]; ];
"template"= " "; "template"= ">";
}; };
}; };
}; };

View file

@ -4,7 +4,7 @@
(st.overrideAttrs (oldAttrs: rec { (st.overrideAttrs (oldAttrs: rec {
src = builtins.fetchGit { src = builtins.fetchGit {
url = "https://github.com/fwastring/st"; url = "https://github.com/fwastring/st";
rev = "384ca157dbedaccf5939d75a6a2ea8137df5862d"; rev = "2c6e38d2e735116e902962d03e8d7c88db8094bd";
}; };
buildInputs = oldAttrs.buildInputs ++ [ xorg.libX11.dev xorg.libXft imlib2 xorg.libXinerama pkg-config]; buildInputs = oldAttrs.buildInputs ++ [ xorg.libX11.dev xorg.libXft imlib2 xorg.libXinerama pkg-config];
})) }))

View file

@ -7,6 +7,8 @@
tmuxPlugins.sensible tmuxPlugins.sensible
tmuxPlugins.pain-control tmuxPlugins.pain-control
tmuxPlugins.sessionist tmuxPlugins.sessionist
tmuxPlugins.yank
# tmuxPlugins.copycat
{ {
plugin = tmuxPlugins.continuum; plugin = tmuxPlugins.continuum;
extraConfig = '' extraConfig = ''
@ -23,14 +25,17 @@
]; ];
prefix = "C-a"; prefix = "C-a";
terminal = "alacritty"; terminal = "st";
keyMode = "vi"; keyMode = "vi";
escapeTime = 0; escapeTime = 0;
extraConfig = '' extraConfig = ''
set -g set-clipboard on
set -g @yank_selection_mouse 'clipboard'
set -g base-index 1 set -g base-index 1
set -g status-keys 'vi'
setw -g pane-base-index 1 setw -g pane-base-index 1
set -g default-terminal "xterm-kitty" set -g default-terminal "st-256color"
set -g terminal-overrides "xterm-kitty" set -g terminal-overrides "st-256color"
# true colours support # true colours support
# set -ga terminal-overrides ",*256col*:Tc" # set -ga terminal-overrides ",*256col*:Tc"
set -ga terminal-overrides ",xterm-256color:Tc" set -ga terminal-overrides ",xterm-256color:Tc"

View file

@ -2,10 +2,6 @@
{ {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
extensions = with pkgs.vscode-extensions; [
vscodevim.vim
jebbs.plantuml
];
}; };
} }