Environment : Move everything to the relevant places.
This commit is contained in:
parent
97200861af
commit
7417a2286c
|
@ -113,7 +113,6 @@
|
||||||
./module/common/Bootloader.nix
|
./module/common/Bootloader.nix
|
||||||
./module/common/Distrobox.nix
|
./module/common/Distrobox.nix
|
||||||
./module/common/Dotfiles.nix
|
./module/common/Dotfiles.nix
|
||||||
./module/common/Environment.nix
|
|
||||||
./module/common/Filesystem.nix
|
./module/common/Filesystem.nix
|
||||||
./module/common/Firefox.nix
|
./module/common/Firefox.nix
|
||||||
./module/common/Firewall.nix
|
./module/common/Firewall.nix
|
||||||
|
|
|
@ -1,18 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
adwsteamgtk
|
|
||||||
android-studio
|
|
||||||
blender-hip
|
|
||||||
bottles
|
|
||||||
gimp
|
|
||||||
gradience
|
|
||||||
jellyfin
|
|
||||||
jetbrains.idea-community
|
|
||||||
obs-studio
|
|
||||||
onlyoffice-bin
|
|
||||||
tor-browser
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.opengl = let
|
hardware.opengl = let
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
dxvk
|
dxvk
|
||||||
|
@ -25,6 +11,38 @@
|
||||||
extraPackages32 = packages;
|
extraPackages32 = packages;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
adwsteamgtk
|
||||||
|
android-studio
|
||||||
|
blender-hip
|
||||||
|
bottles
|
||||||
|
dxvk
|
||||||
|
gamescope
|
||||||
|
gimp
|
||||||
|
gradience
|
||||||
|
jellyfin
|
||||||
|
jetbrains.idea-community
|
||||||
|
mangohud
|
||||||
|
obs-studio
|
||||||
|
onlyoffice-bin
|
||||||
|
tor-browser
|
||||||
|
vkd3d
|
||||||
|
];
|
||||||
|
|
||||||
|
variables = {
|
||||||
|
# MangoHud.
|
||||||
|
MANGOHUD = "1";
|
||||||
|
MANGOHUD_CONFIGFILE = "/etc/mangohud/MangoHud.conf";
|
||||||
|
MANGOHUD_PRESETSFILE = "/etc/mangohud/MangoPresets.conf";
|
||||||
|
|
||||||
|
# Proton.
|
||||||
|
WINEFSYNC = "1";
|
||||||
|
};
|
||||||
|
|
||||||
|
etc.mangohud.source = ./mangohud;
|
||||||
|
};
|
||||||
|
|
||||||
# Special packages.
|
# Special packages.
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,8 @@ in {
|
||||||
};
|
};
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
BASH_PATH = "${homePath}/.bash";
|
BASH_PATH = "${homePath}/.bash";
|
||||||
|
EDITOR = "nvim";
|
||||||
|
MANPAGER = "nvim +Man!";
|
||||||
NIX_CURRENT_SYSTEM = "${pkgs.stdenv.system}";
|
NIX_CURRENT_SYSTEM = "${pkgs.stdenv.system}";
|
||||||
TERM = "xterm-256color";
|
TERM = "xterm-256color";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
|
programs.bash.interactiveShellInit = "source /etc/bash/Bashrc.sh";
|
||||||
environment.etc.bash.source = ./bash;
|
environment.etc.bash.source = ./bash;
|
||||||
environment.shellAliases = lib.mkForce {};
|
environment.shellAliases = lib.mkForce {};
|
||||||
environment.variables.BASH_PATH = "/etc/bash";
|
environment.variables = {
|
||||||
programs.bash.interactiveShellInit = "source /etc/bash/Bashrc.sh";
|
BASH_PATH = "/etc/bash";
|
||||||
|
TERM = "xterm-256color";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
{ pkgs, ... }: {
|
|
||||||
security.loginDefs.settings.UMASK = "077";
|
|
||||||
environment.variables = {
|
|
||||||
# Neovim.
|
|
||||||
EDITOR = "nvim";
|
|
||||||
MANPAGER = "nvim +Man!";
|
|
||||||
|
|
||||||
# Mangohud.
|
|
||||||
MANGOHUD = "1";
|
|
||||||
MANGOHUD_CONFIG = "no_display=0,hud_no_margin=1,font_size=12,toggle_hud=F1,fps_sampling_period=1000,fps_limit=165,fps_limit_method=early,af=16,vsync=3,gl_vsync=1,throttling_status=1,cpu_temp=1,gpu_temp=1,gpu_junction_temp=1,device_battery=gamepad,mouse,frame_timing=0,benchmark_percentiles=0,battery=1,battery_time=1,time=1,ram=1,vram=1,swap=1";
|
|
||||||
|
|
||||||
# Proton.
|
|
||||||
WINEFSYNC = "1";
|
|
||||||
|
|
||||||
# Nix.
|
|
||||||
NIX_CURRENT_SYSTEM = "${pkgs.stdenv.system}";
|
|
||||||
|
|
||||||
# Shell.
|
|
||||||
TERM = "xterm-256color";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,12 +1,15 @@
|
||||||
{ ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
environment.variables = {
|
||||||
|
NIXPKGS_ALLOW_UNFREE = "1";
|
||||||
|
NIX_CURRENT_SYSTEM = "${pkgs.stdenv.system}";
|
||||||
|
};
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix.settings.auto-optimise-store = true;
|
nix.settings.auto-optimise-store = true;
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
min-free = ${toString (50 * 1024 * 1024 * 1024)}
|
min-free = ${toString(50 * 1000 * 1000 * 1000)}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# max-free = ${toString(10 * 1024 * 1024 * 1024)}
|
# max-free = ${toString(10 * 1024 * 1024 * 1024)}
|
||||||
|
|
|
@ -8,7 +8,13 @@
|
||||||
) "" cfgs;
|
) "" cfgs;
|
||||||
in runtimeRc + cfgRc;
|
in runtimeRc + cfgRc;
|
||||||
in {
|
in {
|
||||||
environment.etc.nvim.source = ./nvim;
|
environment = {
|
||||||
|
etc.nvim.source = ./nvim;
|
||||||
|
variables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
MANPAGER = "nvim +Man!";
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
lshw
|
lshw
|
||||||
lsof
|
lsof
|
||||||
ltex-ls
|
ltex-ls
|
||||||
mangohud
|
|
||||||
mpv
|
mpv
|
||||||
neofetch
|
neofetch
|
||||||
networkmanager_strongswan
|
networkmanager_strongswan
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
security.loginDefs.settings.UMASK = "077";
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
}
|
}
|
||||||
|
|
25
module/mangohud/MangoHud.conf
Normal file
25
module/mangohud/MangoHud.conf
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
af=16
|
||||||
|
alpha=
|
||||||
|
battery=1
|
||||||
|
battery_time=1
|
||||||
|
benchmark_percentiles=0
|
||||||
|
cpu_temp=1
|
||||||
|
device_battery=gamepad
|
||||||
|
font_size=12
|
||||||
|
fps_limit=165
|
||||||
|
fps_limit_method=early
|
||||||
|
fps_sampling_period=1000
|
||||||
|
frame_timing=0
|
||||||
|
gl_vsync=1
|
||||||
|
gpu_junction_temp=1
|
||||||
|
gpu_temp=1
|
||||||
|
hud_no_margin=1
|
||||||
|
mouse
|
||||||
|
no_display=0
|
||||||
|
ram=1
|
||||||
|
swap=1
|
||||||
|
throttling_status=1
|
||||||
|
time=1
|
||||||
|
toggle_hud=F1
|
||||||
|
vram=1
|
||||||
|
vsync=3
|
0
module/mangohud/MangoPresets.conf
Normal file
0
module/mangohud/MangoPresets.conf
Normal file
Loading…
Reference in a new issue