mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
92 lines
1.9 KiB
Nix
92 lines
1.9 KiB
Nix
{ config, lib, pkgs, inputs, system, ... }:
|
|
let cfg = config.mods;
|
|
|
|
in {
|
|
# Hardware
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
environment.systemPackages = with inputs.nix-alien.packages.${system};
|
|
[ nix-alien ];
|
|
|
|
# System
|
|
mods.user.name = "muon";
|
|
networking.hostName = "muho";
|
|
networking.hostId = "56e55e83";
|
|
mods.home.file = ./home.nix;
|
|
|
|
# Modules
|
|
mods.desktop.enable = true;
|
|
mods.desktop.gaming.enable = true;
|
|
mods.boot.enable = true;
|
|
|
|
mods.theme.enable = true;
|
|
mods.theme.scheme = "woodland";
|
|
|
|
mods.server.media.enable = true;
|
|
|
|
mods.server.search.enable = true;
|
|
|
|
mods.tailscale.enable = true;
|
|
mods.wireguard.id = 3;
|
|
|
|
services.xserver.windowManager.i3.enable = true;
|
|
|
|
# Proprietary </3
|
|
mods.unfree.steam.enable = true;
|
|
mods.unfree.nvidia.enable = true;
|
|
mods.unfree.minecraft.enable = true;
|
|
|
|
# Hardware preferences
|
|
|
|
## Mouse
|
|
services.libinput.mouse.accelProfile = "flat";
|
|
|
|
## Monitors
|
|
mods.monitors = {
|
|
primary = {
|
|
name = "DVI-D-0";
|
|
config = {
|
|
enable = true;
|
|
mode = "1920x1080";
|
|
position = "0x0";
|
|
primary = true;
|
|
rate = "59.93";
|
|
};
|
|
};
|
|
secondary = {
|
|
name = "HDMI-0";
|
|
config = {
|
|
enable = true;
|
|
mode = "1280x768";
|
|
position = "1920x312";
|
|
rate = "59.99";
|
|
};
|
|
};
|
|
};
|
|
|
|
# Turn off screen-saver
|
|
environment.extraInit = ''
|
|
xset s off -dpms
|
|
'';
|
|
|
|
environment.variables = {
|
|
WINIT_HIDPI_FACTOR = "1";
|
|
WINIT_X11_SCALE_FACTOR = "1";
|
|
};
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
|
|
## GPU (AMD Radeon 7950)
|
|
## https://wiki.nixos.org/wiki/AMD_GPU
|
|
# boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ];
|
|
|
|
## GPU (NVidia GTX 1060)
|
|
## https://nixos.wiki/wiki/Nvidia
|
|
hardware.nvidia.powerManagement.enable = false;
|
|
|
|
# Version of first install
|
|
system.stateVersion = "23.05";
|
|
}
|