1
0
Fork 0

Compare commits

..

No commits in common. "21c3e5cb512c1b206f1688fb70928c5809547ce0" and "16b21260331bf541444e772b0986b8f72fa306b4" have entirely different histories.

4 changed files with 28 additions and 13 deletions

View file

@ -1,9 +1,4 @@
{ { config, pkgs, ... }:
config,
lib,
pkgs,
...
}:
let let
# Do not change this value! This tracks when NixOS was installed on your system. # Do not change this value! This tracks when NixOS was installed on your system.
@ -48,12 +43,9 @@ in
hibernate.enable = false; hibernate.enable = false;
hybrid-sleep.enable = false; hybrid-sleep.enable = false;
}; };
services = { services.logind = {
xserver.displayManager.gdm.autoSuspend = lib.mkIf config.aux.system.ui.desktops.gnome.enable false; lidSwitch = "lock";
logind = { lidSwitchDocked = "lock";
lidSwitch = "lock";
lidSwitchDocked = "lock";
};
}; };
services.upower.ignoreLid = true; services.upower.ignoreLid = true;
@ -91,6 +83,8 @@ in
# https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree # https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree
allowUnfree = true; allowUnfree = true;
apps.tmux.enable = true;
# Enable Secure Boot support. # Enable Secure Boot support.
bootloader = { bootloader = {
enable = true; enable = true;

View file

@ -15,6 +15,7 @@ in
networking.hostName = hostName; networking.hostName = hostName;
aux.system = { aux.system = {
apps.tmux.enable = true;
bootloader.enable = false; # Bootloader configured in hardware-configuration.nix bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
packages = with pkgs; [ packages = with pkgs; [
libraspberrypi libraspberrypi

21
modules/apps/tmux.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, lib, ... }:
let
cfg = config.aux.system.apps.tmux;
in
{
options = {
aux.system.apps.tmux.enable = lib.mkEnableOption "Enables tmux - terminal multiplexer";
};
config = lib.mkIf cfg.enable {
programs.tmux = {
enable = true;
newSession = true;
clock24 = true;
extraConfig = ''
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
'';
};
};
}

View file

@ -16,7 +16,6 @@
packages = with pkgs; [ packages = with pkgs; [
fastfetch # Show a neat system statistics screen when opening a terminal fastfetch # Show a neat system statistics screen when opening a terminal
nh # Nix Helper: https://github.com/viperML/nh nh # Nix Helper: https://github.com/viperML/nh
zellij # Terminal multiplexer
]; ];
}; };