lot of updates. Fix Amnezia.

This commit is contained in:
2025-12-10 13:01:37 +03:00
parent 8c848be9e2
commit 732f6f89a5
8 changed files with 40 additions and 35 deletions
+21
View File
@@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
let package = pkgs.amnezia-vpn;
in {
environment.systemPackages = [ package ];
services.dbus.packages = [ package ];
services.resolved.enable = true;
systemd = {
packages = [ package ];
services."AmneziaVPN" = {
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ procps iproute2 sudo ];
};
};
meta.maintainers = with lib.maintainers; [ sund3RRR ];
}
+7 -21
View File
@@ -1,6 +1,11 @@
{ config, pkgs, lib, ... }:
{
imports = [ ./amnezia.nix ];
zramSwap.enable = true;
services.btrfs.autoScrub.enable = true;
services.btrfs.autoScrub.interval = "weekly";
# networkmanagerapplet and nm-applet
virtualisation.virtualbox.host.enable = true;
@@ -53,7 +58,7 @@
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
kitty
amnezia-vpn
# amnezia-vpn
powertop
system76-scheduler
tlp
@@ -70,25 +75,6 @@
# TODO: Добавить настройку вентиляторов
security.sudo.extraRules = [{
users = [ "ALL" ];
commands = [{
command = "/run/current-system/sw/bin/AmneziaVPN-service";
options = [ "NOPASSWD" ];
}];
}]; # TODO: fix amnezia-service loading on startup
# systemd.services.amnezia-vpn-service = {
# description = "Amnezia VPN Service";
# after = [ "network-online.target" ];
# wantedBy = [ "multi-user.target" ];
# serviceConfig = {
# ExecStart = "${pkgs.amnezia-vpn}/bin/AmneziaVPN-service";
# Restart = "on-failure";
# User = "root";
# };
# };
programs.neovim = {
enable = true;
defaultEditor = true;
@@ -142,7 +128,7 @@
consoleLogLevel = 3;
initrd.verbose = false;
kernelModules = [ "tun" ]; # check if tun really needed
# kernelModules = [ "tun" ]; # check if tun really needed
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [
"quiet"