Compare commits
No commits in common. "c457bb31dfa0d60f469874ae8fbf2c1689ce7255" and "12222f26b39de29012e6341fedcde5721b5f0196" have entirely different histories.
c457bb31df
...
12222f26b3
@ -10,7 +10,7 @@ general {
|
|||||||
|
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = /home/foglar/mysystem/nixos/aurora_borealis.png
|
path = /home/foglar/
|
||||||
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
|
||||||
|
|||||||
@ -1,20 +1,18 @@
|
|||||||
# 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, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
inputs,
|
imports =
|
||||||
config,
|
[ # Include the results of the hardware scan.
|
||||||
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;
|
||||||
@ -47,14 +45,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.
|
||||||
|
|
||||||
@ -88,7 +86,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
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -144,24 +142,6 @@
|
|||||||
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";
|
||||||
@ -176,6 +156,7 @@
|
|||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
|
||||||
# Modesetting is required.
|
# Modesetting is required.
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
@ -213,6 +194,7 @@
|
|||||||
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";
|
||||||
@ -245,7 +227,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
|
||||||
];
|
];
|
||||||
@ -296,4 +278,5 @@
|
|||||||
# 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?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,9 +38,6 @@
|
|||||||
"[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" = {
|
||||||
|
|||||||
23
warthunder/default.nix
Normal file
23
warthunder/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ 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";
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user