mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{
|
|
pkgs,
|
|
settings,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = let
|
|
modules = [
|
|
"boot"
|
|
"fonts"
|
|
"git"
|
|
#"mining"
|
|
"packages"
|
|
"parrot"
|
|
"picom"
|
|
"refreshrate"
|
|
"scripts"
|
|
"vfio"
|
|
"xserver"
|
|
"zsh"
|
|
];
|
|
in
|
|
lib.lists.forEach modules (
|
|
m:
|
|
../modules + ("/" + m + ".nix")
|
|
);
|
|
networking.hostName = "gerg-desktop";
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
environment.systemPackages = with pkgs; [
|
|
vscodium
|
|
gimp
|
|
];
|
|
#user managment
|
|
users = {
|
|
defaultUserShell = pkgs.zsh;
|
|
users."${settings.username}" = {
|
|
isNormalUser = true;
|
|
extraGroups = ["wheel" "audio" "networkmanager" "kvm" "libvirtd"];
|
|
};
|
|
};
|
|
boot = {
|
|
initrd = {
|
|
kernelModules = ["amdgpu"];
|
|
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"];
|
|
supportedFilesystems = ["ext4" "vfat"];
|
|
includeDefaultModules = false;
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_500GB_S64ENJ0R607785J-part2";
|
|
fsType = "ext4";
|
|
label = "nixos";
|
|
noCheck = false;
|
|
mountPoint = "/";
|
|
neededForBoot = true;
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_500GB_S64ENJ0R607785J-part1";
|
|
fsType = "vfat";
|
|
label = "BOOT";
|
|
noCheck = false;
|
|
mountPoint = "/boot";
|
|
neededForBoot = true;
|
|
};
|
|
};
|
|
}
|