nix formating, sops secrets migration, vps-init auto update
This commit is contained in:
parent
db022df80b
commit
fcee389f8e
17 changed files with 950 additions and 818 deletions
|
|
@ -1,67 +1,66 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
wayland.windowManager.niri.enable = true;
|
||||
xdg.configFile."niri/config.kdl".source = ./mods/niri.kdl;
|
||||
systemd.user.sessionVariables.QT_QPA_PLATFORMTHEME = "gtk3";
|
||||
{ config, pkgs, ... }: {
|
||||
gtk = {
|
||||
enable = true;
|
||||
colorScheme = "dark";
|
||||
enable = true;
|
||||
};
|
||||
programs = {
|
||||
noctalia = {
|
||||
home = {
|
||||
homeDirectory = "/home/bogale";
|
||||
packages = with pkgs; [
|
||||
alacritty
|
||||
bibata-cursors
|
||||
bluez
|
||||
brave-origin
|
||||
ffmpeg-headless
|
||||
heroic
|
||||
libqalculate
|
||||
libreoffice
|
||||
llama-cpp-vulkan
|
||||
mpv
|
||||
nvtopPackages.full
|
||||
qbittorrent
|
||||
telegram-desktop
|
||||
thunderbird
|
||||
];
|
||||
pointerCursor = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
settings = ./mods/noctalia.toml;
|
||||
gtk.enable = true;
|
||||
name = "Bibata-Modern-Amber";
|
||||
package = pkgs.bibata-cursors;
|
||||
size = 24;
|
||||
x11.enable = true;
|
||||
};
|
||||
username = "bogale";
|
||||
};
|
||||
imports = [ ./common.nix ];
|
||||
programs = {
|
||||
bash = {
|
||||
sessionVariables.TTS_MODEL = "ggml-org/Qwen3-TTS-12Hz-1.7B-Base-GGUF";
|
||||
initExtra = ''
|
||||
session() {
|
||||
sudo machinectl shell root@
|
||||
}
|
||||
'';
|
||||
sessionVariables.TTS_MODEL = "ggml-org/Qwen3-TTS-12Hz-1.7B-Base-GGUF";
|
||||
};
|
||||
noctalia = {
|
||||
enable = true;
|
||||
settings = ./mods/noctalia.toml;
|
||||
systemd.enable = true;
|
||||
};
|
||||
};
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
latitude = 52.0;
|
||||
longitude = 113.5;
|
||||
temperature = {
|
||||
day = 6000;
|
||||
night = 3000;
|
||||
};
|
||||
settings.general = {
|
||||
brightness-day = 0.9;
|
||||
brightness-night = 0.6;
|
||||
};
|
||||
};
|
||||
home = {
|
||||
username = "bogale";
|
||||
homeDirectory = "/home/bogale";
|
||||
pointerCursor = {
|
||||
size = 24;
|
||||
enable = true;
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
name = "Bibata-Modern-Amber";
|
||||
package = pkgs.bibata-cursors;
|
||||
temperature = {
|
||||
day = 6000;
|
||||
night = 3000;
|
||||
};
|
||||
packages = with pkgs; [
|
||||
mpv
|
||||
bluez
|
||||
heroic
|
||||
alacritty
|
||||
libreoffice
|
||||
qbittorrent
|
||||
thunderbird
|
||||
brave-origin
|
||||
libqalculate
|
||||
bibata-cursors
|
||||
ffmpeg-headless
|
||||
llama-cpp-vulkan
|
||||
telegram-desktop
|
||||
nvtopPackages.amd
|
||||
];
|
||||
};
|
||||
systemd.user.sessionVariables.QT_QPA_PLATFORMTHEME = "gtk3";
|
||||
wayland.windowManager.niri.enable = true;
|
||||
xdg.configFile."niri/config.kdl".source = ./mods/niri.kdl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,43 +1,45 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.ssh-agent.enable = true;
|
||||
{ config, pkgs, ... }: {
|
||||
home = {
|
||||
packages = [
|
||||
pkgs.ncdu
|
||||
pkgs.yt-dlp
|
||||
];
|
||||
stateVersion = "26.11";
|
||||
packages = with pkgs; [ ncdu yt-dlp ];
|
||||
};
|
||||
programs = {
|
||||
ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
settings."*".SetEnv.TERM = "xterm-256color";
|
||||
};
|
||||
bash = {
|
||||
enable = true;
|
||||
shellAliases.la = "ls -lAtr";
|
||||
historyControl = [ "ignoreboth" ];
|
||||
sessionVariables.PROMPT_COMMAND = "history -a";
|
||||
shellAliases.la = "ls -lAtr";
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
init.defaultbranch = "main";
|
||||
user = {
|
||||
name = "bogale";
|
||||
email = "git@bogaledev.ru";
|
||||
name = "bogale";
|
||||
};
|
||||
};
|
||||
};
|
||||
neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
set number
|
||||
autocmd FileType nix set shiftwidth=2 tabstop=2
|
||||
set expandtab
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set number
|
||||
set relativenumber
|
||||
autocmd FileType nix set tabstop=2 shiftwidth=2
|
||||
set shiftwidth=4
|
||||
set tabstop=4
|
||||
'';
|
||||
};
|
||||
ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
settings."*".SetEnv.TERM = "xterm-256color";
|
||||
};
|
||||
};
|
||||
services.ssh-agent.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,54 +1,6 @@
|
|||
include "./noctalia.kdl";
|
||||
gestures { hot-corners { off; }; };
|
||||
hotkey-overlay { skip-at-startup; };
|
||||
screenshot-path "~/Multimedia/Screenshots/%Y-%m-%d_%H-%M-%S.png";
|
||||
window-rule {
|
||||
match app-id="mpv";
|
||||
open-fullscreen true;
|
||||
};
|
||||
cursor {
|
||||
xcursor-size 24;
|
||||
xcursor-theme "Bibata-Modern-Amber";
|
||||
};
|
||||
layout {
|
||||
center-focused-column "always";
|
||||
default-column-width { proportion 0.8; };
|
||||
};
|
||||
window-rule {
|
||||
open-floating false;
|
||||
clip-to-geometry true;
|
||||
geometry-corner-radius 8;
|
||||
};
|
||||
input {
|
||||
touchpad {
|
||||
dwt;
|
||||
tap;
|
||||
natural-scroll;
|
||||
};
|
||||
keyboard {
|
||||
numlock;
|
||||
xkb {
|
||||
layout "us,ru";
|
||||
options "grp:alt_shift_toggle";
|
||||
};
|
||||
};
|
||||
};
|
||||
binds {
|
||||
Mod+T { spawn "alacritty"; };
|
||||
Mod+D { spawn-sh "noctalia msg panel-toggle launcher"; };
|
||||
Mod+E { spawn-sh "noctalia msg panel-toggle session"; };
|
||||
Mod+S { spawn-sh "noctalia msg panel-toggle control-center"; };
|
||||
Mod+Shift+S { spawn-sh "noctalia msg settings-open"; };
|
||||
|
||||
Mod+H { focus-column-left; };
|
||||
Mod+J { focus-window-or-workspace-down; };
|
||||
Mod+K { focus-window-or-workspace-up; };
|
||||
Mod+L { focus-column-right; };
|
||||
Mod+Shift+H { move-column-left; };
|
||||
Mod+Shift+J { move-window-down-or-to-workspace-down; };
|
||||
Mod+Shift+K { move-window-up-or-to-workspace-up; };
|
||||
Mod+Shift+L { move-column-right; };
|
||||
|
||||
Alt+Print { screenshot-window; };
|
||||
Ctrl+Print { screenshot-screen; };
|
||||
Mod+Ctrl+H { focus-monitor-left; };
|
||||
Mod+Ctrl+J { focus-monitor-down; };
|
||||
Mod+Ctrl+K { focus-monitor-up; };
|
||||
|
|
@ -57,22 +9,66 @@ binds {
|
|||
Mod+Ctrl+Shift+J { move-column-to-monitor-down; };
|
||||
Mod+Ctrl+Shift+K { move-column-to-monitor-up; };
|
||||
Mod+Ctrl+Shift+L { move-column-to-monitor-right; };
|
||||
|
||||
XF86MonBrightnessUp { spawn-sh "noctalia msg brightness-up"; };
|
||||
XF86MonBrightnessDown { spawn-sh "noctalia msg brightness-down"; };
|
||||
XF86AudioRaiseVolume { spawn-sh "noctalia msg volume-up"; };
|
||||
XF86AudioLowerVolume { spawn-sh "noctalia msg volume-down"; };
|
||||
XF86AudioMute { spawn-sh "noctalia msg volume-mute"; };
|
||||
Shift+XF86AudioRaiseVolume { spawn-sh "noctalia msg mic-volume-up"; };
|
||||
Shift+XF86AudioLowerVolume { spawn-sh "noctalia msg mic-volume-down"; };
|
||||
Shift+XF86AudioMute { spawn-sh "noctalia msg mic-mute"; };
|
||||
|
||||
Mod+D { spawn-sh "noctalia msg panel-toggle launcher"; };
|
||||
Mod+E { spawn-sh "noctalia msg panel-toggle session"; };
|
||||
Mod+F { maximize-column; };
|
||||
Mod+H { focus-column-left; };
|
||||
Mod+J { focus-window-or-workspace-down; };
|
||||
Mod+K { focus-window-or-workspace-up; };
|
||||
Mod+L { focus-column-right; };
|
||||
Mod+O { toggle-overview; };
|
||||
Mod+Q { close-window; };
|
||||
Mod+F { maximize-column; };
|
||||
Mod+S { spawn-sh "noctalia msg panel-toggle control-center"; };
|
||||
Mod+Shift+F { fullscreen-window; };
|
||||
Mod+Shift+H { move-column-left; };
|
||||
Mod+Shift+J { move-window-down-or-to-workspace-down; };
|
||||
Mod+Shift+K { move-window-up-or-to-workspace-up; };
|
||||
Mod+Shift+L { move-column-right; };
|
||||
Mod+Shift+P { power-off-monitors; };
|
||||
Mod+Shift+S { spawn-sh "noctalia msg settings-open"; };
|
||||
Mod+T { spawn "alacritty"; };
|
||||
Print { screenshot; };
|
||||
Alt+Print { screenshot-window; };
|
||||
Ctrl+Print { screenshot-screen; };
|
||||
Shift+XF86AudioLowerVolume { spawn-sh "noctalia msg mic-volume-down"; };
|
||||
Shift+XF86AudioMute { spawn-sh "noctalia msg mic-mute"; };
|
||||
Shift+XF86AudioRaiseVolume { spawn-sh "noctalia msg mic-volume-up"; };
|
||||
XF86AudioLowerVolume { spawn-sh "noctalia msg volume-down"; };
|
||||
XF86AudioMute { spawn-sh "noctalia msg volume-mute"; };
|
||||
XF86AudioRaiseVolume { spawn-sh "noctalia msg volume-up"; };
|
||||
XF86MonBrightnessDown { spawn-sh "noctalia msg brightness-down"; };
|
||||
XF86MonBrightnessUp { spawn-sh "noctalia msg brightness-up"; };
|
||||
};
|
||||
cursor {
|
||||
xcursor-size 24;
|
||||
xcursor-theme "Bibata-Modern-Amber";
|
||||
};
|
||||
gestures { hot-corners { off; }; };
|
||||
hotkey-overlay { skip-at-startup; };
|
||||
include "./noctalia.kdl";
|
||||
input {
|
||||
keyboard {
|
||||
numlock;
|
||||
xkb {
|
||||
layout "us,ru";
|
||||
options "grp:alt_shift_toggle";
|
||||
};
|
||||
};
|
||||
touchpad {
|
||||
dwt;
|
||||
natural-scroll;
|
||||
tap;
|
||||
};
|
||||
};
|
||||
layout {
|
||||
center-focused-column "always";
|
||||
default-column-width { proportion 0.8; };
|
||||
};
|
||||
screenshot-path "~/Multimedia/Screenshots/%Y-%m-%d_%H-%M-%S.png";
|
||||
window-rule {
|
||||
clip-to-geometry true;
|
||||
geometry-corner-radius 8;
|
||||
open-floating false;
|
||||
};
|
||||
window-rule {
|
||||
match app-id="mpv";
|
||||
open-fullscreen true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,112 +1,43 @@
|
|||
[bar]
|
||||
order = [ "default" ]
|
||||
|
||||
[bar.default]
|
||||
center = [ "workspaces" ]
|
||||
enabled = true
|
||||
end = [ "tray", "keyboard_layout", "battery", "notifications" ]
|
||||
margin_ends = 0
|
||||
start = [ "date", "clock", "sysmon" ]
|
||||
widget_spacing = 12
|
||||
|
||||
[bar.default.dead_zone.actions]
|
||||
right = "none"
|
||||
|
||||
[control_center]
|
||||
hidden_tabs = [ "media", "audio", "monitor", "notifications" ]
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "wifi"
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "bluetooth"
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "caffeine"
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "notification"
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "power_profile"
|
||||
|
||||
[desktop_widgets]
|
||||
enabled = false
|
||||
schema_version = 2
|
||||
widget_order = []
|
||||
|
||||
[desktop_widgets.grid]
|
||||
cell_size = 16
|
||||
major_interval = 4
|
||||
visible = true
|
||||
|
||||
[desktop_widgets.widget]
|
||||
|
||||
[idle]
|
||||
behavior_order = [ "screen-off", "lock", "lock-and-suspend" ]
|
||||
|
||||
[idle.behavior.lock]
|
||||
action = "lock"
|
||||
enabled = true
|
||||
timeout = 600.0
|
||||
|
||||
[idle.behavior.lock-and-suspend]
|
||||
action = "lock_and_suspend"
|
||||
enabled = true
|
||||
timeout = 900.0
|
||||
|
||||
[idle.behavior.screen-off]
|
||||
action = "screen_off"
|
||||
enabled = true
|
||||
timeout = 300.0
|
||||
|
||||
[location]
|
||||
address = "Chita"
|
||||
|
||||
[lockscreen]
|
||||
fingerprint = false
|
||||
|
||||
[lockscreen_widgets]
|
||||
enabled = false
|
||||
schema_version = 2
|
||||
widget_order = [ "lockscreen-login-box@eDP-1" ]
|
||||
|
||||
[lockscreen_widgets.grid]
|
||||
cell_size = 16
|
||||
major_interval = 4
|
||||
visible = true
|
||||
|
||||
[lockscreen_widgets.widget."lockscreen-login-box@eDP-1"]
|
||||
box_height = 196.0
|
||||
box_width = 810.0
|
||||
cx = 960.0
|
||||
cy = 898.0
|
||||
output = "eDP-1"
|
||||
placement_height = 1080.0
|
||||
placement_width = 1920.0
|
||||
rotation = 0.0
|
||||
type = "login_box"
|
||||
|
||||
[lockscreen_widgets.widget."lockscreen-login-box@eDP-1".settings]
|
||||
background_color = "surface_variant"
|
||||
background_opacity = 0.88
|
||||
background_radius = 12.0
|
||||
center_password_text = false
|
||||
input_opacity = 1.0
|
||||
input_radius = 6.0
|
||||
layout = "regular"
|
||||
show_caps_lock = true
|
||||
show_keyboard_layout = true
|
||||
show_login_button = true
|
||||
show_media = true
|
||||
show_session_buttons = true
|
||||
show_unlock_hint = true
|
||||
show_weather = true
|
||||
|
||||
[notification]
|
||||
history_retention_hours = 8
|
||||
layer = "overlay"
|
||||
|
||||
[osd.kinds]
|
||||
bluetooth = false
|
||||
caffeine = false
|
||||
|
|
@ -117,32 +48,26 @@ media = false
|
|||
nightlight = false
|
||||
power_profile = false
|
||||
wifi = false
|
||||
|
||||
[shell]
|
||||
clipboard_enabled = false
|
||||
launch_apps_as_systemd_services = true
|
||||
screen_time_enabled = true
|
||||
|
||||
[shell.greeter_sync]
|
||||
auto_sync = true
|
||||
|
||||
[shell.screen_corners]
|
||||
enabled = true
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "lock"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
shortcut = "1"
|
||||
variant = "default"
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "lock_and_suspend"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
shortcut = "2"
|
||||
variant = "default"
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "command"
|
||||
command = "systemctl hibernate"
|
||||
|
|
@ -152,40 +77,26 @@ screen_time_enabled = true
|
|||
label = "Гибернация"
|
||||
shortcut = "3"
|
||||
variant = "default"
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "reboot"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
shortcut = "4"
|
||||
variant = "default"
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "shutdown"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
shortcut = "5"
|
||||
variant = "default"
|
||||
|
||||
[theme]
|
||||
builtin = "Tokyo-Night"
|
||||
|
||||
[theme.templates]
|
||||
builtin_ids = [ "alacritty", "gtk3", "gtk4", "niri" ]
|
||||
enable_community_templates = false
|
||||
|
||||
[wallpaper]
|
||||
directory = "/home/bogale/Multimedia/Wallpapers"
|
||||
transition_on_startup = true
|
||||
|
||||
[wallpaper.default]
|
||||
path = "/home/bogale/Multimedia/Wallpapers/main.jpg"
|
||||
|
||||
[wallpaper.last]
|
||||
path = "/home/bogale/Multimedia/Wallpapers/main.jpg"
|
||||
|
||||
[wallpaper.monitors.eDP-1]
|
||||
path = "/home/bogale/Multimedia/Wallpapers/main.jpg"
|
||||
|
||||
[weather]
|
||||
refresh_minutes = 10
|
||||
|
|
|
|||
|
|
@ -1,49 +1,48 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
{ config, pkgs, ... }: {
|
||||
home = {
|
||||
username = "root";
|
||||
homeDirectory = "/root";
|
||||
username = "root";
|
||||
};
|
||||
imports = [ ./common.nix ];
|
||||
programs = {
|
||||
bash = {
|
||||
shellAliases.dd = "dd bs=1M conv=fsync status=progress";
|
||||
sessionVariables.SOPS_AGE_KEY_FILE = "/var/lib/sops-nix/key.txt";
|
||||
initExtra = ''
|
||||
session() {
|
||||
systemd-run -tGM bogale@ --user --wait $SHELL
|
||||
}
|
||||
awg-gen() {
|
||||
PRIVATE=$(awg genkey)
|
||||
echo "private: $PRIVATE"
|
||||
printf "public: "
|
||||
echo $PRIVATE | awg pubkey
|
||||
echo "private: $PRIVATE"
|
||||
printf "preshared: "
|
||||
awg genpsk
|
||||
}
|
||||
session() {
|
||||
systemd-run -tGM bogale@ --user --wait $SHELL
|
||||
}
|
||||
'';
|
||||
sessionVariables.SOPS_AGE_KEY_FILE = config.sops.age.keyFile;
|
||||
shellAliases.dd = "dd bs=1M conv=fsync status=progress";
|
||||
};
|
||||
tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
enable = true;
|
||||
escapeTime = 0;
|
||||
keyMode = "vi";
|
||||
terminal = "screen-256color";
|
||||
extraConfig = ''
|
||||
unbind C-b
|
||||
set -g mouse on
|
||||
set -g prefix M-f
|
||||
bind f send-prefix
|
||||
bind h select-pane -L
|
||||
bind i split-window -v
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
bind i split-window -v
|
||||
bind u split-window -h
|
||||
set -g mouse on
|
||||
set -g prefix M-f
|
||||
set -s set-clipboard external
|
||||
set-option -g focus-events on
|
||||
set-option -a terminal-features "xterm-256color:RGB"
|
||||
set-option -g focus-events on
|
||||
unbind C-b
|
||||
'';
|
||||
keyMode = "vi";
|
||||
terminal = "screen-256color";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue