Compare commits
4 commits
0238ad32b9
...
487b2baa85
Author | SHA1 | Date | |
---|---|---|---|
487b2baa85 | |||
1c84f86a3d | |||
f6e541acaf | |||
5ae74eeefb |
6 changed files with 220 additions and 133 deletions
75
common/home-manager/home-aliases.nix
Normal file
75
common/home-manager/home-aliases.nix
Normal file
|
@ -0,0 +1,75 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
shellAliases = {
|
||||
".." = "cd ..";
|
||||
"..." = "cd ../..";
|
||||
"...." = "cd ../../..";
|
||||
"....." = "cd ../../../..";
|
||||
|
||||
o = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||
|
||||
ncdu = "${pkgs.ncdu}/bin/ncdu --color dark";
|
||||
|
||||
config = "vim /etc/nixos/configuration/main.nix";
|
||||
hmconf = "vim /etc/nixos/common/home-manager/main.nix";
|
||||
hmhconf = "vim /etc/nixos/common/home-manager/home.nix";
|
||||
switch = "sudo nixos-rebuild switch";
|
||||
|
||||
nr = "nix run --impure";
|
||||
ns = "nix-shell";
|
||||
nsp = "nix-shell -p";
|
||||
|
||||
cdnix = "cd /etc/nixos";
|
||||
|
||||
pvim = "${pkgs.poetry}/bin/poetry run vim";
|
||||
|
||||
ga = "${pkgs.git}/bin/git add";
|
||||
gb = "${pkgs.git}/bin/git branch";
|
||||
gba = "${pkgs.git}/bin/git branch -a";
|
||||
gbd = "${pkgs.git}/bin/git branch -d";
|
||||
gc = "${pkgs.git}/bin/git commit";
|
||||
gca = "${pkgs.git}/bin/git commit --amend";
|
||||
gcan = "${pkgs.git}/bin/git commit --amend --no-edit";
|
||||
gcl = "${pkgs.git}/bin/git clone";
|
||||
gcm = "${pkgs.git}/bin/git commit -m";
|
||||
gco = "${pkgs.git}/bin/git checkout";
|
||||
gcob = "${pkgs.git}/bin/git checkout -b";
|
||||
gcom = "${pkgs.git}/bin/git remote show origin | sed -n '/HEAD branch/s/.*: //p' | xargs git checkout";
|
||||
gf = "${pkgs.git}/bin/git fetch";
|
||||
gfp = "${pkgs.git}/bin/git fetch --prune";
|
||||
gl = "${pkgs.git}/bin/git pull";
|
||||
glr = "${pkgs.git}/bin/git pull --rebase";
|
||||
gla = "${pkgs.git}/bin/git pull --autostash";
|
||||
glra = "${pkgs.git}/bin/git pull --rebase --autostash";
|
||||
gp = "${pkgs.git}/bin/git push";
|
||||
gpf = "${pkgs.git}/bin/git push --force-with-lease";
|
||||
gr = "${pkgs.git}/bin/git reset";
|
||||
grs = "${pkgs.git}/bin/git reset --soft";
|
||||
gs = "${pkgs.git}/bin/git stash";
|
||||
gsa = "${pkgs.git}/bin/git stash apply";
|
||||
gsp = "${pkgs.git}/bin/git stash pop";
|
||||
gst = "${pkgs.git}/bin/git status";
|
||||
|
||||
tigs = "${pkgs.tig}/bin/tig status";
|
||||
oath = "${pkgs.yubikey-manager}/bin/ykman oath accounts code";
|
||||
|
||||
pc = "${pkgs.podman-compose}/bin/podman-compose";
|
||||
pce = "${pkgs.podman-compose}/bin/podman-compose exec";
|
||||
pclf = "${pkgs.podman-compose}/bin/podman-compose logs --tail 100 -f";
|
||||
|
||||
pr = "${pkgs.poetry}/bin/poetry run";
|
||||
};
|
||||
|
||||
pointerCursor = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.gnome.adwaita-icon-theme;
|
||||
size = 24;
|
||||
x11 = {
|
||||
enable = true;
|
||||
defaultCursor = "Adwaita";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
126
common/home-manager/home-packages.nix
Normal file
126
common/home-manager/home-packages.nix
Normal file
|
@ -0,0 +1,126 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
# Office
|
||||
aerc
|
||||
libreoffice-fresh
|
||||
obsidian
|
||||
thunderbird
|
||||
pandoc
|
||||
texlive.combined.scheme-full
|
||||
|
||||
# Programming
|
||||
bacon
|
||||
colordiff
|
||||
podman-compose
|
||||
docker-compose
|
||||
sublime-merge
|
||||
tig
|
||||
vscode-fhs
|
||||
|
||||
cargo
|
||||
cargo-outdated
|
||||
clang
|
||||
poetry
|
||||
rust-analyzer
|
||||
rustc
|
||||
rustfmt
|
||||
|
||||
# Graphics
|
||||
gimp
|
||||
graphicsmagick
|
||||
inkscape
|
||||
imv
|
||||
|
||||
# Internet
|
||||
discord
|
||||
element-desktop
|
||||
gnome.epiphany
|
||||
httpie
|
||||
wget
|
||||
remmina
|
||||
x2goclient
|
||||
transmission-gtk
|
||||
|
||||
# Sound & Video
|
||||
cantata
|
||||
easyeffects
|
||||
pavucontrol
|
||||
spotify
|
||||
ncmpcpp
|
||||
mpdevil
|
||||
squeezelite
|
||||
mediainfo
|
||||
mpc-cli
|
||||
|
||||
# Gaming
|
||||
chiaki
|
||||
#prismlauncher
|
||||
heroic
|
||||
#factorio
|
||||
|
||||
# System Tools
|
||||
dig
|
||||
borgbackup
|
||||
dconf
|
||||
dmenu
|
||||
rofi-wayland
|
||||
grim
|
||||
light
|
||||
screen
|
||||
slurp
|
||||
smartmontools
|
||||
swaylock
|
||||
sysstat
|
||||
usbutils
|
||||
virt-manager
|
||||
wl-clipboard
|
||||
yubikey-manager
|
||||
watchexec
|
||||
wine
|
||||
xdg-utils
|
||||
xfce.thunar
|
||||
gnome.nautilus
|
||||
nnn
|
||||
|
||||
niv
|
||||
home-manager
|
||||
nix-index
|
||||
|
||||
gnome.evince
|
||||
gnome.gnome-characters
|
||||
gnome.gnome-keyring
|
||||
gnome.gnome-system-monitor
|
||||
gnome.gnome-tweaks
|
||||
pika-backup
|
||||
|
||||
dua
|
||||
fd
|
||||
file
|
||||
killall
|
||||
lsof
|
||||
ncdu
|
||||
silver-searcher
|
||||
tree
|
||||
|
||||
htop
|
||||
iotop
|
||||
powertop
|
||||
s-tui
|
||||
|
||||
libarchive
|
||||
p7zip
|
||||
unrar
|
||||
unzip
|
||||
zip
|
||||
|
||||
# Misc
|
||||
php
|
||||
python311
|
||||
python311Packages.i3ipc
|
||||
kicad-small
|
||||
];
|
||||
};
|
||||
}
|
|
@ -2,126 +2,6 @@
|
|||
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
# Office
|
||||
aerc
|
||||
libreoffice-fresh
|
||||
obsidian
|
||||
thunderbird
|
||||
pandoc
|
||||
texlive.combined.scheme-full
|
||||
|
||||
# Programming
|
||||
bacon
|
||||
colordiff
|
||||
podman-compose
|
||||
docker-compose
|
||||
sublime-merge
|
||||
tig
|
||||
vscode-fhs
|
||||
|
||||
cargo
|
||||
cargo-outdated
|
||||
clang
|
||||
poetry
|
||||
rust-analyzer
|
||||
rustc
|
||||
rustfmt
|
||||
|
||||
# Graphics
|
||||
gimp
|
||||
graphicsmagick
|
||||
inkscape
|
||||
imv
|
||||
|
||||
# Internet
|
||||
discord
|
||||
element-desktop
|
||||
gnome.epiphany
|
||||
httpie
|
||||
wget
|
||||
remmina
|
||||
x2goclient
|
||||
transmission-gtk
|
||||
|
||||
# Sound & Video
|
||||
cantata
|
||||
easyeffects
|
||||
pavucontrol
|
||||
spotify
|
||||
ncmpcpp
|
||||
mpdevil
|
||||
squeezelite
|
||||
mediainfo
|
||||
mpc-cli
|
||||
|
||||
# Gaming
|
||||
#prismlauncher
|
||||
heroic
|
||||
#factorio
|
||||
|
||||
# System Tools
|
||||
dig
|
||||
borgbackup
|
||||
dconf
|
||||
dmenu
|
||||
rofi-wayland
|
||||
grim
|
||||
light
|
||||
screen
|
||||
slurp
|
||||
smartmontools
|
||||
swaylock
|
||||
sysstat
|
||||
usbutils
|
||||
virt-manager
|
||||
wl-clipboard
|
||||
yubikey-manager
|
||||
watchexec
|
||||
wine
|
||||
xdg-utils
|
||||
xfce.thunar
|
||||
gnome.nautilus
|
||||
nnn
|
||||
|
||||
niv
|
||||
home-manager
|
||||
nix-index
|
||||
|
||||
gnome.evince
|
||||
gnome.gnome-characters
|
||||
gnome.gnome-keyring
|
||||
gnome.gnome-system-monitor
|
||||
gnome.gnome-tweaks
|
||||
pika-backup
|
||||
|
||||
dua
|
||||
fd
|
||||
file
|
||||
killall
|
||||
lsof
|
||||
ncdu
|
||||
silver-searcher
|
||||
tree
|
||||
|
||||
htop
|
||||
iotop
|
||||
powertop
|
||||
s-tui
|
||||
|
||||
libarchive
|
||||
p7zip
|
||||
unrar
|
||||
unzip
|
||||
zip
|
||||
|
||||
# Misc
|
||||
php
|
||||
python311
|
||||
python311Packages.i3ipc
|
||||
kicad
|
||||
];
|
||||
|
||||
shellAliases = {
|
||||
".." = "cd ..";
|
||||
"..." = "cd ../..";
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
home-manager.users.sijmen = {
|
||||
imports = [
|
||||
./home.nix
|
||||
./home-aliases.nix
|
||||
./home-packages.nix
|
||||
./gtk.nix
|
||||
./systemd.nix
|
||||
./programs.nix
|
||||
|
|
|
@ -207,7 +207,7 @@
|
|||
};
|
||||
|
||||
beets = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
settings = {
|
||||
paths.default = "$albumartist/$year - $album%aunique{}/$track $title";
|
||||
import.autotag = false;
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
config = let
|
||||
scintillaDellOutput = { pos = "0 0"; };
|
||||
scintillaHpOutput = { pos = "0 120"; };
|
||||
scintillaDellOutput = { pos = "228 240"; };
|
||||
scintillaHpOutput = { pos = "228 360"; };
|
||||
in rec {
|
||||
modifier = "Mod4";
|
||||
terminal = "foot";
|
||||
|
@ -34,7 +34,7 @@
|
|||
bg = "~/Pictures/berg.jpg fill";
|
||||
subpixel = "none";
|
||||
};
|
||||
"BOE 0x095F Unknown" = { pos = "92 1200"; scale = "1.3"; }; # framework
|
||||
"BOE 0x095F Unknown" = { pos = "320 1440"; scale = "1.3"; }; # framework
|
||||
"Dell Inc. DELL U2410 F525M13318GL" = scintillaDellOutput; # bibi
|
||||
"Dell Inc. DELL U2410 F525M12P08RL" = scintillaDellOutput; # fabienne
|
||||
"Hewlett Packard HP E222 CNK6110ZM2" = scintillaHpOutput; # floortje
|
||||
|
@ -48,16 +48,20 @@
|
|||
"Hewlett Packard HP E222 CNK6111051" = scintillaHpOutput; # kim
|
||||
"Hewlett Packard HP E222 CNK6111052" = scintillaHpOutput; # ilona
|
||||
"Goldstar Company Ltd LG Ultra HD 0x00008520" = { mode = "2560x1440@60Hz"; }; # thuis rechts
|
||||
"Dell Inc. DELL S2722DGM 3P84Z83" = { pos = "-228 -240"; mode = "2560x1440@144Hz"; }; # thuis links (hdmi)
|
||||
"Dell Inc. DELL S2722DGM 3P84Z83" = { pos = "0 0"; mode = "2560x1440@144Hz"; }; # thuis links (hdmi)
|
||||
};
|
||||
keybindings = lib.mkOptionDefault {
|
||||
XF86MonBrightnessDown = "exec ${pkgs.light}/bin/light -U 5";
|
||||
XF86MonBrightnessUp = "exec ${pkgs.light}/bin/light -A 5";
|
||||
"shift+XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 1";
|
||||
"shift+XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 1";
|
||||
XF86AudioRaiseVolume = "exec '${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%'";
|
||||
XF86AudioLowerVolume = "exec '${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%'";
|
||||
XF86AudioMute = "exec '${pkgs.pulseaudio}/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle'";
|
||||
XF86MonBrightnessDown = "exec ${pkgs.light}/bin/light -U 5 && ${pkgs.light}/bin/light -G | cut -d. -f1 > $SWAYSOCK.wob";
|
||||
XF86MonBrightnessUp = "exec ${pkgs.light}/bin/light -A 5 && ${pkgs.light}/bin/light -G | cut -d. -f1 > $SWAYSOCK.wob";
|
||||
"shift+XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 1 && ${pkgs.light}/bin/light -G | cut -d. -f1 > $SWAYSOCK.wob";
|
||||
"shift+XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 1 && ${pkgs.light}/bin/light -G | cut -d. -f1 > $SWAYSOCK.wob";
|
||||
|
||||
XF86AudioRaiseVolume = "exec ${pkgs.pamixer}/bin/pamixer -ui 5 && ${pkgs.pamixer}/bin/pamixer --get-volume > $SWAYSOCK.wob";
|
||||
XF86AudioLowerVolume = "exec ${pkgs.pamixer}/bin/pamixer -ud 5 && ${pkgs.pamixer}/bin/pamixer --get-volume > $SWAYSOCK.wob";
|
||||
"shift+XF86AudioRaiseVolume" = "exec ${pkgs.pamixer}/bin/pamixer -ui 1 && ${pkgs.pamixer}/bin/pamixer --get-volume > $SWAYSOCK.wob";
|
||||
"shift+XF86AudioLowerVolume" = "exec ${pkgs.pamixer}/bin/pamixer -ud 1 && ${pkgs.pamixer}/bin/pamixer --get-volume > $SWAYSOCK.wob";
|
||||
XF86AudioMute = "exec ${pkgs.pamixer}/bin/pamixer -t && ([[ $(${pkgs.pamixer}/bin/pamixer --get-mute) = true ]] && echo 0 > $SWAYSOCK.wob) || ${pkgs.pamixer}/bin/pamixer --get-volume > $SWAYSOCK.wob";
|
||||
|
||||
Print = "exec '${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | wl-copy -t image/png'";
|
||||
"shift+Print" = "exec '${pkgs.grim}/bin/grim - | wl-copy -t image/png'";
|
||||
|
||||
|
@ -82,6 +86,7 @@
|
|||
};
|
||||
startup = [
|
||||
{ command = "/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1"; }
|
||||
{ command = "mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | ${pkgs.wob}/bin/wob"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue