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

View file

@ -15,6 +15,7 @@ in
networking.hostName = hostName;
aux.system = {
apps.tmux.enable = true;
bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
packages = with pkgs; [
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; [
fastfetch # Show a neat system statistics screen when opening a terminal
nh # Nix Helper: https://github.com/viperML/nh
zellij # Terminal multiplexer
];
};