hosts/beatrice, global/avahi

This commit is contained in:
tulg 2026-01-13 00:11:24 +03:00
parent 6b3f5da05b
commit b813ad2f36
6 changed files with 144 additions and 2 deletions

View file

@ -0,0 +1,49 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
config,
pkgs,
self,
...
}: {
imports = [
./disko.nix
./hardware-configuration.nix
../../modules/nixos/networking/default.nix
../../modules/nixos/virtualization/default.nix
../../modules/nixos/common.nix
../../modules/nixos/fonts.nix
../../modules/nixos/services.nix
../../modules/nixos/users/tulg.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "beatrice";
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
powerManagement.powertop.enable = true;
services.upower.enable = true;
services = {
power-profiles-daemon.enable = true;
tlp = {
enable = false;
settings = {
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
STOP_CHARGE_THRESH_BAT0 = 95;
};
};
};
system.stateVersion = "25.05"; # Did you read the comment?
}