uppdate form working nixos

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-10-12 18:15:38 +03:00
1 parent 04a3fdac28
commit 030e97e2fe
71 files changed
+1149 -97

No files matched your search

Regular → Executable
+4
View File
@@ -23,7 +23,11 @@ in
vesktop # Discord client with working screen sharing on Wayland
telegram-desktop
file-roller
teamspeak6-client
loupe # image viewer
zenity
procps
networkmanager-openvpn
];
};
}
Regular → Executable
View File
File mode changed.
Regular → Executable
View File
File mode changed.
Regular → Executable
View File
File mode changed.
+3 -2
View File
@@ -17,7 +17,7 @@ let
kbLayout = lib.concatStringsSep "," osConfig.my.locale.keyboardLayouts;
kbOptions = lib.concatStringsSep "," osConfig.my.locale.keyboardOptions;
terminal = "wezterm";
fileManager = "nautilus";
fileManager = "dolphin";
cursorSize = if cursor.enable then cursor.size else 24;
cursorTheme = if cursor.enable then cursor.name else "";
};
@@ -58,7 +58,8 @@ in
grim
slurp
wl-clipboard
nautilus
kdePackages.dolphin
kdePackages.dolphin-plugins
];
};
}
Regular → Executable
View File
File mode changed.
+126 -61
View File
@@ -8,13 +8,45 @@ local nix = require("nixvars")
-- Any output, native mode, placed automatically. Use mode = "highrr" to prefer
-- the highest refresh rate instead.
hl.env("AQ_DRM_DEVICES", "/dev/dri/card1:/dev/dri/card0")
hl.monitor({
output = "",
mode = "preferred",
position = "auto",
scale = "auto",
output = "DP-1",
mode = "preferred",
position = "0x0",
scale = "1",
bitdepth = 10,
supports_wide_color = 1,
supports_hdr = 0,
sdrbrightness = "1.25",
sdrsaturation = "1.2",
vrr = 1,
cm = "auto",
sdr_min_luminance = 0,
sdr_max_luminance = 200,
-- icc = "/home/faumaray/Documents/ICC Profile_20240726/CxxG5xT.icm",
sdr_eotf = "gamma22",
})
-- monitor = DP-2, preferred, -2560x0, 1, bitdepth, 10, vrr, 1, icc, /home/faumaray/Documents/ICC Profile_20240726/ASUS_Display_sRGB.icc
hl.monitor({
output = "DP-2",
mode = "2560x1440@144",
position = "-2560x0",
-- position = -1440x0
scale = "1",
-- transform = 1
bitdepth = 10,
supports_wide_color = 1,
supports_hdr = 0,
-- sdrbrightness = 1.0,
-- sdrsaturation = 1.1,
vrr = 1,
sdr_eotf = "gamma22",
cm = "auto",
-- icc = "/home/faumaray/Documents/ICC Profile_20240726/ASUS_Display_sRGB.icm",
-- sdr_min_luminance = 0,
-- sdr_max_luminance = 50
})
-------------------------------
---- ENVIRONMENT VARIABLES ----
-------------------------------
@@ -22,7 +54,7 @@ hl.monitor({
hl.env("XCURSOR_SIZE", tostring(nix.cursorSize))
hl.env("HYPRCURSOR_SIZE", tostring(nix.cursorSize))
if nix.cursorTheme ~= "" then
hl.env("XCURSOR_THEME", nix.cursorTheme)
hl.env("XCURSOR_THEME", nix.cursorTheme)
end
-----------------------
@@ -32,67 +64,84 @@ end
-- Gaps, rounding, shadow and blur follow the Noctalia documentation so the
-- shell's bar and panels sit well on top of the windows.
hl.config({
general = {
gaps_in = 5,
gaps_out = 10,
cursor = {
no_hardware_cursors = 0,
},
xwayland = {
force_zero_scaling = false,
create_abstract_socket = true,
},
render = {
send_content_type = true,
direct_scanout = 0,
-- cm_fs_passthrough = 1,
cm_auto_hdr = 0,
cm_sdr_eotf = 1,
},
quirks = {
prefer_hdr = 0,
},
general = {
gaps_in = 5,
gaps_out = 10,
border_size = 2,
border_size = 2,
col = {
-- Catppuccin Mocha: mauve to blue, surface1 when unfocused.
active_border = { colors = { "rgba(cba6f7ee)", "rgba(89b4faee)" }, angle = 45 },
inactive_border = "rgba(45475aaa)",
},
col = {
-- Catppuccin Mocha: mauve to blue, surface1 when unfocused.
active_border = "rgba(33ccffee)",
inactive_border = "rgba(595959aa)",
},
resize_on_border = true,
resize_on_border = true,
-- Only windows with the `immediate` rule (see 30-rules.lua) tear.
allow_tearing = true,
-- Only windows with the `immediate` rule (see 30-rules.lua) tear.
allow_tearing = true,
layout = "dwindle",
},
layout = "dwindle",
},
decoration = {
rounding = 20,
rounding_power = 2,
decoration = {
rounding = 20,
rounding_power = 2,
shadow = {
enabled = true,
range = 4,
render_power = 3,
color = 0xee1a1a1a,
},
shadow = {
enabled = true,
range = 4,
render_power = 3,
color = 0xee1a1a1a,
},
blur = {
enabled = true,
size = 3,
passes = 2,
vibrancy = 0.1696,
},
},
blur = {
enabled = true,
size = 3,
passes = 2,
vibrancy = 0.1696,
},
},
animations = {
enabled = true,
},
animations = {
enabled = true,
},
dwindle = {
preserve_split = true,
},
dwindle = {
preserve_split = true,
},
master = {
new_status = "master",
},
master = {
new_status = "master",
},
misc = {
-- Noctalia draws the wallpaper.
force_default_wallpaper = 0,
disable_hyprland_logo = true,
},
misc = {
-- Noctalia draws the wallpaper.
force_default_wallpaper = 0,
disable_hyprland_logo = true,
},
ecosystem = {
no_update_news = true,
no_donation_nag = true,
},
ecosystem = {
no_update_news = true,
no_donation_nag = true,
},
})
---------------
@@ -100,18 +149,34 @@ hl.config({
---------------
hl.config({
input = {
kb_layout = nix.kbLayout,
kb_options = nix.kbOptions,
input = {
kb_layout = nix.kbLayout,
kb_options = nix.kbOptions,
numlock_by_default = true,
numlock_by_default = true,
follow_mouse = 1,
sensitivity = 0,
},
follow_mouse = 1,
sensitivity = 0,
},
})
-- Persistent workspaces keep the empty ones visible in Noctalia's indicator.
for i = 1, 5 do
hl.workspace_rule({ workspace = tostring(i), persistent = true })
hl.workspace_rule({ workspace = tostring(i), persistent = true })
end
for i = 1, 10 do
if i % 2 == 0 then
if i <= 5 then
hl.workspace_rule({ workspace = tostring(i), persistent = true, monitor = "DP-2" })
else
hl.workspace_rule({ workspace = tostring(i), persistent = false, monitor = "DP-2" })
end
else
if i <= 5 then
hl.workspace_rule({ workspace = tostring(i), persistent = true, monitor = "DP-1" })
else
hl.workspace_rule({ workspace = tostring(i), persistent = false, monitor = "DP-1" })
end
end
end
Regular → Executable
View File
File mode changed.
Regular → Executable
View File
File mode changed.
Regular → Executable
+1 -1
View File
@@ -31,7 +31,7 @@ in
shell = {
# Installed system-wide (modules/nixos/desktop/fonts.nix).
font_family = "Inter";
font_family = "Monaspace Krypton";
telemetry_enabled = false;
# No other polkit agent is started in the session.
Regular → Executable
View File
File mode changed.
Regular → Executable
+5
View File
@@ -63,6 +63,11 @@ in
# Offer only this key, not everything in the agent.
IdentitiesOnly = true;
};
"git.protei.ru" = {
User = "git";
IdentityFile = "~/.ssh/id_ed25519_work";
IdentitiesOnly = true;
};
};
};
Regular → Executable
View File
File mode changed.
Regular → Executable
+1 -1
View File
@@ -20,7 +20,7 @@ in
local config = wezterm.config_builder()
config.color_scheme = 'Catppuccin Mocha'
config.font = wezterm.font_with_fallback { 'JetBrainsMono Nerd Font', 'Noto Color Emoji' }
config.font = wezterm.font_with_fallback { 'Monaspace Krypton', 'Noto Color Emoji' }
config.font_size = 12.0
-- Wayland-native, no client-side titlebar (Hyprland draws the borders).
Regular → Executable
+1 -1
View File
@@ -12,7 +12,7 @@ let
cfg = config.my.home.xdg;
firefox = "firefox.desktop";
fileManager = "org.gnome.Nautilus.desktop";
fileManager = "Dolphin.desktop";
imageViewer = "org.gnome.Loupe.desktop";
mediaPlayer = "mpv.desktop";
pdfViewer = "org.pwmt.zathura.desktop";
Regular → Executable
+6 -1
View File
@@ -36,7 +36,12 @@ in
};
# nmtui / nmcli instead of wpa_supplicant.
networking.networkmanager.enable = true;
networking.networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-openvpn
];
};
networking.wireless.enable = lib.mkForce false;
environment.systemPackages = [
Regular → Executable
View File
File mode changed.
Regular → Executable
View File
File mode changed.
+87 -2
View File
@@ -1,8 +1,93 @@
# NetworkManager with the default (closed) firewall. The user joins the
# `networkmanager` group in users.nix.
{
config,
lib,
pkgs,
...
}:
{
networking = {
networkmanager.enable = true;
firewall.enable = true;
networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-openvpn
];
};
firewall.enable = false;
};
programs.nm-applet.enable = true;
programs.amnezia-vpn.enable = true;
services.proxy-suite = {
enable = true;
proxy = {
enable = false;
};
# perAppRouting = {
# enable = true;
# createDefaultProfiles = true;
# proxychains.enable = true;
# tun.enable = true;
# tproxy.enable = true;
# zapret.enable = true;
# };
zapret = {
enable = true;
zapret-discord-youtube.configName = "general(ALT)";
};
tgWsProxy = {
enable = true;
secret = "637854682629bfdca35fe9c58e797915";
bypassTransparentProxy = true;
};
gui.enable = true;
};
virtualisation.docker.enable = true;
virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;
};
virtualisation.docker.storageDriver = "btrfs";
services.gitea-actions-runner.instances."performance" = {
enable = true;
url = "https://git.faumaray.com";
name = "Perfrormance Runner";
token = "DJrTt1RLMROrXxVBDF1XVvo7wiKhHVxmofBBjl4S";
labels = [
"ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
"voelin-release:docker://docker.gitea.com/runner-images:ubuntu-latest"
"ubuntu-24.04:docker://docker.gitea.com/runner-images:ubuntu-24.04"
"ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
"echoion-release-serial:docker://git.faumaray.ru/void/echoion-release-builder:gcc-16.1.0"
];
settings = {
runner = {
capacity = 5;
timeout = "3h";
fetch_timeout = "5s";
fetch_interval = "1s";
};
cache = {
enabled = true;
host = "192.168.255.242"; # or "localhost" if not using isolated docker containers
port = 8088;
dir = "/var/lib/gitea-runner/cache";
};
container = {
# Ensure the job container passes standard bridge mode
network_mode = "bridge";
# Provide the job containers an alias to reach the host system
options = "--add-host=host.docker.internal:host-gateway";
};
};
};
}
Regular → Executable
-1
View File
@@ -15,7 +15,6 @@
# root is already trusted by default; this adds the admin group.
trusted-users = [ "@wheel" ];
warn-dirty = false;
# Same caches as flake.nixConfig, so the system keeps using them after
# install without the "untrusted flake settings" prompt.
extra-substituters = [
Regular → Executable
+1
View File
@@ -63,6 +63,7 @@ in
"audio"
"input"
"render"
"docker"
]
++ lib.optional config.my.gaming.enable "gamemode"
++ cfg.extraGroups;
Regular → Executable
View File
File mode changed.
Regular → Executable
View File
File mode changed.
Regular → Executable
+2 -1
View File
@@ -15,10 +15,11 @@
inter
nerd-fonts.jetbrains-mono
nerd-fonts.symbols-only
monaspace
];
fontconfig.defaultFonts = {
monospace = [ "JetBrainsMono Nerd Font" ];
monospace = [ "Monaspace Radon" ];
sansSerif = [ "Inter" ];
emoji = [ "Noto Color Emoji" ];
};
+17 -3
View File
@@ -21,8 +21,18 @@ in
xwayland.enable = true;
};
services.greetd = {
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
settings = {
Autologin = {
Session = "hyprland.desktop";
User = "faumaray";
};
};
};
services.greetd = {
enable = false;
# Keeps boot messages from drawing over the greeter.
useTextGreeter = true;
settings.default_session = {
@@ -38,7 +48,10 @@ in
};
};
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
xdg.portal.extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-hyprland
];
security.polkit.enable = true;
@@ -67,7 +80,8 @@ in
brightnessctl
playerctl
pavucontrol
nautilus
kdePackages.dolphin
kdePackages.dolphin-plugins
hyprpicker
];
};
View File
File mode changed.
Regular → Executable
+1 -1
View File
@@ -26,7 +26,7 @@ in
};
gamescope = {
enable = true;
enable = false;
# Lets gamescope raise its own priority.
capSysNice = true;
};
Regular → Executable
View File
File mode changed.
Regular → Executable
View File
File mode changed.
+4 -1
View File
@@ -52,7 +52,10 @@ in
userSshKeys = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ "id_ed25519" ];
default = [
"id_ed25519"
"id_ed25519_work"
];
description = "SSH key names; each maps to secrets/ssh-<name>.age if present.";
};
};
Regular → Executable
View File
File mode changed.