flake/hosts/murk/configuration.nix
2025-08-08 08:55:56 +00:00

111 lines
2.5 KiB
Nix

{ config, lib, pkgs, inputs, system, sources, modulesPath, ... }:
let cfg = config.mods;
in {
# Hardware
imports = [
./hardware-configuration.nix
"${
builtins.fetchTarball {
url =
"https://github.com/nix-community/disko/archive/refs/tags/v1.12.0.tar.gz";
sha256 = "0wbx518d2x54yn4xh98cgm65wvj0gpy6nia6ra7ns4j63hx14fkq";
}
}/module.nix"
./disk-config.nix
# (inputs.nixpkgs
# + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
];
environment.systemPackages = with inputs.nix-alien.packages.${system}; [
nix-alien
pkgs.libratbag
pkgs.piper
pkgs.libpq
];
# System
mods.user.name = "muon";
networking.hostName = "murk";
networking.hostId = "a2309090";
mods.home.file = ./home.nix;
nix.settings.trusted-users = [ "root" "muon" ];
users.users.muon.extraGroups = [ "docker" ];
# Modules
mods.desktop.enable = true;
mods.boot.enable = true;
mods.theme.enable = true;
mods.theme.scheme = "woodland";
mods.theme.wallpaper = ./wallpaper.png;
services.xserver.windowManager.i3.enable = true;
mods.impermanence.enable = true;
services.hardware.openrgb.enable = true;
virtualisation.docker.enable = true;
# Persist
environment.persistence."/persist" = {
directories = [ "/etc/NetworkManager" "/var/lib/NetworkManager" ];
};
# Hardware preferences
environment.variables = {
WINIT_HIDPI_FACTOR = "1";
WINIT_X11_SCALE_FACTOR = "1";
};
## Laptop
powerManagement.enable = true;
services.thermald.enable = true;
services.tlp.enable = true;
# services.xserver.dpi = lib.mkForce 180;
# environment.variables = {
# GDK_SCALE = "2";
# GDK_DPI_SCALE = "0.5";
# _JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
# };
## Monitors
mods.monitors = {
primary = {
name = "eDP-1";
config = {
enable = true;
mode = "2560x1600";
position = "1264x1440";
primary = true;
rate = "60.00";
dpi = 192;
};
};
left = {
name = "DP-1-2";
config = {
enable = true;
mode = "2560x1440";
position = "0x0";
rate = "60.00";
dpi = 96;
};
};
right = {
name = "DP-1-1";
config = {
enable = true;
mode = "2560x1440";
position = "2560x0";
rate = "60.00";
dpi = 96;
};
};
};
## Mouse
services.libinput.mouse.accelProfile = "flat";
# Version of first install
system.stateVersion = "23.05";
}