aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2024-01-23 23:11:39 +0300
committerspl3g <spleefer6@yandex.ru>2025-05-01 14:56:39 +0300
commit0391e12ffbf18edba79e76a299f7f84cabbe762b (patch)
tree17144424006ac67131c08503ca8fcffb57faa2b8 /nixos
parent993a7f04f2cf63a8efdff2b21980e56ccab6525f (diff)
some emacs and hypr changes
Diffstat (limited to 'nixos')
-rw-r--r--nixos/general.nix4
-rw-r--r--nixos/laptop/configuration.nix7
2 files changed, 10 insertions, 1 deletions
diff --git a/nixos/general.nix b/nixos/general.nix
index f02e889..6eb11ff 100644
--- a/nixos/general.nix
+++ b/nixos/general.nix
@@ -37,13 +37,15 @@
networking.networkmanager = {
enable = true;
};
- networking.firewall.enable = false;
networking.nftables.enable = true;
+
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
+
security.rtkit.enable = true;
+
services.pipewire = {
enable = true;
audio.enable = true;
diff --git a/nixos/laptop/configuration.nix b/nixos/laptop/configuration.nix
index 948aed6..7d38479 100644
--- a/nixos/laptop/configuration.nix
+++ b/nixos/laptop/configuration.nix
@@ -42,6 +42,13 @@
users.jerpo = import ../../home-manager/laptop;
};
+ services.logind.extraConfig = ''
+ HandlePowerKey=ignore
+ HandleLidSwitch=suspend
+ HandleLidSwitchExternalPower=suspend
+ '';
+
+
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.05";
}