From 7fed1757c57c00a0886ae2613c73018eea9659d3 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 11 Feb 2023 12:28:59 +0530 Subject: fix chromium; auto start tmux sesh --- hosts/myrtle/configuration.nix | 28 +++++++++++++--------------- programs/chromium.nix | 5 +++-- programs/tmux.nix | 10 ++++------ scripts/default.nix | 3 ++- 4 files changed, 22 insertions(+), 24 deletions(-) diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index f0bcb81..e3b51de 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -97,7 +97,6 @@ pulseaudio = { enable = true; package = pkgs.pulseaudioFull; - # extraConfig = "load-module module-bluetooth-policy auto_switch=2"; }; bluetooth = { enable = true; @@ -110,11 +109,12 @@ nvidiaBusId = "PCI:1:0:0"; }; package = config.boot.kernelPackages.nvidiaPackages.latest; - # powerManagement = { - # enable = true; - # finegrained = true; - # }; + powerManagement = { + enable = true; + finegrained = true; + }; }; + sensor.iio.enable = true; # enable screen autorotate }; powerManagement = { @@ -122,6 +122,11 @@ powertop.enable = true; }; + console = { + font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; + keyMap = "us"; + }; + services = { xserver = { enable = true; @@ -135,15 +140,6 @@ Option "AllowIndirectGLXProtocol" "off" Option "TripleBuffer" "on" ''; - # serverLayoutSection = lib.mkAfter '' - # Screen 0 "Screen-nvidia[0]" - # ''; - # config = lib.mkAfter '' - # Section "Screen" - # Identifier "Screen-nvidia[0]" - # Device "Device-nvidia[0]" - # EndSection - # ''; }; openssh = { @@ -156,7 +152,8 @@ enable = true; enableUserService = true; }; - supergfxd.enable = true; + + supergfxd.enable = false; logind.extraConfig = '' HandlePowerKey=suspend @@ -168,6 +165,7 @@ notifyCapacity = 20; suspendCapacity = 5; }; + touchegg.enable = true; }; diff --git a/programs/chromium.nix b/programs/chromium.nix index 975e721..dcd48f4 100644 --- a/programs/chromium.nix +++ b/programs/chromium.nix @@ -9,10 +9,11 @@ extensions = [ "gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin - "aapbdbdomjkkjkaonfhkkikfgjllcleb" # translate "aghfnjkcakhmadgdomlmlhhaocbkloab" # just black - "pobhoodpcipjmedfenaigbeloiidbflp" # minimal twitter "ennpfpdlaclocpomkiablnmbppdnlhoh" # rust search extension ]; + commandLineArgs = [ + "--force-dark-mode" + ]; }; } diff --git a/programs/tmux.nix b/programs/tmux.nix index 2e73f3e..b66f79e 100644 --- a/programs/tmux.nix +++ b/programs/tmux.nix @@ -59,18 +59,14 @@ in { programs.tmux = { enable = true; - plugins = [ thumbs resurrect ]; + plugins = [ thumbs ]; prefix = "C-t"; keyMode = "vi"; terminal = "xterm-256color-italic"; extraConfig = '' - unbind-key C-b - bind-key C-t send-prefix - bind r source-file ~/.config/tmux/tmux.conf set escape-time 20 - set -g mouse on set -g base-index 1 @@ -79,7 +75,6 @@ in # session jumper bind-key -n C-j run-shell "tmux-fzf" - # pane binds unbind-key E bind-key h select-pane -L @@ -148,6 +143,9 @@ in # popup styles set -g popup-border-style "fg=colour8" + + # load all sessions + source-file ~/.config/tmux/sessions/all ''; }; } diff --git a/scripts/default.nix b/scripts/default.nix index f134556..616be1c 100644 --- a/scripts/default.nix +++ b/scripts/default.nix @@ -37,7 +37,7 @@ let battery = import ./battery.nix pkgs; # run-on-gpu script - battery = import ./nvidia-offload.nix pkgs; + nvidia-offload = import ./nvidia-offload.nix pkgs; # fzf script to switch between tmux sessions tmux-fzf = pkgs.writeScriptBin "tmux-fzf" '' @@ -78,4 +78,5 @@ in tmux-fzf portrait landscape + nvidia-offload ] -- cgit v1.2.3