mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 02:52:55 +00:00
dark mode and league of legends
This commit is contained in:
parent
1424f6c983
commit
623e029b81
@ -29,49 +29,65 @@
|
|||||||
networking.interfaces.enp0s31f6.useDHCP = true;
|
networking.interfaces.enp0s31f6.useDHCP = true;
|
||||||
networking.interfaces.wlp3s0.useDHCP = true;
|
networking.interfaces.wlp3s0.useDHCP = true;
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
# i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
# console = {
|
|
||||||
# font = "Lat2-Terminus16";
|
|
||||||
# keyMap = "us";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
# services.xserver.enable = true;
|
# services.xserver.enable = true;
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoRepeatDelay = 250;
|
|
||||||
autoRepeatInterval = 40;
|
|
||||||
|
|
||||||
# desktopManager = {
|
# Use the Awesome WM
|
||||||
# xterm.enable = false;
|
|
||||||
# xfce.enable = true;
|
|
||||||
# };
|
|
||||||
# displayManager.defaultSession = "xfce";
|
|
||||||
windowManager = { awesome = { enable = true; }; };
|
windowManager = { awesome = { enable = true; }; };
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support
|
||||||
libinput.enable = true;
|
libinput.enable = true;
|
||||||
|
|
||||||
# Disable mouse acceleration
|
# Disable mouse acceleration
|
||||||
libinput.mouse.accelProfile = "flat";
|
libinput.mouse.accelProfile = "flat";
|
||||||
libinput.mouse.accelSpeed = "1.5";
|
libinput.mouse.accelSpeed = "1.5";
|
||||||
|
|
||||||
|
# Keyboard responsiveness
|
||||||
|
autoRepeatDelay = 250;
|
||||||
|
autoRepeatInterval = 40;
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
layout = "us";
|
layout = "us";
|
||||||
xkbOptions = "eurosign:e,caps:swapescape";
|
xkbOptions = "eurosign:e,caps:swapescape";
|
||||||
|
|
||||||
|
# Login screen
|
||||||
|
displayManager = {
|
||||||
|
lightdm = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Make the login screen dark
|
||||||
|
greeters.gtk.theme.name = "Adwaita-dark";
|
||||||
|
|
||||||
|
# Put the login screen on the left monitor
|
||||||
|
greeters.gtk.extraConfig = ''
|
||||||
|
active-monitor=0
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
setupCommands = ''
|
||||||
|
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 \
|
||||||
|
--mode 1920x1200 \
|
||||||
|
--pos 1920x0 \
|
||||||
|
--rotate left \
|
||||||
|
--output HDMI-0 \
|
||||||
|
--primary \
|
||||||
|
--mode 1920x1080 \
|
||||||
|
--pos 0x559 \
|
||||||
|
--rotate normal \
|
||||||
|
--output DVI-0 --off \
|
||||||
|
--output DVI-1 --off \
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Required for setting GTK theme (for preferred-color-scheme in browser)
|
||||||
|
services.dbus.packages = with pkgs; [ dconf gnome3.dconf ];
|
||||||
|
|
||||||
# Mouse config
|
# Mouse config
|
||||||
services.ratbagd.enable = true;
|
services.ratbagd.enable = true;
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
# services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
@ -88,20 +104,6 @@
|
|||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.displayManager.setupCommands = ''
|
|
||||||
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 \
|
|
||||||
--mode 1920x1200 \
|
|
||||||
--pos 1920x0 \
|
|
||||||
--rotate left \
|
|
||||||
--output HDMI-0 \
|
|
||||||
--primary \
|
|
||||||
--mode 1920x1080 \
|
|
||||||
--pos 0x559 \
|
|
||||||
--rotate normal \
|
|
||||||
--output DVI-0 --off \
|
|
||||||
--output DVI-1 --off \
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Install fonts
|
# Install fonts
|
||||||
fonts.fonts = with pkgs; [ victor-mono nerdfonts ];
|
fonts.fonts = with pkgs; [ victor-mono nerdfonts ];
|
||||||
fonts.fontconfig.defaultFonts.monospace = [ "Victor Mono" ];
|
fonts.fontconfig.defaultFonts.monospace = [ "Victor Mono" ];
|
||||||
@ -112,6 +114,7 @@
|
|||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
hardware.steam-hardware.enable = true;
|
hardware.steam-hardware.enable = true;
|
||||||
|
boot.kernel.sysctl = { "abi.vsyscall32" = 0; }; # League of Legends anti-cheat
|
||||||
|
|
||||||
# Replace sudo with doas
|
# Replace sudo with doas
|
||||||
security = {
|
security = {
|
||||||
@ -139,7 +142,7 @@
|
|||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.noah = {
|
users.users.noah = {
|
||||||
|
|
||||||
# Not sure what this means tbh
|
# Create a home directory for human user
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
||||||
# Automatically create a password to start
|
# Automatically create a password to start
|
||||||
@ -160,14 +163,19 @@
|
|||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
home-manager
|
home-manager
|
||||||
xclip
|
xclip # Clipboard
|
||||||
pamixer
|
pamixer # Audio control
|
||||||
|
|
||||||
# Mouse config
|
# Mouse config
|
||||||
libratbag
|
libratbag
|
||||||
piper
|
piper
|
||||||
|
|
||||||
|
# Gaming
|
||||||
steam
|
steam
|
||||||
|
lutris
|
||||||
|
amdvlk
|
||||||
|
wine
|
||||||
|
openssl # Required for League of Legends
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = { NIX_SKIP_KEYBASE_CHECKS = "1"; };
|
environment.variables = { NIX_SKIP_KEYBASE_CHECKS = "1"; };
|
||||||
@ -180,6 +188,7 @@
|
|||||||
# Reduce blue light at night
|
# Reduce blue light at night
|
||||||
services.redshift.enable = true;
|
services.redshift.enable = true;
|
||||||
|
|
||||||
|
# Login to Keybase in the background
|
||||||
services.keybase.enable = true;
|
services.keybase.enable = true;
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
@ -190,17 +199,6 @@
|
|||||||
# enableSSHSupport = true;
|
# enableSSHSupport = true;
|
||||||
# };
|
# };
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
# services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
@ -22,6 +22,7 @@ in {
|
|||||||
himalaya # Email
|
himalaya # Email
|
||||||
mpv # Video viewer
|
mpv # Video viewer
|
||||||
sxiv # Image viewer
|
sxiv # Image viewer
|
||||||
|
zathura # PDF viewer
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
unzip
|
unzip
|
||||||
@ -39,6 +40,8 @@ in {
|
|||||||
tealdeer
|
tealdeer
|
||||||
gh
|
gh
|
||||||
direnv
|
direnv
|
||||||
|
tree
|
||||||
|
htop
|
||||||
|
|
||||||
# Encryption
|
# Encryption
|
||||||
keybase
|
keybase
|
||||||
@ -47,6 +50,9 @@ in {
|
|||||||
pass
|
pass
|
||||||
];
|
];
|
||||||
|
|
||||||
|
gtk.enable = true;
|
||||||
|
gtk.theme = { name = "Adwaita-dark"; };
|
||||||
|
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
libratbag (ratbagd) for input devices
|
libratbag (ratbagd) for input devices
|
||||||
|
|
||||||
inspiration: https://github.com/JonathanReeve/dotfiles/blob/minimal/dotfiles/home.nix
|
inspiration: https://github.com/JonathanReeve/dotfiles/blob/minimal/dotfiles/home.nix
|
||||||
|
|
||||||
|
more: https://github.com/mitchellh/nixos-config/blob/main/users/mitchellh/home-manager.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user