Add settings for graphics

This commit is contained in:
Leonardo Eugênio 2022-08-06 18:32:34 -03:00
parent 89114cc957
commit 314c386085
9 changed files with 50 additions and 54 deletions

View file

@ -1,6 +1,5 @@
{ config, pkgs, lib, ... }:
let
inherit (import ./user/variables.nix) key theme color accent font;
let inherit (import ./user/variables.nix) key theme color accent font;
in pkgs.writeScriptBin "bmenu" ''
#!${pkgs.fish}/bin/fish

View file

@ -31,7 +31,8 @@
# nur.nixosModules.nur
({ config, pkgs, ... }: {
nixpkgs.overlays = [
overlay-unstable nur.overlay
overlay-unstable
nur.overlay
(_: _: {
dhist = dhist.packages.${system}.dhist;
bmenu = import ./bmenu.nix { inherit config pkgs lib; };

View file

@ -43,6 +43,11 @@ in {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
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.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";

View file

@ -15,6 +15,7 @@
# For 32 bit applications
# Only available on unstable
hardware.opengl.extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
environment.variables = { AMD_VULKAN_ICD = "RADV"; };
boot.extraModulePackages = [ ];
fileSystems."/" = {

View file

@ -1,5 +1,5 @@
{ config, pkgs, lib, font, ... }: let
inherit (import ./variables.nix) key theme color accent font;
{ config, pkgs, lib, font, ... }:
let inherit (import ./variables.nix) key theme color accent font;
in {
config = {
programs.helix = {
@ -62,8 +62,6 @@ in {
keys.insert = { "A-k" = "normal_mode"; };
};
};
home.packages = with pkgs; [
pkgs.unstable.helix
];
home.packages = with pkgs; [ pkgs.unstable.helix ];
};
}

View file

@ -1,5 +1,5 @@
{ config, pkgs, lib, font, ... }: let
inherit (import ./variables.nix) key theme color accent font;
{ config, pkgs, lib, font, ... }:
let inherit (import ./variables.nix) key theme color accent font;
in {
config = {
programs.kakoune = {
@ -120,12 +120,7 @@ in {
Hint = "blue";
}));
};
home.packages = with pkgs; [
kakoune
terminal
ranger
bmenu
];
home.packages = with pkgs; [ kakoune terminal ranger bmenu ];
home.sessionVariables = {
EDITOR = "kak";
# Some plugins(kak_ansi) like to compile stuff

View file

@ -93,10 +93,7 @@ in {
};
floating = {
modifier = "Mod4";
criteria = [
{ class = "file_picker"; }
{ app_id = "file_picker"; }
];
criteria = [ { class = "file_picker"; } { app_id = "file_picker"; } ];
};
keybindings = let
mod = "Mod4";

View file

@ -1,5 +1,5 @@
{ config, pkgs, lib, font, ... }: let
inherit (import ./variables.nix) key theme color accent font;
{ config, pkgs, lib, font, ... }:
let inherit (import ./variables.nix) key theme color accent font;
in {
config = {
programs.waybar = {