Compare commits
2 commits
16b2126033
...
21c3e5cb51
Author | SHA1 | Date | |
---|---|---|---|
Aires | 21c3e5cb51 | ||
Aires | 0f1bda9859 |
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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@'
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue