sopp: no-sleep

This commit is contained in:
Peder Bergebakken Sundt 2023-07-02 09:19:35 +02:00
parent 324fa6c9d2
commit 808b39c9a5
5 changed files with 14 additions and 4 deletions

View File

@ -15,6 +15,8 @@
#https://github.com/considerate/nixos-odroidhc4
#https://cyberchaos.dev/cyberchaoscreatures/musl-nixos/
#https://github.com/numtide/system-manager
#nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions"
#https://github.com/numtide/nixpkgs-unfree # has a cache
# used to host old docs
#nixpkgs-22.url = "github:NixOS/nixpkgs/nixos-22.11";

View File

@ -24,6 +24,7 @@
../../hardware/gpu/intel.nix
../../hardware/printer/hp-laserjet-p1005.nix
../../profiles/auto-upgrade.nix
../../profiles/no-suspend.nix
../../users # home-manager
../../users/pbsds

View File

@ -1,9 +1,10 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
{
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.gdm.wayland = true;
services.xserver.desktopManager.gnome.enable = true;
services.xserver.displayManager.gdm.autoSuspend = !config.services.openssh.enable;
#services.printing.enable = true; # CUPS
programs.xwayland.enable = true;
xdg.portal.enable = true;

6
profiles/no-suspend.nix Normal file
View File

@ -0,0 +1,6 @@
{
systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
}

View File

@ -3,9 +3,9 @@
# run/build weird binaries
# TODO: somehow make sure this is in sync with remote-builders
boot.binfmt.emulatedSystems = [
"wasm32-wasi"
"wasm64-wasi"
"x86_64-windows"
#"wasm32-wasi"
#"wasm64-wasi"
#"x86_64-windows"
"aarch64-linux"
"riscv64-linux"
#"x86_64-darwin"