mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2026-02-05 05:41:57 -05:00
Compare commits
1 Commits
main
...
2856446385
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2856446385 |
@@ -1,5 +1,6 @@
|
|||||||
exec-once = fcitx5 -d -r
|
exec-once = fcitx5 -d -r
|
||||||
exec-once = nm-applet
|
exec-once = nm-applet
|
||||||
|
exec-once = swayosd-server
|
||||||
exec-once = swww-daemon
|
exec-once = swww-daemon
|
||||||
exec-once = swww restore
|
exec-once = swww restore
|
||||||
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE $SCALE
|
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE $SCALE
|
||||||
|
|||||||
92
dotfiles/.config/hypr/hyprland/basic.conf
vendored
92
dotfiles/.config/hypr/hyprland/basic.conf
vendored
@@ -1,15 +1,33 @@
|
|||||||
source = ~/.config/hypr/theme.conf
|
source = ~/.config/hypr/theme.conf
|
||||||
|
|
||||||
|
#animations {
|
||||||
|
# enabled = true
|
||||||
|
# bezier = liner, 1, 1, 1, 1
|
||||||
|
# bezier = overshot, 0.13, 0.99, 0.29, 1.1
|
||||||
|
# bezier = wind, 0.05, 0.9, 0.1, 1.05
|
||||||
|
# bezier = winIn, 0.1, 1.1, 0.1, 1.1
|
||||||
|
# animation = windows, 1, 6, wind, slide
|
||||||
|
# animation = windowsIn, 1, 7, winIn, slide
|
||||||
|
# animation = windowsOut, 1, 7, default, popin 80%
|
||||||
|
# animation = windowsMove, 1, 5, wind, slide
|
||||||
|
# animation = border, 1, 1, liner
|
||||||
|
# animation = fade, 1, 10, default
|
||||||
|
# animation = workspaces, 1, 8, default, slidefade 20%
|
||||||
|
# animation = specialWorkspaceIn, 1, 8, default, fade
|
||||||
|
# animation = specialWorkspaceOut, 1, 8, default, fade
|
||||||
|
#}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
enabled = yes
|
enabled = yes
|
||||||
bezier = niri, 0.2, 0.8, 0.2, 1.0
|
bezier = smooth, 0.1, 0.9, 0.2, 1.0
|
||||||
animation = windowsIn, 1, 3, niri, slide
|
bezier = default, 0.25, 0.8, 0.5, 1
|
||||||
animation = windowsOut, 1, 2, niri, popin 80%
|
bezier = wind, 0.05, 0.9, 0.1, 1.05
|
||||||
animation = windowsMove, 1, 3, niri, slide
|
animation = windowsIn, 1, 4, smooth, slide
|
||||||
animation = workspacesIn, 1, 3, niri, slide
|
animation = windowsOut, 1, 2, default, popin 80%
|
||||||
animation = workspacesOut, 1, 3, niri, slidefade 70%
|
animation = windowsMove, 1, 4, wind, slide
|
||||||
animation = border, 1, 1, niri
|
animation = border, 1, 5, default
|
||||||
animation = fade, 1, 1, niri
|
animation = workspacesIn, 1, 6, smooth, slide
|
||||||
|
animation = workspacesOut, 1, 6, smooth, slidefade 80%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -19,26 +37,20 @@ debug {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
general {
|
|
||||||
border_size = 1
|
|
||||||
gaps_in = 2
|
|
||||||
gaps_out = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 0
|
|
||||||
active_opacity = 1.0
|
active_opacity = 1.0
|
||||||
|
blur {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
dim_inactive = false
|
||||||
|
fullscreen_opacity = 1.0
|
||||||
inactive_opacity = 1.0
|
inactive_opacity = 1.0
|
||||||
|
rounding = 4
|
||||||
shadow {
|
shadow {
|
||||||
enabled = false
|
enabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
general {
|
|
||||||
col.active_border = rgba(313244ff)
|
|
||||||
col.inactive_border = rgba(1e1e2eff)
|
|
||||||
}
|
|
||||||
|
|
||||||
ecosystem {
|
ecosystem {
|
||||||
no_donation_nag = true
|
no_donation_nag = true
|
||||||
@@ -49,6 +61,16 @@ ecosystem {
|
|||||||
env = XDG_SESSION_DESKTOP, Hyprland
|
env = XDG_SESSION_DESKTOP, Hyprland
|
||||||
|
|
||||||
|
|
||||||
|
general {
|
||||||
|
gaps_in = 1
|
||||||
|
gaps_out = 1
|
||||||
|
border_size = 2
|
||||||
|
col.active_border = $lavender
|
||||||
|
col.inactive_border = $base
|
||||||
|
layout = tile
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
gestures {
|
gestures {
|
||||||
workspace_swipe = true
|
workspace_swipe = true
|
||||||
workspace_swipe_fingers = 3
|
workspace_swipe_fingers = 3
|
||||||
@@ -92,6 +114,36 @@ misc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#plugin {
|
||||||
|
# hy3 {
|
||||||
|
# no_gaps_when_only = 1
|
||||||
|
# node_collapse_policy = 1
|
||||||
|
# group_inset = 10
|
||||||
|
# tab_first_window = true
|
||||||
|
# tabs {
|
||||||
|
# col.active = rgb(b4befe)
|
||||||
|
# col.active.border = rgb(313244)
|
||||||
|
# col.active.text = rgb(181825)
|
||||||
|
# col.inactive = rgb(181825)
|
||||||
|
# col.inactive.border = rgb(313244)
|
||||||
|
# col.inactive.text = rgb(b4befe)
|
||||||
|
# col.urgent = rgb(f2cdcd)
|
||||||
|
# col.urgent.border = rgb(313244)
|
||||||
|
# col.urgent.text = rgb(181825)
|
||||||
|
# from_top = false
|
||||||
|
# height = 14
|
||||||
|
# padding = 2
|
||||||
|
# render_text = true
|
||||||
|
# rounding = 6
|
||||||
|
# text_center = true
|
||||||
|
# text_font = Sarasa Gothic SC
|
||||||
|
# text_height = 10
|
||||||
|
# text_padding = 0
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
|
||||||
|
|
||||||
xwayland {
|
xwayland {
|
||||||
force_zero_scaling = true
|
force_zero_scaling = true
|
||||||
}
|
}
|
||||||
|
|||||||
18
dotfiles/.config/hypr/hyprland/bind.conf
vendored
18
dotfiles/.config/hypr/hyprland/bind.conf
vendored
@@ -175,8 +175,8 @@ bind = SUPER, mouse:276, workspace, e-1
|
|||||||
|
|
||||||
|
|
||||||
## Brightness control
|
## Brightness control
|
||||||
bindel = , XF86MonBrightnessUp, exec, brightnessctl -d amdgpu_bl1 s +5%
|
bindel = , XF86MonBrightnessUp, exec, swayosd-client --brightness +5
|
||||||
bindel = , XF86MonBrightnessDown, exec, brightnessctl -d amdgpu_bl1 s 5%-
|
bindel = , XF86MonBrightnessDown, exec, swayosd-client --brightness -5
|
||||||
|
|
||||||
|
|
||||||
## Playback control
|
## Playback control
|
||||||
@@ -190,13 +190,13 @@ bindl = CONTROL_ALT, right, exec, playerctl next
|
|||||||
bindl = CONTROL_ALT, left, exec, playerctl previous
|
bindl = CONTROL_ALT, left, exec, playerctl previous
|
||||||
|
|
||||||
|
|
||||||
## Volume control (stable, PipeWire)
|
## Volume control
|
||||||
bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
bindel = ,XF86AudioRaiseVolume, exec, swayosd-client --output-volume +2
|
||||||
bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
bindel = ,XF86AudioLowerVolume, exec, swayosd-client --output-volume -2
|
||||||
bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
bindl = ,XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle
|
||||||
bindl = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
bindl = ,XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
|
||||||
|
|
||||||
|
|
||||||
## Volume control (bonus)
|
## Volume control (bonus)
|
||||||
bindel = CONTROL_ALT, up, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
bindel = CONTROL_ALT, up, exec, swayosd-client --output-volume +2
|
||||||
bindel = CONTROL_ALT, down, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
bindel = CONTROL_ALT, down, exec, swayosd-client --output-volume -2
|
||||||
|
|||||||
32
dotfiles/.config/niri/config.kdl
vendored
32
dotfiles/.config/niri/config.kdl
vendored
@@ -165,26 +165,17 @@ binds {
|
|||||||
// Powers off the monitors. To turn them back on, do any input like
|
// Powers off the monitors. To turn them back on, do any input like
|
||||||
// moving the mouse or pressing any other key.
|
// moving the mouse or pressing any other key.
|
||||||
Super+Shift+P { power-off-monitors; }
|
Super+Shift+P { power-off-monitors; }
|
||||||
// Volume control (stable)
|
|
||||||
XF86AudioRaiseVolume {
|
|
||||||
spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%+";
|
|
||||||
}
|
|
||||||
XF86AudioLowerVolume {
|
|
||||||
spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-";
|
|
||||||
}
|
|
||||||
XF86AudioMute {
|
|
||||||
spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
|
|
||||||
}
|
|
||||||
XF86AudioMicMute {
|
|
||||||
spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle";
|
|
||||||
}
|
|
||||||
XF86MonBrightnessUp {
|
|
||||||
spawn "brightnessctl" "set" "+5%";
|
|
||||||
}
|
|
||||||
|
|
||||||
XF86MonBrightnessDown {
|
// Volume control
|
||||||
spawn "brightnessctl" "set" "5%-";
|
XF86AudioLowerVolume allow-when-locked=true { spawn "swayosd-client" "--output-volume" "-2"; }
|
||||||
}
|
XF86AudioMute allow-when-locked=true { spawn "swayosd-client" "--output-volume" "mute-toggle"; }
|
||||||
|
XF86AudioRaiseVolume allow-when-locked=true { spawn "swayosd-client" "--output-volume" "+2"; }
|
||||||
|
XF86MonBrightnessDown allow-when-locked=true { spawn "swayosd-client" "--brightness" "-5"; }
|
||||||
|
XF86MonBrightnessUp allow-when-locked=true { spawn "swayosd-client" "--brightness" "+5"; }
|
||||||
|
|
||||||
|
// Volume control (bonus)
|
||||||
|
Ctrl+Alt+Down allow-when-locked=true { spawn "swayosd-client" "--output-volume" "-2"; }
|
||||||
|
Ctrl+Alt+Up allow-when-locked=true { spawn "swayosd-client" "--output-volume" "+2"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -206,10 +197,13 @@ screenshot-path "~/Pictures/Screenshots/SCREENSHOT-%Y-%m-%d-%H:%M:%S.png"
|
|||||||
spawn-at-startup "fcitx5" "-d" "-r"
|
spawn-at-startup "fcitx5" "-d" "-r"
|
||||||
spawn-at-startup "nm-applet"
|
spawn-at-startup "nm-applet"
|
||||||
spawn-at-startup "blueman-applet"
|
spawn-at-startup "blueman-applet"
|
||||||
|
spawn-at-startup "sh" "-c" "dbus-update-activation-environment --systemd --all && systemctl --user stop niri-session.target && systemctl --user start niri-session.target"
|
||||||
|
spawn-at-startup "swayosd-server"
|
||||||
spawn-at-startup "swww-daemon"
|
spawn-at-startup "swww-daemon"
|
||||||
spawn-at-startup "swww" "img" "$HOME/Git/DCGOS/dotfiles/.local/share/wallpapers/yohoho.jpg"
|
spawn-at-startup "swww" "img" "$HOME/Git/DCGOS/dotfiles/.local/share/wallpapers/yohoho.jpg"
|
||||||
spawn-at-startup "swww" "restore"
|
spawn-at-startup "swww" "restore"
|
||||||
spawn-at-startup "waybar"
|
spawn-at-startup "waybar"
|
||||||
|
spawn-at-startup "lxqt-policykit-agent"
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
block-out-from "screen-capture"
|
block-out-from "screen-capture"
|
||||||
|
|||||||
51
dotfiles/.config/waybar/config.jsonc
vendored
51
dotfiles/.config/waybar/config.jsonc
vendored
@@ -39,7 +39,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"backlight": {
|
"backlight": {
|
||||||
"device": "amdgpu_bl1",
|
"device": "intel_backlight",
|
||||||
"format": "{icon} {percent}%",
|
"format": "{icon} {percent}%",
|
||||||
"format-icons": [""],
|
"format-icons": [""],
|
||||||
"on-scroll-down": "brightnessctl s 2%-",
|
"on-scroll-down": "brightnessctl s 2%-",
|
||||||
@@ -86,7 +86,15 @@
|
|||||||
"on-click": "activate",
|
"on-click": "activate",
|
||||||
"on-click-middle": "close",
|
"on-click-middle": "close",
|
||||||
},
|
},
|
||||||
|
/*
|
||||||
|
"custom/screenshot": {
|
||||||
|
"format": " ",
|
||||||
|
"on-click": "sh ~/.config/waybar/scripts/Screenshot-Area.sh",
|
||||||
|
"on-click-right": "nemo ~/Pictures/Screenshots",
|
||||||
|
"on-click-middle": "sh ~/.config/waybar/scripts/Screenshot-Fullscreen.sh",
|
||||||
|
"tooltip": false,
|
||||||
|
},
|
||||||
|
*/
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 8,
|
"spacing": 8,
|
||||||
},
|
},
|
||||||
@@ -100,7 +108,6 @@
|
|||||||
"on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateBrightness d -0.02",
|
"on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateBrightness d -0.02",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/wl-gammarelay-temperature": {
|
"custom/wl-gammarelay-temperature": {
|
||||||
"format": "{}K",
|
"format": "{}K",
|
||||||
"exec": "wl-gammarelay-rs watch {t}",
|
"exec": "wl-gammarelay-rs watch {t}",
|
||||||
@@ -110,21 +117,47 @@
|
|||||||
"on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -100",
|
"on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -100",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
/*
|
||||||
"wireplumber": {
|
"wireplumber": {
|
||||||
|
"on-click": "pwvucontrol",
|
||||||
|
"on-click-right": "easyeffects",
|
||||||
|
"on-click-middle": "swayosd-client --output-volume mute-toggle",
|
||||||
|
"on-scroll-down": "swayosd-client --output-volume -2",
|
||||||
|
"on-scroll-up": "swayosd-client --output-volume +2",
|
||||||
"format": "{icon} {volume}%",
|
"format": "{icon} {volume}%",
|
||||||
"format-muted": "MUTE",
|
"format-muted": "MUTE",
|
||||||
"format-source": "",
|
"format-source": "",
|
||||||
"format-source-muted": "",
|
"format-source-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"default": ["", "", ""]
|
"default": ["", "", ""],
|
||||||
},
|
},
|
||||||
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
|
|
||||||
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-",
|
|
||||||
"on-click": "pwvucontrol",
|
|
||||||
// "on-click-right": "easyeffects"
|
|
||||||
},
|
},
|
||||||
|
*/
|
||||||
|
|
||||||
|
"wireplumber": {
|
||||||
|
"on-click": "pwvucontrol",
|
||||||
|
"on-click-right": "easyeffects",
|
||||||
|
"on-click-middle": "swayosd-client --output-volume mute-toggle",
|
||||||
|
"on-scroll-down": "swayosd-client --output-volume -2",
|
||||||
|
"on-scroll-up": "swayosd-client --output-volume +2",
|
||||||
|
"format": "{icon} {volume}%",
|
||||||
|
"format-muted": "MUTE",
|
||||||
|
"format-source": "",
|
||||||
|
"format-source-muted": "",
|
||||||
|
"format-icons": {
|
||||||
|
"default": ["", "", ""],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
/*
|
||||||
|
"clock": {
|
||||||
|
"interval": 60,
|
||||||
|
"align": 0,
|
||||||
|
"rotate": 0,
|
||||||
|
"tooltip-format": "<tt><big>{calendar}</big></tt>",
|
||||||
|
"format": " {:%d.%m.%Y}",
|
||||||
|
"format-alt": " {:%b%d %a,%G}",
|
||||||
|
},
|
||||||
|
*/
|
||||||
"clock": {
|
"clock": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"align": 0,
|
"align": 0,
|
||||||
|
|||||||
117
flake.lock
generated
117
flake.lock
generated
@@ -71,11 +71,11 @@
|
|||||||
"firefox-gnome-theme": {
|
"firefox-gnome-theme": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764873433,
|
"lastModified": 1764724327,
|
||||||
"narHash": "sha256-1XPewtGMi+9wN9Ispoluxunw/RwozuTRVuuQOmxzt+A=",
|
"narHash": "sha256-OkFLrD3pFR952TrjQi1+Vdj604KLcMnkpa7lkW7XskI=",
|
||||||
"owner": "rafaelmardojai",
|
"owner": "rafaelmardojai",
|
||||||
"repo": "firefox-gnome-theme",
|
"repo": "firefox-gnome-theme",
|
||||||
"rev": "f7ffd917ac0d253dbd6a3bf3da06888f57c69f92",
|
"rev": "66b7c635763d8e6eb86bd766de5a1e1fbfcc1047",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -92,11 +92,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767609335,
|
"lastModified": 1763759067,
|
||||||
"narHash": "sha256-feveD98mQpptwrAEggBQKJTYbvwwglSbOv53uCfH9PY=",
|
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "250481aafeb741edfe23d29195671c19b36b6dca",
|
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -105,24 +105,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1731533236,
|
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fromYaml": {
|
"fromYaml": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -143,11 +125,11 @@
|
|||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"host": "gitlab.gnome.org",
|
"host": "gitlab.gnome.org",
|
||||||
"lastModified": 1767737596,
|
"lastModified": 1764524476,
|
||||||
"narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=",
|
"narHash": "sha256-bTmNn3Q4tMQ0J/P0O5BfTQwqEnCiQIzOGef9/aqAZvk=",
|
||||||
"owner": "GNOME",
|
"owner": "GNOME",
|
||||||
"repo": "gnome-shell",
|
"repo": "gnome-shell",
|
||||||
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
"rev": "c0e1ad9f0f703fd0519033b8f46c3267aab51a22",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -165,11 +147,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769978395,
|
"lastModified": 1766282146,
|
||||||
"narHash": "sha256-gj1yP3spUb1vGtaF5qPhshd2j0cg4xf51pklDsIm19Q=",
|
"narHash": "sha256-0V/nKU93KdYGi+5LB/MVo355obBJw/2z9b2xS3bPJxY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "984708c34d3495a518e6ab6b8633469bbca2f77a",
|
"rev": "61fcc9de76b88e55578eb5d79fc80f2b236df707",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -178,34 +160,13 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lazyvim": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1770068987,
|
|
||||||
"narHash": "sha256-NZy5S0xkntbfW3SfluZg5hbDzRw4eFBsFm9knXzH8Eo=",
|
|
||||||
"owner": "pfassina",
|
|
||||||
"repo": "lazyvim-nix",
|
|
||||||
"rev": "a88c488cfd96e1d4274d34d2e35ddbe99dbe5757",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "pfassina",
|
|
||||||
"repo": "lazyvim-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770019141,
|
"lastModified": 1766070988,
|
||||||
"narHash": "sha256-VKS4ZLNx4PNrABoB0L8KUpc1fE7CLpQXQs985tGfaCU=",
|
"narHash": "sha256-G/WVghka6c4bAzMhTwT2vjLccg/awmHkdKSd2JrycLc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cb369ef2efd432b3cdf8622b0ffc0a97a02f3137",
|
"rev": "c6245e83d836d0433170a16eb185cefe0572f8b8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -227,11 +188,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767810917,
|
"lastModified": 1764773531,
|
||||||
"narHash": "sha256-ZKqhk772+v/bujjhla9VABwcvz+hB2IaRyeLT6CFnT0=",
|
"narHash": "sha256-mCBl7MD1WZ7yCG6bR9MmpPO2VydpNkWFgnslJRIT1YU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "dead29c804adc928d3a69dfe7f9f12d0eec1f1a4",
|
"rev": "1d9616689e98beded059ad0384b9951e967a17fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -243,7 +204,6 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"lazyvim": "lazyvim",
|
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"stylix": "stylix"
|
"stylix": "stylix"
|
||||||
}
|
}
|
||||||
@@ -261,7 +221,7 @@
|
|||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"systems": "systems_2",
|
"systems": "systems",
|
||||||
"tinted-foot": "tinted-foot",
|
"tinted-foot": "tinted-foot",
|
||||||
"tinted-kitty": "tinted-kitty",
|
"tinted-kitty": "tinted-kitty",
|
||||||
"tinted-schemes": "tinted-schemes",
|
"tinted-schemes": "tinted-schemes",
|
||||||
@@ -269,11 +229,11 @@
|
|||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769978605,
|
"lastModified": 1765897595,
|
||||||
"narHash": "sha256-Vjniae6HHJCb9xZLeUOP15aRQXSZuKeeaZFM+gRDCgo=",
|
"narHash": "sha256-NgTRxiEC5y96zrhdBygnY+mSzk5FWMML39PcRGVJmxg=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "ce22070ec5ce6169a6841da31baea33ce930ed38",
|
"rev": "e6829552d4bb659ebab00f08c61d8c62754763f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -297,21 +257,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tinted-foot": {
|
"tinted-foot": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -348,11 +293,11 @@
|
|||||||
"tinted-schemes": {
|
"tinted-schemes": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767710407,
|
"lastModified": 1763914658,
|
||||||
"narHash": "sha256-+W1EB79Jl0/gm4JqmO0Nuc5C7hRdp4vfsV/VdzI+des=",
|
"narHash": "sha256-Hju0WtMf3iForxtOwXqGp3Ynipo0EYx1AqMKLPp9BJw=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "schemes",
|
"repo": "schemes",
|
||||||
"rev": "2800e2b8ac90f678d7e4acebe4fa253f602e05b2",
|
"rev": "0f6be815d258e435c9b137befe5ef4ff24bea32c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -364,11 +309,11 @@
|
|||||||
"tinted-tmux": {
|
"tinted-tmux": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767489635,
|
"lastModified": 1764465359,
|
||||||
"narHash": "sha256-e6nnFnWXKBCJjCv4QG4bbcouJ6y3yeT70V9MofL32lU=",
|
"narHash": "sha256-lbSVPqLEk2SqMrnpvWuKYGCaAlfWFMA6MVmcOFJjdjE=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "tinted-tmux",
|
"repo": "tinted-tmux",
|
||||||
"rev": "3c32729ccae99be44fe8a125d20be06f8d7d8184",
|
"rev": "edf89a780e239263cc691a987721f786ddc4f6aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -380,11 +325,11 @@
|
|||||||
"tinted-zed": {
|
"tinted-zed": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767488740,
|
"lastModified": 1764464512,
|
||||||
"narHash": "sha256-wVOj0qyil8m+ouSsVZcNjl5ZR+1GdOOAooAatQXHbuU=",
|
"narHash": "sha256-rCD/pAhkMdCx6blsFwxIyvBJbPZZ1oL2sVFrH07lmqg=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "base16-zed",
|
"repo": "base16-zed",
|
||||||
"rev": "11abb0b282ad3786a2aae088d3a01c60916f2e40",
|
"rev": "907dbba5fb8cf69ebfd90b00813418a412d0a29a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -2,11 +2,15 @@
|
|||||||
description = "🥶";
|
description = "🥶";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
# chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
||||||
|
# daeuniverse.url = "github:daeuniverse/flake.nix";
|
||||||
|
# disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
# disko.url = "github:nix-community/disko";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
lazyvim.inputs.nixpkgs.follows = "nixpkgs";
|
# nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
lazyvim.url = "github:pfassina/lazyvim-nix";
|
# nixvim.url = "github:nix-community/nixvim";
|
||||||
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
};
|
};
|
||||||
|
|||||||
5
home/gui/anime/tsukimi.nix
Normal file
5
home/gui/anime/tsukimi.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
tsukimi
|
||||||
|
];
|
||||||
|
}
|
||||||
5
home/gui/editor/zed.nix
Normal file
5
home/gui/editor/zed.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
zed-editor
|
||||||
|
];
|
||||||
|
}
|
||||||
5
home/gui/file-sync/syncthing.nix
Normal file
5
home/gui/file-sync/syncthing.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
syncthing
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,34 +1,11 @@
|
|||||||
{ inputs, config, lib, pkgs, ... }:
|
{ config
|
||||||
{
|
, lib
|
||||||
imports = [ inputs.lazyvim.homeManagerModules.default ];
|
, pkgs
|
||||||
programs.lazyvim = {
|
, ...
|
||||||
|
}: {
|
||||||
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
configFiles = ./lua;
|
|
||||||
|
|
||||||
extras = {
|
|
||||||
lang = {
|
|
||||||
go.enable = true;
|
|
||||||
clangd.enable = true;
|
|
||||||
rust.enable = true;
|
|
||||||
typescript.enable = true;
|
|
||||||
python.enable = true;
|
|
||||||
tailwind.enable = true;
|
|
||||||
java.enable = true;
|
|
||||||
json.enable = true;
|
|
||||||
yaml.enable = true;
|
|
||||||
toml.enable = true;
|
|
||||||
docker.enable = true;
|
|
||||||
kotlin.enable = true;
|
|
||||||
# dart.enable = true;
|
|
||||||
nix.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
# All
|
|
||||||
tree-sitter
|
|
||||||
|
|
||||||
#Go
|
#Go
|
||||||
gopls
|
gopls
|
||||||
gofumpt
|
gofumpt
|
||||||
@@ -72,10 +49,185 @@
|
|||||||
prettierd
|
prettierd
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
|
|
||||||
# Data formats
|
|
||||||
jq #JSON
|
jq #JSON
|
||||||
taplo #TOML
|
taplo #TOML
|
||||||
yamlfmt #YAML
|
yamlfmt #YAML
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
lazy-nvim
|
||||||
|
];
|
||||||
|
|
||||||
|
extraLuaConfig =
|
||||||
|
let
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
LazyVim
|
||||||
|
bufferline-nvim
|
||||||
|
cmp_luasnip
|
||||||
|
conform-nvim
|
||||||
|
dashboard-nvim
|
||||||
|
flash-nvim
|
||||||
|
friendly-snippets
|
||||||
|
gitsigns-nvim
|
||||||
|
lualine-nvim
|
||||||
|
neo-tree-nvim
|
||||||
|
neoconf-nvim
|
||||||
|
neodev-nvim
|
||||||
|
noice-nvim
|
||||||
|
nui-nvim
|
||||||
|
nvim-lint
|
||||||
|
nvim-lspconfig
|
||||||
|
nvim-notify
|
||||||
|
nvim-spectre
|
||||||
|
nvim-treesitter
|
||||||
|
nvim-treesitter-context
|
||||||
|
nvim-ts-autotag
|
||||||
|
nvim-ts-context-commentstring
|
||||||
|
nvim-web-devicons
|
||||||
|
persistence-nvim
|
||||||
|
plenary-nvim
|
||||||
|
todo-comments-nvim
|
||||||
|
tokyonight-nvim
|
||||||
|
trouble-nvim
|
||||||
|
vim-illuminate
|
||||||
|
vim-startuptime
|
||||||
|
which-key-nvim
|
||||||
|
fzf-lua
|
||||||
|
snacks-nvim
|
||||||
|
{
|
||||||
|
name = "lazydev.nvim";
|
||||||
|
path = lazydev-nvim;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "blink.cmp";
|
||||||
|
path = blink-cmp;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "LuaSnip";
|
||||||
|
path = luasnip;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mini.ai";
|
||||||
|
path = mini-nvim;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mini.bufremove";
|
||||||
|
path = mini-nvim;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mini.comment";
|
||||||
|
path = mini-nvim;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mini.indentscope";
|
||||||
|
path = mini-nvim;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mini.pairs";
|
||||||
|
path = mini-nvim;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mini.surround";
|
||||||
|
path = mini-nvim;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mini.icons";
|
||||||
|
path = mini-icons;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "grug-far.nvim";
|
||||||
|
path = grug-far-nvim;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
mkEntryFromDrv = drv:
|
||||||
|
if lib.isDerivation drv
|
||||||
|
then {
|
||||||
|
name = "${lib.getName drv}";
|
||||||
|
path = drv;
|
||||||
|
}
|
||||||
|
else drv;
|
||||||
|
lazyPath = pkgs.linkFarm "lazy-plugins" (builtins.map mkEntryFromDrv plugins);
|
||||||
|
in
|
||||||
|
''
|
||||||
|
require("lazy").setup({
|
||||||
|
defaults = {
|
||||||
|
lazy = true,
|
||||||
|
},
|
||||||
|
dev = {
|
||||||
|
-- reuse files from pkgs.vimPlugins.*
|
||||||
|
path = "${lazyPath}",
|
||||||
|
patterns = { "." },
|
||||||
|
-- fallback to download
|
||||||
|
fallback = true,
|
||||||
|
},
|
||||||
|
rocks = {
|
||||||
|
enabled = false,
|
||||||
|
hererocks = false,
|
||||||
|
},
|
||||||
|
spec = {
|
||||||
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
|
-- The following configs are needed for fixing lazyvim on nix
|
||||||
|
-- disable mason.nvim, use programs.neovim.extraPackages
|
||||||
|
{ "mason-org/mason-lspconfig.nvim", enabled = false },
|
||||||
|
{ "mason-org/mason.nvim", enabled = false },
|
||||||
|
-- import/override with your plugins
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.go" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.clangd" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.rust" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.tailwind" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.java" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.json" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.toml" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.docker" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.kotlin" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.dart" },
|
||||||
|
{ import = "plugins" },
|
||||||
|
-- treesitter handled by xdg.configFile."nvim/parser", put this line at the end of spec to clear ensure_installed
|
||||||
|
{ "nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = function(_, opts)
|
||||||
|
opts.ensure_installed = {}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# https://github.com/nvim-treesitter/nvim-treesitter#i-get-query-error-invalid-node-type-at-position
|
||||||
|
xdg.configFile."nvim/parser".source =
|
||||||
|
let
|
||||||
|
parsers = pkgs.symlinkJoin {
|
||||||
|
name = "treesitter-parsers";
|
||||||
|
paths =
|
||||||
|
(pkgs.vimPlugins.nvim-treesitter.withPlugins (plugins:
|
||||||
|
with plugins; [
|
||||||
|
bash
|
||||||
|
c
|
||||||
|
go
|
||||||
|
lua
|
||||||
|
rust
|
||||||
|
java
|
||||||
|
dart
|
||||||
|
kotlin
|
||||||
|
python
|
||||||
|
javascript
|
||||||
|
typescript
|
||||||
|
tsx
|
||||||
|
vue
|
||||||
|
html
|
||||||
|
css
|
||||||
|
json
|
||||||
|
yaml
|
||||||
|
toml
|
||||||
|
dockerfile
|
||||||
|
])).dependencies;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
"${parsers}/parser";
|
||||||
|
|
||||||
|
# Normal LazyVim config here, see https://github.com/LazyVim/starter/tree/main/lua
|
||||||
|
xdg.configFile."nvim/lua".source = ./lua;
|
||||||
}
|
}
|
||||||
|
|||||||
8
home/nvim/lua/config/autocmds.lua
Normal file
8
home/nvim/lua/config/autocmds.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
-- Autocmds are automatically loaded on the VeryLazy event
|
||||||
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||||
|
--
|
||||||
|
-- Add any additional autocmds here
|
||||||
|
-- with `vim.api.nvim_create_autocmd`
|
||||||
|
--
|
||||||
|
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
|
||||||
|
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
|
||||||
53
home/nvim/lua/config/lazy.lua
Normal file
53
home/nvim/lua/config/lazy.lua
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
|
if vim.v.shell_error ~= 0 then
|
||||||
|
vim.api.nvim_echo({
|
||||||
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
|
{ out, "WarningMsg" },
|
||||||
|
{ "\nPress any key to exit..." },
|
||||||
|
}, true, {})
|
||||||
|
vim.fn.getchar()
|
||||||
|
os.exit(1)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require("lazy").setup({
|
||||||
|
spec = {
|
||||||
|
-- add LazyVim and import its plugins
|
||||||
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
|
-- import/override with your plugins
|
||||||
|
{ import = "plugins" },
|
||||||
|
},
|
||||||
|
defaults = {
|
||||||
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
|
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||||
|
lazy = false,
|
||||||
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||||
|
-- have outdated releases, which may break your Neovim install.
|
||||||
|
version = false, -- always use the latest git commit
|
||||||
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
|
},
|
||||||
|
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||||
|
checker = {
|
||||||
|
enabled = true, -- check for plugin updates periodically
|
||||||
|
notify = false, -- notify on update
|
||||||
|
}, -- automatically check for plugin updates
|
||||||
|
performance = {
|
||||||
|
rtp = {
|
||||||
|
-- disable some rtp plugins
|
||||||
|
disabled_plugins = {
|
||||||
|
"gzip",
|
||||||
|
-- "matchit",
|
||||||
|
-- "matchparen",
|
||||||
|
-- "netrwPlugin",
|
||||||
|
"tarPlugin",
|
||||||
|
"tohtml",
|
||||||
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
28
home/nvim/lua/plugins/copilot.lua
Normal file
28
home/nvim/lua/plugins/copilot.lua
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"zbirenbaum/copilot.lua",
|
||||||
|
cmd = "Copilot",
|
||||||
|
event = "InsertEnter",
|
||||||
|
config = function()
|
||||||
|
require("copilot").setup({
|
||||||
|
suggestion = { enabled = true, auto_trigger = true },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"CopilotC-Nvim/CopilotChat.nvim",
|
||||||
|
branch = "main",
|
||||||
|
dependencies = {
|
||||||
|
{ "zbirenbaum/copilot.lua" },
|
||||||
|
{ "nvim-lua/plenary.nvim" },
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
debug = false,
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<leader>cc", "<cmd>CopilotChatToggle<cr>", desc = "CopilotChat - Toggle" },
|
||||||
|
{ "<leader>ce", "<cmd>CopilotChatExplain<cr>", mode = "v", desc = "CopilotChat - Explain code" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
30
home/nvim/lua/plugins/treesitter.lua
Normal file
30
home/nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = {
|
||||||
|
treesitter = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
|
opts = {
|
||||||
|
ensure_installed = {},
|
||||||
|
auto_install = false,
|
||||||
|
highlight = { enable = true },
|
||||||
|
indent = { enable = true },
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
|
init_selection = "gnn",
|
||||||
|
node_incremental = "grn",
|
||||||
|
scope_incremental = "grc",
|
||||||
|
node_decremental = "grm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
require("nvim-treesitter.configs").setup(opts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -3,10 +3,10 @@
|
|||||||
force = true;
|
force = true;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
source = pkgs.fetchFromGitHub {
|
source = pkgs.fetchFromGitHub {
|
||||||
hash = "sha256-GyiOlTr1Nw2ANTE7/fdyrPQkvRFWOyal3oAcDvsqF5A=";
|
hash = "sha256-s3r8cdEliiPnKWs64Wgi0rC9Ngl1mkIrLnr2tIcyXWw=";
|
||||||
owner = "iDvel";
|
owner = "iDvel";
|
||||||
repo = "rime-ice";
|
repo = "rime-ice";
|
||||||
tag = "2025.12.08";
|
tag = "2025.04.06";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
5
home/wayland/lxqt-policykit.nix
Normal file
5
home/wayland/lxqt-policykit.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
lxqt.lxqt-policykit
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
polkit_gnome
|
|
||||||
];
|
|
||||||
|
|
||||||
systemd.user.services.polkit-gnome-authentication-agent = {
|
|
||||||
Unit = {
|
|
||||||
Description = "PolicyKit GNOME Authentication Agent";
|
|
||||||
PartOf = ["graphical-session.target"];
|
|
||||||
After = ["graphical-session.target"];
|
|
||||||
};
|
|
||||||
Service = {
|
|
||||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
||||||
Restart = "on-failure";
|
|
||||||
Slice = "session.slice";
|
|
||||||
};
|
|
||||||
Install = {
|
|
||||||
WantedBy = ["graphical-session.target"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
5
home/wayland/swayosd.nix
Normal file
5
home/wayland/swayosd.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
swayosd
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -6,6 +6,8 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = with inputs; [
|
imports = with inputs; [
|
||||||
./${hostname}
|
./${hostname}
|
||||||
|
# chaotic.nixosModules.default
|
||||||
|
# disko.nixosModules.disko
|
||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,6 +6,12 @@
|
|||||||
# See: https://nixos.wiki/wiki/AMD_GPU
|
# See: https://nixos.wiki/wiki/AMD_GPU
|
||||||
GPU-AMD = true;
|
GPU-AMD = true;
|
||||||
|
|
||||||
|
# See: https://nixos.wiki/wiki/Nvidia
|
||||||
|
GPU-Nvidia = false;
|
||||||
|
|
||||||
|
# See: https://nixos.wiki/wiki/Intel_Graphics
|
||||||
|
GPU-Intel = false;
|
||||||
|
|
||||||
# See: https://github.com/linrunner/TLP
|
# See: https://github.com/linrunner/TLP
|
||||||
Power-control = "TLP"; ## Possible options: PPD ; TLP
|
Power-control = "TLP"; ## Possible options: PPD ; TLP
|
||||||
|
|
||||||
@@ -16,7 +22,7 @@
|
|||||||
|
|
||||||
# See: https://search.nixos.org/options?show=boot.kernelPackages
|
# See: https://search.nixos.org/options?show=boot.kernelPackages
|
||||||
# See: https://www.nyx.chaotic.cx/#using-sched-ext-schedulers
|
# See: https://www.nyx.chaotic.cx/#using-sched-ext-schedulers
|
||||||
KernelPackages = "linuxPackages_lqx";
|
KernelPackages = "linuxPackages_zen";
|
||||||
|
|
||||||
# See: https://mynixos.com/nixpkgs/option/system.stateVersion
|
# See: https://mynixos.com/nixpkgs/option/system.stateVersion
|
||||||
StateVersion = "26.05";
|
StateVersion = "26.05";
|
||||||
@@ -43,6 +49,7 @@
|
|||||||
# See: https://wiki.hyprland.org/Configuring/Monitors
|
# See: https://wiki.hyprland.org/Configuring/Monitors
|
||||||
MonitorSettings = "
|
MonitorSettings = "
|
||||||
monitor=eDP-1, 2560x1600@165, 0x0, 1.25
|
monitor=eDP-1, 2560x1600@165, 0x0, 1.25
|
||||||
|
monitor=DP-1, 2560x1440@144, 2560x0, 1.25
|
||||||
";
|
";
|
||||||
|
|
||||||
# -------------------- Software --------------------
|
# -------------------- Software --------------------
|
||||||
@@ -52,4 +59,7 @@
|
|||||||
# See: https://github.com/qemu/qemu
|
# See: https://github.com/qemu/qemu
|
||||||
# See: https://github.com/virt-manager/virt-manager
|
# See: https://github.com/virt-manager/virt-manager
|
||||||
QEMU-VM-Use-Case = true;
|
QEMU-VM-Use-Case = true;
|
||||||
|
|
||||||
|
# See: https://github.com/dbeaver/dbeaver
|
||||||
|
Database-Use-Case = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,12 @@
|
|||||||
# See: https://nixos.wiki/wiki/AMD_GPU
|
# See: https://nixos.wiki/wiki/AMD_GPU
|
||||||
GPU-AMD = false;
|
GPU-AMD = false;
|
||||||
|
|
||||||
|
# See: https://nixos.wiki/wiki/Nvidia
|
||||||
|
GPU-Nvidia = false;
|
||||||
|
|
||||||
|
# See: https://nixos.wiki/wiki/Intel_Graphics
|
||||||
|
GPU-Intel = false;
|
||||||
|
|
||||||
# See: https://github.com/linrunner/TLP
|
# See: https://github.com/linrunner/TLP
|
||||||
Power-control = "PPD"; ## Possible options: PPD ; TLP
|
Power-control = "PPD"; ## Possible options: PPD ; TLP
|
||||||
|
|
||||||
@@ -50,4 +56,7 @@
|
|||||||
# See: https://github.com/qemu/qemu
|
# See: https://github.com/qemu/qemu
|
||||||
# See: https://github.com/virt-manager/virt-manager
|
# See: https://github.com/virt-manager/virt-manager
|
||||||
QEMU-VM-Use-Case = false;
|
QEMU-VM-Use-Case = false;
|
||||||
|
|
||||||
|
# See: https://github.com/dbeaver/dbeaver
|
||||||
|
Database-Use-Case = true;
|
||||||
}
|
}
|
||||||
|
|||||||
20
modules/services/mysql.nix
Normal file
20
modules/services/mysql.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ hostname, lib, pkgs, ... }:
|
||||||
|
with lib; let
|
||||||
|
inherit (import ../../hosts/${hostname}/env.nix) Database-Use-Case;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = mkIf Database-Use-Case {
|
||||||
|
services.mysql = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.mysql84;
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.mysql = {
|
||||||
|
wantedBy = lib.mkForce [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.dbeaver-bin
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
{ hostname, lib, pkgs, ... }:
|
{ hostname, lib, pkgs, ... }:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
inherit (import ../../hosts/${hostname}/env.nix) Power-control;
|
inherit (import ../../hosts/${hostname}/env.nix) Power-control;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -8,18 +7,17 @@ in
|
|||||||
|
|
||||||
services.tlp = lib.mkIf (Power-control == "TLP") {
|
services.tlp = lib.mkIf (Power-control == "TLP") {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "powersave";
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
|
|
||||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "powersave";
|
||||||
|
|
||||||
CPU_MIN_PERF_ON_AC = 0;
|
CPU_MIN_PERF_ON_AC = 0;
|
||||||
CPU_MAX_PERF_ON_AC = 100;
|
CPU_MAX_PERF_ON_AC = 100;
|
||||||
CPU_MIN_PERF_ON_BAT = 0;
|
CPU_MIN_PERF_ON_BAT = 0;
|
||||||
CPU_MAX_PERF_ON_BAT = 100;
|
CPU_MAX_PERF_ON_BAT = 85;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -3,5 +3,10 @@
|
|||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
gvfs.enable = true;
|
gvfs.enable = true;
|
||||||
|
scx = {
|
||||||
|
enable = true;
|
||||||
|
scheduler = "scx_lavd";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,9 +30,9 @@ in
|
|||||||
"wdat_wdt"
|
"wdat_wdt"
|
||||||
];
|
];
|
||||||
consoleLogLevel = 2; # Only errors and warnings are displayed
|
consoleLogLevel = 2; # Only errors and warnings are displayed
|
||||||
extraModulePackages = [
|
# extraModulePackages = [
|
||||||
config.boot.kernelPackages.v4l2loopback # v4l2loopback is for OBS Virtual Cam Support
|
# config.boot.kernelPackages.v4l2loopback # v4l2loopback is for OBS Virtual Cam Support
|
||||||
];
|
# ];
|
||||||
initrd = {
|
initrd = {
|
||||||
compressor = "zstd";
|
compressor = "zstd";
|
||||||
compressorArgs = ["-T0" "-19" "--long"];
|
compressorArgs = ["-T0" "-19" "--long"];
|
||||||
@@ -43,9 +43,9 @@ in
|
|||||||
"kernel.core_pattern" = "|/bin/false"; # Disable automatic core dumps
|
"kernel.core_pattern" = "|/bin/false"; # Disable automatic core dumps
|
||||||
"vm.max_map_count" = 2147483642; # Needed For Some Steam Games
|
"vm.max_map_count" = 2147483642; # Needed For Some Steam Games
|
||||||
};
|
};
|
||||||
kernelModules = ["v4l2loopback"]; # v4l2loopback is for OBS Virtual Cam Support
|
# kernelModules = ["v4l2loopback"]; # v4l2loopback is for OBS Virtual Cam Support
|
||||||
kernelPackages = pkgs.${KernelPackages};
|
kernelPackages = pkgs.${KernelPackages};
|
||||||
kernelParams = ["8250.nr_uarts=0" "8250.skip_txen_test=1" "i8042.nopnp" "amd_pstate=active" "audit=0" "console=tty1" "erst_disable" "nmi_watchdog=0" "noatime" "nowatchdog"];
|
kernelParams = ["audit=0" "console=tty1" "erst_disable" "nmi_watchdog=0" "noatime" "nowatchdog"];
|
||||||
loader = {
|
loader = {
|
||||||
grub = mkIf (strings.hasInfix "grub" BootLoader) {
|
grub = mkIf (strings.hasInfix "grub" BootLoader) {
|
||||||
configurationLimit = 50;
|
configurationLimit = 50;
|
||||||
@@ -101,13 +101,15 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
dhcpcd.extraConfig = "nohook resolv.conf";
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
hostName = hostname;
|
hostName = hostname;
|
||||||
nameservers = ["8.8.8.8" "1.1.1.1"];
|
nameservers = ["127.0.0.1" "::1"];
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
dns = "none";
|
dns = "none";
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
resolvconf.enable = mkForce false;
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
|
|||||||
@@ -52,9 +52,7 @@ in {
|
|||||||
curl
|
curl
|
||||||
wget
|
wget
|
||||||
aria2
|
aria2
|
||||||
syncthing
|
|
||||||
yt-dlp
|
yt-dlp
|
||||||
openssl
|
|
||||||
|
|
||||||
#Android
|
#Android
|
||||||
xxd
|
xxd
|
||||||
@@ -64,14 +62,6 @@ in {
|
|||||||
android-tools
|
android-tools
|
||||||
payload-dumper-go
|
payload-dumper-go
|
||||||
|
|
||||||
# Embedded
|
|
||||||
scons
|
|
||||||
openocd
|
|
||||||
stlink
|
|
||||||
stlink-tool
|
|
||||||
gcc-arm-embedded
|
|
||||||
tio
|
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
tree
|
tree
|
||||||
libnotify
|
libnotify
|
||||||
@@ -79,9 +69,6 @@ in {
|
|||||||
lm_sensors
|
lm_sensors
|
||||||
usbutils
|
usbutils
|
||||||
libsecret
|
libsecret
|
||||||
lsof
|
|
||||||
nano
|
|
||||||
zed-editor
|
|
||||||
|
|
||||||
# Niri
|
# Niri
|
||||||
wlr-randr
|
wlr-randr
|
||||||
@@ -105,14 +92,7 @@ in {
|
|||||||
pnpm
|
pnpm
|
||||||
bun
|
bun
|
||||||
nodejs_24
|
nodejs_24
|
||||||
|
gemini-cli
|
||||||
# Agent
|
|
||||||
opencode
|
|
||||||
gemini-cli-bin
|
|
||||||
|
|
||||||
# Blog
|
|
||||||
zola
|
|
||||||
pagefind
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -31,11 +31,13 @@ with lib; {
|
|||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.garnix.io" # See https://github.com/daeuniverse/flake.nix
|
"https://cache.garnix.io" # See https://github.com/daeuniverse/flake.nix
|
||||||
"https://cache.nixos.org" # See https://nixos.wiki/wiki/Binary_Cache
|
"https://cache.nixos.org" # See https://nixos.wiki/wiki/Binary_Cache
|
||||||
|
# "https://chaotic-nyx.cachix.org" # See https://github.com/chaotic-cx/nyx
|
||||||
"https://nix-community.cachix.org" # See https://nix-community.org/cache/
|
"https://nix-community.cachix.org" # See https://nix-community.org/cache/
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
|
# "chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8="
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user