nix/misc/system.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-10 22:10:55 +02:00
args @ { pkgs, ... }:
2024-07-04 01:14:24 +02:00
{
boot = {
loader = {
timeout = 2;
grub = {
enable = true;
device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_500GB_S4CNNE0M700172J";
gfxmodeBios = "auto"; # 1920x1080 did not work, this doesn't either
splashImage = null;
font = null;
};
};
# this doesn't even work
2024-07-10 22:10:55 +02:00
kernelParams = let
monitors = import ../utils/monitors.nix args;
in [
"video=${monitors.left}:1920x1080@240"
"video=${monitors.right}:1920x1080@75"
2024-07-04 01:14:24 +02:00
];
initrd.kernelModules = [ "amdgpu" ];
};
2024-07-10 14:05:49 +02:00
hardware.amdgpu.amdvlk.enable = true;
2024-07-04 01:14:24 +02:00
time.timeZone = "Europe/Warsaw";
sound.enable = true;
hardware.pulseaudio.enable = true;
system.stateVersion = "23.11";
2024-07-11 16:09:16 +02:00
2024-07-04 01:14:24 +02:00
users.users.krizej = {
isNormalUser = true;
2024-07-04 01:25:55 +02:00
extraGroups = [ "wheel" "input" ];
2024-07-04 01:14:24 +02:00
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.krizej = rec {
home.stateVersion = "23.11";
home.username = "krizej";
home.homeDirectory = "/home/krizej";
};
};
2024-07-10 15:01:17 +02:00
environment.localBinInPath = true;
2024-07-04 01:14:24 +02:00
environment.systemPackages = [ pkgs.ntfs3g ];
}