1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
Aires 21c3e5cb51 Apps: replace Tmux with Zellij 2024-08-24 11:50:55 -04:00
Aires 0f1bda9859 Dimaga: disable suspend signal when Gnome is installed 2024-08-24 11:44:41 -04:00
4 changed files with 13 additions and 28 deletions

View file

@ -1,4 +1,9 @@
{ config, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
# Do not change this value! This tracks when NixOS was installed on your system.
@ -43,9 +48,12 @@ in
hibernate.enable = false;
hybrid-sleep.enable = false;
};
services.logind = {
lidSwitch = "lock";
lidSwitchDocked = "lock";
services = {
xserver.displayManager.gdm.autoSuspend = lib.mkIf config.aux.system.ui.desktops.gnome.enable false;
logind = {
lidSwitch = "lock";
lidSwitchDocked = "lock";
};
};
services.upower.ignoreLid = true;
@ -83,8 +91,6 @@ 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,7 +15,6 @@ in
networking.hostName = hostName;
aux.system = {
apps.tmux.enable = true;
bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
packages = with pkgs; [
libraspberrypi

View file

@ -1,21 +0,0 @@
{ 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,6 +16,7 @@
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
];
};