From a738e0be3ab0280ea9985c3ac20f264e05929771 Mon Sep 17 00:00:00 2001 From: adikro Date: Sat, 20 Dec 2025 15:53:56 +0100 Subject: added power management for laptop --- hosts/laptop/configuration.nix | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'hosts/laptop/configuration.nix') diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index e69de29..b067b26 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -0,0 +1,57 @@ +{ username, ... }: +{ + system.stateVersion = "25.05"; + + imports = [ + ./hardware-configuration.nix + ../../sys/default.nix + ]; + + sys = { + core = { + allowUnfree.enable = true; + + audio.enable = true; + bootloader = "grub"; + drivers = { + enable = true; + amd.enable = true; + }; + fonts.enable = true; + greet.enable = true; + home-manager = { + enable = true; + users.${username}.path = ./home.nix; + }; + locale.enable = true; + network.enable = true; + memory = { + zram.enable = true; + zram.percent = 25; + swapfile.enable = true; + swapfile.size = 8; + }; + power.enable = true; + security.enable = true; + storage = { + enable = true; + keepDays = 14; + }; + users.enable = true; + }; + srv = { + files = { + thunar.enable = true; + utils.enable = true; + }; + gaming = { + enable = true; + steam.enable = true; + }; + nix-helper.enable = true; + }; + wm = { + niri.enable = true; + }; + }; +} -- cgit v1.3