lot of updates. Fix Amnezia.
This commit is contained in:
+7
-21
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user