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
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
# 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/";
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
# 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
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.kakoune = {
|
programs.kakoune = {
|
||||||
|
@ -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