small fix

This commit is contained in:
2025-11-19 03:06:02 +03:00
parent a1237f95e0
commit 577d93237c
3 changed files with 33 additions and 52 deletions
+21 -45
View File
@@ -1,53 +1,31 @@
{
config,
pkgs,
lib,
...
}:
{ config, pkgs, lib, ... }:
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
networking.nameservers = [
"8.8.8.8"
"1.1.1.1"
];
networking.networkmanager.insertNameservers = [
"1.1.1.1"
"8.8.8.8"
];
networking.nameservers = [ "8.8.8.8" "1.1.1.1" ];
networking.networkmanager.insertNameservers = [ "1.1.1.1" "8.8.8.8" ];
networking.firewall.enable = false;
programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
kitty
amnezia-vpn
lenovo-legion
];
environment.systemPackages = with pkgs; [ kitty amnezia-vpn lenovo-legion ];
# TODO: Добавить настройку вентиляторов
security.sudo.extraRules = [
{
users = [ "ALL" ];
commands = [
{
command = "/run/current-system/sw/bin/AmneziaVPN-service";
options = [ "NOPASSWD" ];
}
];
}
];
security.sudo.extraRules = [{
users = [ "ALL" ];
commands = [{
command = "/run/current-system/sw/bin/AmneziaVPN-service";
options = [ "NOPASSWD" ];
}];
}]; # TODO: fix amnezia-service loading on startup
programs.neovim = {
enable = true;
@@ -64,9 +42,7 @@
colorscheme blue
endif
'';
packages.myVimPackage = with pkgs.vimPlugins; {
start = [ ctrlp ];
};
packages.myVimPackage = with pkgs.vimPlugins; { start = [ ctrlp ]; };
};
};
@@ -96,19 +72,19 @@
plymouth = {
enable = true;
theme = "lone";
themePackages = with pkgs; [
(adi1090x-plymouth-themes.override { selected_themes = [ "lone" ]; })
];
themePackages = with pkgs;
[
(adi1090x-plymouth-themes.override { selected_themes = [ "lone" ]; })
];
};
consoleLogLevel = 3;
initrd.verbose = false;
kernelModules = [
"tun"
"lenovo-legion-module"
]; # for VPN
kernelModules =
[ "tun" "lenovo-legion-module" ]; # check if tun really needed
kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = with config.boot.kernelPackages; [ lenovo-legion-module ];
extraModulePackages = with config.boot.kernelPackages;
[ lenovo-legion-module ];
kernelParams = [
"quiet"
"splash"