nixos_configs/hosts/laptop/configuration.nix
k fc3f547192
Some checks failed
Verify Nix Flake / verify_build (push) Failing after 55s
misc changes
2025-06-22 02:58:14 -04:00

238 lines
5.2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
pkgs,
inputs,
...
}: {
imports = [./hardware-configuration.nix];
nixpkgs.config.allowUnfree = true;
system.autoUpgrade.enable = true;
time.timeZone = "America/New_York";
powerManagement.enable = true;
hardware = {
bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
};
nix = {
gc.automatic = false;
settings = {
experimental-features = ["nix-command" "flakes"];
substituters = ["http://nix.dhilton.xyz/" "https://cache.nixos.org/"];
trusted-public-keys = ["nix.dhilton.xyz:MOW060dF1A0/UXmPZBue9KMxCO13PHYFwx1X9hcdYZ4="];
};
};
networking = {
hostName = "laptop";
networkmanager.enable = true;
firewall.enable = true;
};
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
services = {
hardware.bolt = {enable = false;};
xserver = {
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
ollama = {
enable = false;
package = pkgs.ollama-intel;
};
auto-cpufreq = {
enable = false;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "balance_performance";
turbo = "auto";
};
};
};
logind = {
lidSwitch = "suspend-then-hibernate";
lidSwitchExternalPower = "suspend";
};
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true; # If you have a firewall enabled
};
blueman.enable = true;
fwupd.enable = false;
printing.enable = true;
fprintd.enable = true;
thermald.enable = true;
};
virtualisation.libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd
];
};
};
};
stylix = {
enable = true;
autoEnable = true;
polarity = "light";
image = ./wallpaper.png;
base16Scheme = "${pkgs.base16-schemes}/share/themes/precious-light-warm.yaml";
opacity = {
terminal = 0.85;
popups = 0.75;
desktop = 0.75;
};
cursor = {
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
size = 28;
};
fonts = {
serif = {
package = pkgs.nerd-fonts.iosevka;
name = "Iosevka NF";
};
sansSerif = {
package = pkgs.nerd-fonts.iosevka;
name = "Iosevka NF";
};
monospace = {
package = pkgs.nerd-fonts.iosevka;
name = "Iosevka NFM";
};
};
};
hardware = {
sensor.iio.enable = true;
graphics.enable32Bit = true;
graphics.extraPackages = with pkgs; [
intel-vaapi-driver
intel-media-driver
intel-compute-runtime
];
};
virtualisation.podman = {
enable = true;
dockerCompat = true;
};
programs = {
zsh.enable = true;
};
users.users.k = {
isNormalUser = true;
description = "k";
extraGroups = ["networkmanager" "wheel" "cdrom" "libvirtd"];
packages = with pkgs; [zsh];
shell = pkgs.zsh;
};
home-manager = {
backupFileExtension = "bk";
users = {"k" = import ./home.nix;};
};
environment = {
sessionVariables = {MOZ_USE_XINPUT2 = "1";};
systemPackages = with pkgs; [
config.boot.kernelPackages.perf
];
gnome.excludePackages = (with pkgs; [
atomix # puzzle game
cheese # webcam tool
epiphany # web browser
geary # email reader
gedit # text editor
gnome-characters
gnome-music
gnome-photos
gnome-tour
hitori # sudoku game
iagno # go game
tali # poker game
]);
};
systemd.sleep.extraConfig = ''
HibernateDelaySec=30m
SuspendState=mem
'';
boot = {
plymouth = {enable = true;};
consoleLogLevel = 0;
initrd.verbose = false;
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
loader.timeout = 0;
};
# 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. Its 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?
}