dotfiles/hosts/tempest/default.nix

98 lines
2.7 KiB
Nix
Raw Normal View History

2023-02-11 14:35:38 +00:00
# The Tempest
# System configuration for my desktop
2023-01-21 14:29:03 +00:00
{ inputs, globals, overlays, ... }:
with inputs;
2022-05-08 20:02:13 +00:00
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
globals
2022-05-19 12:48:23 +00:00
home-manager.nixosModules.home-manager
2023-04-16 00:55:56 +00:00
../../modules/common
../../modules/nixos
2022-05-08 20:02:13 +00:00
{
2023-04-16 00:55:56 +00:00
nixpkgs.overlays = [ nur.overlay ] ++ overlays;
# Hardware
2022-12-21 21:18:03 +00:00
physical = true;
2023-02-11 14:35:38 +00:00
networking.hostName = "tempest";
2023-04-16 00:55:56 +00:00
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.enableRedistributableFirmware = true;
2023-04-16 00:55:56 +00:00
powerManagement.cpuFreqGovernor = "performance";
hardware.cpu.amd.updateMicrocode = true;
hardware.fancontrol.enable = true;
hardware.fancontrol.config = ''
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon0=devices/pci0000:00/0000:00:03.1/0000:06:00.0/0000:07:00.0/0000:08:00.0
DEVNAME=hwmon0=amdgpu
FCTEMPS=hwmon0/pwm1=hwmon0/temp1_input
FCFANS= hwmon0/pwm1=hwmon0/fan1_input
MINTEMP=hwmon0/pwm1=50
MAXTEMP=hwmon0/pwm1=70
MINSTART=hwmon0/pwm1=100
MINSTOP=hwmon0/pwm1=10
MINPWM=hwmon0/pwm1=10
MAXPWM=hwmon0/pwm1=240
'';
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
# Must be prepared ahead
2022-10-16 14:20:50 +00:00
identityFile = "/home/${globals.user}/.ssh/id_ed25519";
2023-04-16 00:55:56 +00:00
passwordHash = nixpkgs.lib.fileContents ../../password.sha512;
# Theming
2023-04-16 00:55:56 +00:00
gui.enable = true;
theme = {
colors = (import ../../colorscheme/gruvbox-dark).dark;
2022-11-05 23:38:43 +00:00
dark = true;
2022-06-20 03:44:29 +00:00
};
wallpaper = "${wallpapers}/gruvbox/road.jpg";
gtk.theme.name = nixpkgs.lib.mkDefault "Adwaita-dark";
2022-12-21 21:18:03 +00:00
# Programs and services
2023-02-21 03:42:22 +00:00
charm.enable = true;
2023-01-21 14:29:03 +00:00
neovim.enable = true;
2022-12-21 21:18:03 +00:00
media.enable = true;
dotfiles.enable = true;
2022-12-21 21:18:03 +00:00
firefox.enable = true;
kitty.enable = true;
_1password.enable = true;
2022-12-21 21:18:03 +00:00
discord.enable = true;
nautilus.enable = true;
obsidian.enable = true;
2022-12-22 00:31:25 +00:00
mail.enable = true;
2022-12-21 21:18:03 +00:00
mail.aerc.enable = true;
mail.himalaya.enable = true;
keybase.enable = true;
mullvad.enable = false;
2022-12-21 21:18:03 +00:00
nixlang.enable = true;
2023-03-09 03:56:07 +00:00
yt-dlp.enable = true;
2023-02-05 22:16:20 +00:00
gaming = {
enable = true;
steam.enable = true;
legendary.enable = true;
lutris.enable = true;
leagueoflegends.enable = true;
};
2022-05-08 20:02:13 +00:00
}
];
}