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 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.
@ -43,10 +48,13 @@ in
hibernate.enable = false; hibernate.enable = false;
hybrid-sleep.enable = false; hybrid-sleep.enable = false;
}; };
services.logind = { services = {
xserver.displayManager.gdm.autoSuspend = lib.mkIf config.aux.system.ui.desktops.gnome.enable false;
logind = {
lidSwitch = "lock"; lidSwitch = "lock";
lidSwitchDocked = "lock"; lidSwitchDocked = "lock";
}; };
};
services.upower.ignoreLid = true; services.upower.ignoreLid = true;
# Enable support for building ARM64 packages # Enable support for building ARM64 packages
@ -83,8 +91,6 @@ 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,7 +15,6 @@ 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

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; [ 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
]; ];
}; };