System stuff lol

This commit is contained in:
Lucas Thelen 2025-09-30 03:07:28 +00:00
parent b7eee0a829
commit 6c32589d07
3 changed files with 14 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
result

View file

@ -12,6 +12,7 @@
nixosConfigurations.homelab = nixpkgs.lib.nixosSystem {
modules = [
agenix.nixosModules.default
./system.nix
./configuration.nix
./hardware-configuration.nix
./networking/host.nix

View file

@ -2,5 +2,16 @@
# System boots
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
nix.settings.experimental.features = [ "nix-commmand" "flakes" ];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Don't turn off when lid is closed
services.logind.lidSwitchExternalPower = "ignore";
# Don't hybernate. You're a server!
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
}