Compare commits

...

2 Commits

Author SHA1 Message Date
c457bb31df Tor and proxychains added
code formatting for python
2024-11-06 18:25:57 +01:00
52789be32d Remove warthunder 2024-11-06 07:59:12 +01:00
4 changed files with 61 additions and 64 deletions

View File

@ -10,7 +10,7 @@ general {
background { background {
monitor = monitor =
path = /home/foglar/ path = /home/foglar/mysystem/nixos/aurora_borealis.png
color = rgba(25, 20, 20, 1.0) color = rgba(25, 20, 20, 1.0)
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations # 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 # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ inputs, config, pkgs, ... }:
{ {
imports = inputs,
[ # Include the results of the hardware scan. config,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
]; ];
home-manager = { home-manager = {
extraSpecialArgs = {inherit inputs; }; extraSpecialArgs = {inherit inputs;};
backupFileExtension = "backup"; backupFileExtension = "backup";
users = { users = {
foglar = import ./home.nix; foglar = import ./home.nix;
@ -45,14 +47,14 @@
monospace = { monospace = {
name = "JetBrainsMono Nerd Font"; name = "JetBrainsMono Nerd Font";
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; }; package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
}; };
}; };
}; };
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; 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.hostName = "laptop"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -86,7 +88,7 @@
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
noto-fonts noto-fonts
noto-fonts-emoji noto-fonts-emoji
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) (nerdfonts.override {fonts = ["JetBrainsMono"];})
monaspace monaspace
]; ];
@ -142,6 +144,24 @@
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
programs.virt-manager.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 = { environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1"; WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
@ -156,7 +176,6 @@
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = { hardware.nvidia = {
# Modesetting is required. # Modesetting is required.
modesetting.enable = true; modesetting.enable = true;
@ -194,7 +213,6 @@
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.stable;
}; };
# Configure keymap in X11 # Configure keymap in X11
services.xserver.xkb = { services.xserver.xkb = {
layout = "us"; layout = "us";
@ -227,7 +245,7 @@
users.users.foglar = { users.users.foglar = {
isNormalUser = true; isNormalUser = true;
description = "foglar"; description = "foglar";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = ["networkmanager" "wheel"];
packages = with pkgs; [ packages = with pkgs; [
# thunderbird # thunderbird
]; ];
@ -278,5 +296,4 @@
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
} }

View File

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

View File

@ -1,23 +0,0 @@
{ pkgs ? import
(builtins.fetchTarball {
name = "nixpkgs-unstable-20241009165118";
url = "https://github.com/NixOS/nixpkgs/archive/5633bcff0c6162b9e4b5f1264264611e950c8ec7.tar.gz";
sha256 = "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=";
})
{ }
}:
let
inherit (pkgs) buildFHSUserEnv;
in
buildFHSUserEnv {
name = "launcher-fhs";
targetPkgs = p: with p; [
glib.out
gtk3.out
libgcc.lib
xorg.libX11.out
xorg.libXrandr.out
];
runScript = "/home/foglar/Downloads/WarThunder/launcher";
}