Added nixos configs

This commit is contained in:
2026-02-22 19:25:39 +01:00
parent c0f19a200d
commit 8694deed28
9013 changed files with 118058 additions and 0 deletions
@@ -0,0 +1,72 @@
# IMPORTANT:
# Only packages/attributes that exist in Nixpkgs can be installed.
# Check names on https://search.nixos.org/packages
# A wrong package name (or attribute path) will cause the Nix build to fail.
# system
waybar
wofi
dunst
xdg-utils
desktop-file-utils
playerctl
pamixer
brightnessctl
rofi
home-manager
# browsers
brave
vivaldi
chromium
# hyprland
hyprpaper
# utils
wget
flatpak
nextcloud-client
kdePackages.okular
kdePackages.gwenview
kdePackages.kdeconnect-kde
_1password-gui
docker
tree
ripgrep
gparted
file
htop
wev
solaar
# terminal
kitty
starship
kdePackages.konsole
kdePackages.yakuake
# office
obsidian
onlyoffice-desktopeditors
# development
git
vscode-with-extensions
kdePackages.kate
jetbrains.pycharm
python3
# communication
nextcloud-talk-desktop
signal-desktop
# multimedia
spotify
vlc
# graphic
gimp2
@@ -0,0 +1,4 @@
app.zen_browser.zen
com.github.tchx84.Flatseal
eu.betterbird.Betterbird
com.todoist.Todoist
@@ -0,0 +1,71 @@
# IMPORTANT:
# Only packages/attributes that exist in Nixpkgs can be installed.
# Check names on https://search.nixos.org/packages
# A wrong package name (or attribute path) will cause the Nix build to fail.
# system
waybar
wofi
dunst
xdg-utils
desktop-file-utils
playerctl
pamixer
brightnessctl
rofi
home-manager
# browsers
brave
vivaldi
chromium
# hyprland
hyprpaper
# utils
wget
flatpak
nextcloud-client
kdePackages.okular
kdePackages.gwenview
kdePackages.kdeconnect-kde
_1password-gui
docker
tree
ripgrep
gparted
file
htop
wev
solaar
# terminal
kitty
starship
kdePackages.konsole
kdePackages.yakuake
# office
obsidian
onlyoffice-desktopeditors
# development
git
vscode-with-extensions
kdePackages.kate
jetbrains.pycharm
python3
# communication
nextcloud-talk-desktop
signal-desktop
# multimedia
spotify
vlc
# graphic
gimp2
@@ -0,0 +1,11 @@
# Minimal Hyprland config for greetd
monitor = , preferred, auto, 1
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
}
# Start qtgreet and point it at the correct session paths for NixOS
exec-once = sh -lc 'source /etc/greetd/qtgreet-session-paths; exec qtgreet -w "$WAYLAND_SESSIONS" -x "$X11_SESSIONS"'
@@ -0,0 +1,130 @@
###############
###############
$mainMod = SUPER
# use walker to show exec menu
"$mainMod, Space, exec, walker"
"$mainMod, P, pseudo"
"$mainMod, J, togglesplit"
# grimblast
"$mainMod_SHIFT, p, exec, grimblast -n -f copysave active"
"$mainMod_SHIFT, a, exec, grimblast -n -f copysave area"
"$mainMod_ALT, p, exec, grimblast -n -f copysave output"
"$mainMod_CTRL, p, exec, grimblast -n -f copysave screen"
# Terminal / launcher / kill / reload
$mainMod, RETURN, exec, kitty
$mainMod, D, exec, wofi --show drun
$mainMod, Q, killactive,
$mainMod_SHIFT, Q, exit,
$mainMod_SHIFT, R, exec, hyprctl reload
"$mainMod_SHIFT, S, exec, wlogout"
# Default browser
$mainMod, W, exec, xdg-open https://about:blank
# Focus movement
$mainMod, H, movefocus, l
$mainMod, L, movefocus, r
$mainMod, K, movefocus, u
$mainMod, J, movefocus, d
$mainMod, left, movefocus, l
$mainMod, right, movefocus, r
$mainMod, up, movefocus, u
$mainMod, down, movefocus, d
# Keybindings #
# Move windows
$mainMod_SHIFT, H, movewindow, l
$mainMod_SHIFT, L, movewindow, r
$mainMod_SHIFT, K, movewindow, u
$mainMod_SHIFT, J, movewindow, d
$mainMod_SHIFT, left, movewindow, l
$mainMod_SHIFT, right, movewindow, r
$mainMod_SHIFT, up, movewindow, u
$mainMod_SHIFT, down, movewindow, d
# Resize windows
$mainMod CTRL, H, resizeactive, -30 0
$mainMod CTRL, L, resizeactive, 30 0
$mainMod CTRL, K, resizeactive, 0 -30
$mainMod CTRL, J, resizeactive, 0 30
# Floating / fullscreen
$mainMod, V, togglefloating,
$mainMod, F, fullscreen, 0
$mainMod_SHIFT, F, fullscreen, 1
# Workspaces
$mainMod, 1, workspace, 1
$mainMod, 2, workspace, 2
$mainMod, 3, workspace, 3
$mainMod, 4, workspace, 4
$mainMod, 5, workspace, 5
$mainMod, 6, workspace, 6
$mainMod, 7, workspace, 7
$mainMod, 8, workspace, 8
$mainMod, 9, workspace, 9
$mainMod, 0, workspace, 10
$mainMod_SHIFT, 1, movetoworkspace, 1
$mainMod_SHIFT, 2, movetoworkspace, 2
$mainMod_SHIFT, 3, movetoworkspace, 3
$mainMod_SHIFT, 4, movetoworkspace, 4
$mainMod_SHIFT, 5, movetoworkspace, 5
$mainMod_SHIFT, 6, movetoworkspace, 6
$mainMod_SHIFT, 7, movetoworkspace, 7
$mainMod_SHIFT, 8, movetoworkspace, 8
$mainMod_SHIFT, 9, movetoworkspace, 9
$mainMod_SHIFT, 0, movetoworkspace, 10
# Cycle workspaces
$mainMod, mouse_down, workspace, e+1
$mainMod, mouse_up, workspace, e-1
# Mouse drag
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
#########################
# Audio (pamixer)
#########################
, XF86AudioRaiseVolume, exec, pamixer -i 5
, XF86AudioLowerVolume, exec, pamixer -d 5
, XF86AudioMute, exec, pamixer -t
, XF86AudioMicMute, exec, pamixer --default-source -t
#########################
# Media (playerctl)
#########################
, XF86AudioPlay, exec, playerctl play-pause
, XF86AudioPause, exec, playerctl pause
, XF86AudioNext, exec, playerctl next
, XF86AudioPrev, exec, playerctl previous
, XF86AudioStop, exec, playerctl stop
#########################
# Brightness (brightnessctl)
#########################
, XF86MonBrightnessUp, exec, brightnessctl set +10%
, XF86MonBrightnessDown, exec, brightnessctl set 10%-
, XF86KbdBrightnessUp, exec, brightnessctl -d '*kbd_backlight*' set +10%
, XF86KbdBrightnessDown, exec, brightnessctl -d '*kbd_backlight*' set 10%-
#########################
# Power / session
#########################
, XF86Sleep, exec, systemctl suspend
, XF86PowerOff, exec, systemctl poweroff
, XF86WakeUp, exec, systemctl suspend
#########################
# Start apps
#########################
$mainMod, E, exec, dolphin
CTRLALT, B, exec, flatpak run eu.betterbird.Betterbird
CTRLALT, S, exec, spotify
CTRLALT, z, exec, flatpak run app.zen_browser.zen
@@ -0,0 +1,58 @@
# --- Variables ---
$mod = SUPER
$term = kitty
$menu = hyprshell run
# --- Environment ---
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = MOZ_ENABLE_WAYLAND,1
# --- Monitor (safe default) ---
monitor = , preferred, auto, 1
# --- Input ---
input {
kb_layout = us
follow_mouse = 1
touchpad {
natural_scroll = true
}
}
# --- General ---
general {
gaps_in = 5
gaps_out = 10
border_size = 2
layout = dwindle
}
animations {
enabled = true
}
decoration {
blur {
enabled = true
size = 8
passes = 2
new_optimizations = true
}
}
misc {
disable_hyprland_logo = false
disable_splash_rendering = false
}
# --- Keybindings live here ---
source = /etc/xdg/hypr/bindings.conf
# --- Autostart ---
exec-once = waybar
#exec-once = sleep 2 & /run/current-system/sw/bin/hyprshell run
@@ -0,0 +1,61 @@
# =========================
# Hyprland config (generated by Nix)
# =========================
# --- Variables ---
$mod = SUPER
$term = kitty
$menu = hyprshell run
# --- Environment ---
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = MOZ_ENABLE_WAYLAND,1
# --- Monitor (safe default) ---
monitor = , preferred, auto, 1
# --- Input ---
input {
kb_layout = us
follow_mouse = 1
touchpad {
natural_scroll = true
}
}
# --- General ---
general {
gaps_in = 5
gaps_out = 10
border_size = 2
layout = dwindle
}
animations {
enabled = true
}
decoration {
blur {
enabled = false
size = 8
passes = 2
new_optimizations = true
}
}
misc {
disable_hyprland_logo = false
disable_splash_rendering = false
}
# --- Keybindings live here ---
source = /etc/xdg/hypr/bindings.conf
# --- Autostart ---
exec-once = waybar
#exec-once = sleep 2 & /run/current-system/sw/bin/hyprshell run
@@ -0,0 +1,4 @@
Host *
AddKeysToAgent yes
ServerAliveInterval 30
ServerAliveCountMax 3
@@ -0,0 +1,17 @@
alias ll='ls -lah'
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias reb-switch='cd ~/nixos && sudo nixos-rebuild switch --flake ~/nixos#traveldroid'
alias reb-test='cd ~/nixos && sudo nixos-rebuild test --flake ~/nixos#traveldroid'
alias reb-vm='cd ~/nixos && sudo nixos-rebuild build-vm --flake ~/nixos#traveldroid && "$(ls -1 ./result/bin/run-*-vm | head -n 1)"'
alias rb='systemctl reboot'
alias po='systemctl poweroff'
alias fpl='flatpak search'
alias fpi='flatpak install'
alias fpr='flatpak run'
alias nxc='ssh henrov@nextcloud.data-pro.nu'
alias nps='xdg-open https://search.nixos.org'
alias vs='code'
alias saveme='sudo nix-env -p /nix/var/nix/profiles/system --set /nix/var/nix/profiles/system-123-link && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration boot'
@@ -0,0 +1,12 @@
# ~/nixos/files/conf/terminal/kitty.conf
# Kitty config (https://sw.kovidgoyal.net/kitty/conf/)
#
# Edit freely; NixOS will inject this file verbatim via programs.kitty.extraConfig.
# Example baseline settings:
background_opacity 0.60
dynamic_background_opacity yes
# Suggested: allow ctrl+shift+v paste (many distros default this already)
map ctrl+shift+v paste_from_clipboard
map ctrl+shift+c copy_to_clipboard
@@ -0,0 +1,279 @@
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[](red)\
$os\
$username\
[](bg:peach fg:red)\
$directory\
[](bg:yellow fg:peach)\
$git_branch\
$git_status\
[](fg:yellow bg:green)\
$c\
$rust\
$golang\
$nodejs\
$php\
$java\
$kotlin\
$haskell\
$python\
[](fg:green bg:sapphire)\
$conda\
[](fg:sapphire bg:lavender)\
$time\
[ ](fg:lavender)\
$cmd_duration\
$line_break\
$character"""
palette = 'catppuccin_mocha'
[os]
disabled = false
style = "bg:red fg:crust"
[os.symbols]
Windows = ""
Ubuntu = "󰕈"
SUSE = ""
Raspbian = "󰐿"
Mint = "󰣭"
Macos = "󰀵"
Manjaro = ""
Linux = "󰌽"
Gentoo = "󰣨"
Fedora = "󰣛"
Alpine = ""
Amazon = ""
Android = ""
AOSC = ""
Arch = "󰣇"
Artix = "󰣇"
CentOS = ""
Debian = "󰣚"
Redhat = "󱄛"
RedHatEnterprise = "󱄛"
[username]
show_always = true
style_user = "bg:red fg:crust"
style_root = "bg:red fg:crust"
format = '[ $user]($style)'
[directory]
style = "bg:peach fg:crust"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"
[directory.substitutions]
"Documents" = "󰈙 "
"Downloads" = " "
"Music" = "󰝚 "
"Pictures" = " "
"Developer" = "󰲋 "
[git_branch]
symbol = ""
style = "bg:yellow"
format = '[[ $symbol $branch ](fg:crust bg:yellow)]($style)'
[git_status]
style = "bg:yellow"
format = '[[($all_status$ahead_behind )](fg:crust bg:yellow)]($style)'
[nodejs]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[c]
symbol = " "
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[rust]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[golang]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[php]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[java]
symbol = " "
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[kotlin]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[haskell]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[python]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version)(\(#$virtualenv\)) ](fg:crust bg:green)]($style)'
[docker_context]
symbol = ""
style = "bg:sapphire"
format = '[[ $symbol( $context) ](fg:crust bg:sapphire)]($style)'
[conda]
symbol = "  "
style = "fg:crust bg:sapphire"
format = '[$symbol$environment ]($style)'
ignore_base = false
[time]
disabled = false
time_format = "%R"
style = "bg:lavender"
format = '[[  $time ](fg:crust bg:lavender)]($style)'
[line_break]
disabled = false
[character]
disabled = false
success_symbol = '[](bold fg:green)'
error_symbol = '[](bold fg:red)'
vimcmd_symbol = '[](bold fg:green)'
vimcmd_replace_one_symbol = '[](bold fg:lavender)'
vimcmd_replace_symbol = '[](bold fg:lavender)'
vimcmd_visual_symbol = '[](bold fg:yellow)'
[cmd_duration]
show_milliseconds = true
format = " in $duration "
style = "bg:lavender"
disabled = false
show_notifications = true
min_time_to_notify = 45000
[palettes.catppuccin_mocha]
rosewater = "#f5e0dc"
flamingo = "#f2cdcd"
pink = "#f5c2e7"
mauve = "#cba6f7"
red = "#f38ba8"
maroon = "#eba0ac"
peach = "#fab387"
yellow = "#f9e2af"
green = "#a6e3a1"
teal = "#94e2d5"
sky = "#89dceb"
sapphire = "#74c7ec"
blue = "#89b4fa"
lavender = "#b4befe"
text = "#cdd6f4"
subtext1 = "#bac2de"
subtext0 = "#a6adc8"
overlay2 = "#9399b2"
overlay1 = "#7f849c"
overlay0 = "#6c7086"
surface2 = "#585b70"
surface1 = "#45475a"
surface0 = "#313244"
base = "#1e1e2e"
mantle = "#181825"
crust = "#11111b"
[palettes.catppuccin_frappe]
rosewater = "#f2d5cf"
flamingo = "#eebebe"
pink = "#f4b8e4"
mauve = "#ca9ee6"
red = "#e78284"
maroon = "#ea999c"
peach = "#ef9f76"
yellow = "#e5c890"
green = "#a6d189"
teal = "#81c8be"
sky = "#99d1db"
sapphire = "#85c1dc"
blue = "#8caaee"
lavender = "#babbf1"
text = "#c6d0f5"
subtext1 = "#b5bfe2"
subtext0 = "#a5adce"
overlay2 = "#949cbb"
overlay1 = "#838ba7"
overlay0 = "#737994"
surface2 = "#626880"
surface1 = "#51576d"
surface0 = "#414559"
base = "#303446"
mantle = "#292c3c"
crust = "#232634"
[palettes.catppuccin_latte]
rosewater = "#dc8a78"
flamingo = "#dd7878"
pink = "#ea76cb"
mauve = "#8839ef"
red = "#d20f39"
maroon = "#e64553"
peach = "#fe640b"
yellow = "#df8e1d"
green = "#40a02b"
teal = "#179299"
sky = "#04a5e5"
sapphire = "#209fb5"
blue = "#1e66f5"
lavender = "#7287fd"
text = "#4c4f69"
subtext1 = "#5c5f77"
subtext0 = "#6c6f85"
overlay2 = "#7c7f93"
overlay1 = "#8c8fa1"
overlay0 = "#9ca0b0"
surface2 = "#acb0be"
surface1 = "#bcc0cc"
surface0 = "#ccd0da"
base = "#eff1f5"
mantle = "#e6e9ef"
crust = "#dce0e8"
[palettes.catppuccin_macchiato]
rosewater = "#f4dbd6"
flamingo = "#f0c6c6"
pink = "#f5bde6"
mauve = "#c6a0f6"
red = "#ed8796"
maroon = "#ee99a0"
peach = "#f5a97f"
yellow = "#eed49f"
green = "#a6da95"
teal = "#8bd5ca"
sky = "#91d7e3"
sapphire = "#7dc4e4"
blue = "#8aadf4"
lavender = "#b7bdf8"
text = "#cad3f5"
subtext1 = "#b8c0e0"
subtext0 = "#a5adcb"
overlay2 = "#939ab7"
overlay1 = "#8087a2"
overlay0 = "#6e738d"
surface2 = "#5b6078"
surface1 = "#494d64"
surface0 = "#363a4f"
base = "#24273a"
mantle = "#1e2030"
crust = "#181926"
@@ -0,0 +1,14 @@
# ~/nixos/files/conf/terminal/zsh.conf
# Additional zsh configuration sourced for every interactive zsh shell.
# Keep this file POSIX-ish; it is sourced by zsh.
# Example: history settings
HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000
SAVEHIST=10000
setopt HIST_IGNORE_ALL_DUPS
setopt SHARE_HISTORY
# Example: enable starship if you ever disable the zsh integration module
# eval "$(starship init zsh)"
@@ -0,0 +1,8 @@
# transition type: fade, wipe, simple, any, etc.
TRANSITION_TYPE=fade
# duration in seconds (can be decimal)
TRANSITION_DURATION=2
# frames per second
TRANSITION_FPS=60
# override source dir if you ever move it
# SRC_DIR=~/nixos/files/wallpapers/picture
Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB