Tor and proxychains added

code formatting for python
This commit is contained in:
foglar 2024-11-06 18:25:57 +01:00
parent 52789be32d
commit c457bb31df
3 changed files with 61 additions and 41 deletions

View File

@ -10,7 +10,7 @@ general {
background {
monitor =
path = /home/foglar/
path = /home/foglar/mysystem/nixos/aurora_borealis.png
color = rgba(25, 20, 20, 1.0)
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations

View File

@ -1,18 +1,20 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ inputs, config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
inputs,
config,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
];
home-manager = {
extraSpecialArgs = {inherit inputs; };
extraSpecialArgs = {inherit inputs;};
backupFileExtension = "backup";
users = {
foglar = import ./home.nix;
@ -45,14 +47,14 @@
monospace = {
name = "JetBrainsMono Nerd Font";
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
};
};
};
# Bootloader.
boot.loader.systemd-boot.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = ["nix-command" "flakes"];
networking.hostName = "laptop"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -86,7 +88,7 @@
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-emoji
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
(nerdfonts.override {fonts = ["JetBrainsMono"];})
monaspace
];
@ -142,6 +144,24 @@
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
programs.proxychains = {
enable = true;
chain.type = "dynamic";
proxies = {
tor-proxy = {
enable = true;
type = "socks5";
host = "127.0.0.1";
port = 9050;
};
};
};
services.tor = {
enable = true;
};
services.tor.client.enable = true;
environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1";
@ -156,7 +176,6 @@
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
# Modesetting is required.
modesetting.enable = true;
@ -194,7 +213,6 @@
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
@ -227,7 +245,7 @@
users.users.foglar = {
isNormalUser = true;
description = "foglar";
extraGroups = [ "networkmanager" "wheel" ];
extraGroups = ["networkmanager" "wheel"];
packages = with pkgs; [
# thunderbird
];
@ -278,5 +296,4 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
}

View File

@ -38,6 +38,9 @@
"[json]" = {
"editor.defaultFormatter" = "esbenp.prettier-vscode";
};
"[python]" = {
"editor.defaultFormatter" = "ms-python.black-formatter";
};
"nix.serverPath" = "nixd";
"nix.enableLanguageServer" = true;
"nix.serverSettings" = {