From 768b4846b02ae219ca3b1bfa58fbdb0e30325779 Mon Sep 17 00:00:00 2001 From: misschloe777 Date: Sun, 28 Sep 2025 11:53:38 +0200 Subject: [PATCH] added `auto-cpufreq` and blahaj plymouth --- flake.nix | 11 +++--- hosts/buldak/configuration.nix | 69 ++++++++++++++++++++++------------ 2 files changed, 49 insertions(+), 31 deletions(-) diff --git a/flake.nix b/flake.nix index 868d163..1aee8ed 100644 --- a/flake.nix +++ b/flake.nix @@ -64,9 +64,8 @@ url = "github:moonlight-mod/moonlight/develop"; # Add `/develop` to the flake URL to use nightly. inputs.nixpkgs.follows = "nixpkgsUnstable"; }; - - matugen = { - url = "github:/InioX/Matugen"; + auto-cpufreq = { + url = "github:AdnanHodzic/auto-cpufreq"; inputs.nixpkgs.follows = "nixpkgsUnstable"; }; }; @@ -87,6 +86,7 @@ musnix, lix-module, moonlight, + auto-cpufreq, ... }@inputs: let @@ -154,8 +154,8 @@ specialArgs = specialArgs; modules = [ ./hosts/buldak/configuration.nix - - lix-module.nixosModules.default + # lix-module.nixosModules.default + auto-cpufreq.nixosModules.default catppuccin.nixosModules.catppuccin home-manager.nixosModules.home-manager { @@ -170,7 +170,6 @@ home.packages = [ inputs.miovim.packages.${system}.default - inputs.matugen.nixosModules.default ]; }; diff --git a/hosts/buldak/configuration.nix b/hosts/buldak/configuration.nix index de2540a..ce8ee06 100644 --- a/hosts/buldak/configuration.nix +++ b/hosts/buldak/configuration.nix @@ -11,7 +11,6 @@ { imports = [ - # Include the results of the hardware scan. ./hardware-configuration.nix ../../shared/client/tailscale.nix ../../shared/client/niri.nix @@ -21,18 +20,40 @@ ]; # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + + boot = { + plymouth = { + enable = true; + theme = "rings"; + themePackages = with pkgs; [ + # By default we would install all themes + plymouth-blahaj-theme + ]; + }; + + # Enable "Silent boot" + consoleLogLevel = 3; + initrd.verbose = false; + kernelParams = [ + "quiet" + "splash" + "boot.shell_on_fail" + "udev.log_priority=3" + "rd.systemd.show_status=auto" + ]; + # Hide the OS choice for bootloaders. + # It's still possible to open the bootloader list by pressing any key + # It will just not appear on screen unless a key is pressed + loader.timeout = 0; + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + }; boot.initrd.luks.devices."luks-d265e9b2-2ef5-445a-83f2-ec022e0eec7b".device = "/dev/disk/by-uuid/d265e9b2-2ef5-445a-83f2-ec022e0eec7b"; networking.hostName = "buldak"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - # Enable networking networking.networkmanager.enable = true; @@ -89,32 +110,30 @@ # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - # wget + poweralertd + matugen ]; nixpkgs.config.permittedInsecurePackages = [ "libsoup-2.74.3" ]; - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; + nix.package = pkgs.lixPackageSets.stable.lix; - # List services that you want to enable: + # laptop stuff + services.thermald.enable = true; - # Enable the OpenSSH daemon. - # services.openssh.enable = true; - - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; + programs.auto-cpufreq.enable = true; + programs.auto-cpufreq.settings = { + battery = { + governor = "powersave"; + turbo = "auto"; + }; + charger = { + governor = "performance"; + turbo = "auto"; + }; + }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions