Add settings for graphics
This commit is contained in:
parent
89114cc957
commit
314c386085
|
@ -1,6 +1,5 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let inherit (import ./user/variables.nix) key theme color accent font;
|
||||||
inherit (import ./user/variables.nix) key theme color accent font;
|
|
||||||
in pkgs.writeScriptBin "bmenu" ''
|
in pkgs.writeScriptBin "bmenu" ''
|
||||||
#!${pkgs.fish}/bin/fish
|
#!${pkgs.fish}/bin/fish
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# my stuff
|
# my stuff
|
||||||
dhist.url = "github:lelgenio/dhist";
|
dhist.url = "github:lelgenio/dhist";
|
||||||
};
|
};
|
||||||
outputs = { nixpkgs, nixpkgs-unstable, home-manager, nur, dhist, ... } :
|
outputs = { nixpkgs, nixpkgs-unstable, home-manager, nur, dhist, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
@ -29,9 +29,10 @@
|
||||||
common_modules = [
|
common_modules = [
|
||||||
./system/configuration.nix
|
./system/configuration.nix
|
||||||
# nur.nixosModules.nur
|
# nur.nixosModules.nur
|
||||||
({ config, pkgs, ... } : {
|
({ config, pkgs, ... }: {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
overlay-unstable nur.overlay
|
overlay-unstable
|
||||||
|
nur.overlay
|
||||||
(_: _: {
|
(_: _: {
|
||||||
dhist = dhist.packages.${system}.dhist;
|
dhist = dhist.packages.${system}.dhist;
|
||||||
bmenu = import ./bmenu.nix { inherit config pkgs lib; };
|
bmenu = import ./bmenu.nix { inherit config pkgs lib; };
|
||||||
|
|
|
@ -43,6 +43,11 @@ in {
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||||
|
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"vm.max_map_count" = 1048576; # Needed by DayZ
|
||||||
|
};
|
||||||
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
# Configure network proxy if necessary
|
# Configure network proxy if necessary
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
|
|
@ -12,9 +12,10 @@
|
||||||
# For 32 bit applications
|
# For 32 bit applications
|
||||||
hardware.opengl.driSupport32Bit = true;
|
hardware.opengl.driSupport32Bit = true;
|
||||||
hardware.opengl.extraPackages = with pkgs; [ amdvlk ];
|
hardware.opengl.extraPackages = with pkgs; [ amdvlk ];
|
||||||
# For 32 bit applications
|
# For 32 bit applications
|
||||||
# Only available on unstable
|
# Only available on unstable
|
||||||
hardware.opengl.extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
hardware.opengl.extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
||||||
|
environment.variables = { AMD_VULKAN_ICD = "RADV"; };
|
||||||
|
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ config, pkgs, lib, font, ... }: let
|
{ config, pkgs, lib, font, ... }:
|
||||||
inherit (import ./variables.nix) key theme color accent font;
|
let inherit (import ./variables.nix) key theme color accent font;
|
||||||
in {
|
in {
|
||||||
config = {
|
config = {
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
|
@ -62,8 +62,6 @@ in {
|
||||||
keys.insert = { "A-k" = "normal_mode"; };
|
keys.insert = { "A-k" = "normal_mode"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ pkgs.unstable.helix ];
|
||||||
pkgs.unstable.helix
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -322,54 +322,54 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSessionWide = true;
|
enableSessionWide = true;
|
||||||
settings = {
|
settings = {
|
||||||
toggle_fps_limit="F1";
|
toggle_fps_limit = "F1";
|
||||||
|
|
||||||
legacy_layout="false";
|
legacy_layout = "false";
|
||||||
gpu_stats = true;
|
gpu_stats = true;
|
||||||
gpu_temp = true;
|
gpu_temp = true;
|
||||||
gpu_core_clock = true;
|
gpu_core_clock = true;
|
||||||
gpu_mem_clock = true;
|
gpu_mem_clock = true;
|
||||||
gpu_power = true;
|
gpu_power = true;
|
||||||
gpu_load_change = true;
|
gpu_load_change = true;
|
||||||
gpu_load_value="50,90";
|
gpu_load_value = "50,90";
|
||||||
gpu_load_color="FFFFFF,FFAA7F,CC0000";
|
gpu_load_color = "FFFFFF,FFAA7F,CC0000";
|
||||||
gpu_text="GPU";
|
gpu_text = "GPU";
|
||||||
cpu_stats = true;
|
cpu_stats = true;
|
||||||
cpu_temp = true;
|
cpu_temp = true;
|
||||||
cpu_power = true;
|
cpu_power = true;
|
||||||
cpu_mhz = true;
|
cpu_mhz = true;
|
||||||
cpu_load_change = true;
|
cpu_load_change = true;
|
||||||
core_load_change = true;
|
core_load_change = true;
|
||||||
cpu_load_value="50,90";
|
cpu_load_value = "50,90";
|
||||||
cpu_load_color="FFFFFF,FFAA7F,CC0000";
|
cpu_load_color = "FFFFFF,FFAA7F,CC0000";
|
||||||
cpu_color="2e97cb";
|
cpu_color = "2e97cb";
|
||||||
cpu_text="CPU";
|
cpu_text = "CPU";
|
||||||
io_stats = true;
|
io_stats = true;
|
||||||
io_read = true;
|
io_read = true;
|
||||||
io_write = true;
|
io_write = true;
|
||||||
io_color="a491d3";
|
io_color = "a491d3";
|
||||||
swap = true;
|
swap = true;
|
||||||
vram = true;
|
vram = true;
|
||||||
vram_color="ad64c1";
|
vram_color = "ad64c1";
|
||||||
ram = true;
|
ram = true;
|
||||||
ram_color="c26693";
|
ram_color = "c26693";
|
||||||
fps = true;
|
fps = true;
|
||||||
engine_color="eb5b5b";
|
engine_color = "eb5b5b";
|
||||||
gpu_color="2e9762";
|
gpu_color = "2e9762";
|
||||||
wine_color="eb5b5b";
|
wine_color = "eb5b5b";
|
||||||
frame_timing="1";
|
frame_timing = "1";
|
||||||
frametime_color="00ff00";
|
frametime_color = "00ff00";
|
||||||
media_player_color="ffffff";
|
media_player_color = "ffffff";
|
||||||
background_alpha="0.8";
|
background_alpha = "0.8";
|
||||||
font_size="24";
|
font_size = "24";
|
||||||
|
|
||||||
background_color="020202";
|
background_color = "020202";
|
||||||
position="top-left";
|
position = "top-left";
|
||||||
text_color="ffffff";
|
text_color = "ffffff";
|
||||||
round_corners="10";
|
round_corners = "10";
|
||||||
toggle_hud="Shift_R+F12";
|
toggle_hud = "Shift_R+F12";
|
||||||
toggle_logging="Shift_L+F12";
|
toggle_logging = "Shift_L+F12";
|
||||||
output_folder="/home/lelgenio";
|
output_folder = "/home/lelgenio";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{ config, pkgs, lib, font, ... }: let
|
{ config, pkgs, lib, font, ... }:
|
||||||
inherit (import ./variables.nix) key theme color accent font;
|
let inherit (import ./variables.nix) key theme color accent font;
|
||||||
in {
|
in {
|
||||||
config = {
|
config = {
|
||||||
programs.kakoune = {
|
programs.kakoune = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = let
|
extraConfig = let
|
||||||
colors = lib.mapAttrs (_: lib.replaceStrings [ "#" ] [ "rgb:" ]) {
|
colors = lib.mapAttrs (_: lib.replaceStrings [ "#" ] [ "rgb:" ]) {
|
||||||
accent_fg = accent.fg;
|
accent_fg = accent.fg;
|
||||||
accent_color = accent.color;
|
accent_color = accent.color;
|
||||||
|
@ -120,12 +120,7 @@ in {
|
||||||
Hint = "blue";
|
Hint = "blue";
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ kakoune terminal ranger bmenu ];
|
||||||
kakoune
|
|
||||||
terminal
|
|
||||||
ranger
|
|
||||||
bmenu
|
|
||||||
];
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "kak";
|
EDITOR = "kak";
|
||||||
# Some plugins(kak_ansi) like to compile stuff
|
# Some plugins(kak_ansi) like to compile stuff
|
||||||
|
|
|
@ -93,10 +93,7 @@ in {
|
||||||
};
|
};
|
||||||
floating = {
|
floating = {
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
criteria = [
|
criteria = [ { class = "file_picker"; } { app_id = "file_picker"; } ];
|
||||||
{ class = "file_picker"; }
|
|
||||||
{ app_id = "file_picker"; }
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
keybindings = let
|
keybindings = let
|
||||||
mod = "Mod4";
|
mod = "Mod4";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ config, pkgs, lib, font, ... }: let
|
{ config, pkgs, lib, font, ... }:
|
||||||
inherit (import ./variables.nix) key theme color accent font;
|
let inherit (import ./variables.nix) key theme color accent font;
|
||||||
in {
|
in {
|
||||||
config = {
|
config = {
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
|
|
Loading…
Reference in a new issue