[djamba][stitch] configs refactoring + multiple hosts
This commit is contained in:
100
hosts/stitch.nix
Normal file
100
hosts/stitch.nix
Normal file
@@ -0,0 +1,100 @@
|
||||
# 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, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hw-stitch.nix
|
||||
../defaults/default.nix
|
||||
../apps/apps-list.nix
|
||||
../apps/firefox.nix
|
||||
../apps/flameshot.nix
|
||||
../desktop-environments/gnome.nix
|
||||
];
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_12;
|
||||
# boot.kernelPatches = [
|
||||
# {
|
||||
# name = "amd-drm-glitch-fix";
|
||||
# patch = (pkgs.fetchurl {
|
||||
# url = "https://patchwork.freedesktop.org/patch/605900/raw/";
|
||||
# hash = "sha256-WR537QGQak5pwm4BnLiQ/pc7gAkn2SdI3QRvGTRZSFE=";
|
||||
# });
|
||||
# }
|
||||
# ];
|
||||
boot.kernelParams = ["amd_pstate=active" "iommu=relaxed"];
|
||||
boot.supportedFilesystems = ["ntfs"];
|
||||
|
||||
networking.hostName = "nixos"; # Define your hostname.
|
||||
networking.hosts = {
|
||||
"127.0.0.1" = [ "dev.tolma.ch" ];
|
||||
};
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
environment.sessionVariables = rec {
|
||||
# fixing disappering cursor in alacritty - https://github.com/NixOS/nixpkgs/issues/22652
|
||||
XCURSOR_THEME = "Vimix-cursors";
|
||||
# vscode wayland
|
||||
NIXOS_OZONE_WL = 1;
|
||||
};
|
||||
|
||||
# xteink4 crosspoint env
|
||||
services.udev.packages = with pkgs; [
|
||||
platformio-core.udev
|
||||
openocd
|
||||
];
|
||||
|
||||
services.cpupower-gui.enable = true;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
|
||||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 20;
|
||||
|
||||
USB_EXCLUDE_BTUSB = 1;
|
||||
|
||||
#Optional helps save long term battery health
|
||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
|
||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.venya = {
|
||||
isNormalUser = true;
|
||||
description = "Dmitry Chumak";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cpupower-gui
|
||||
ryzenadj
|
||||
powertop
|
||||
linuxKernel.packages.linux_6_12.cpupower
|
||||
linuxKernel.packages.linux_6_12.ryzen-smu
|
||||
];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
}
|
||||
Reference in New Issue
Block a user