68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|
inputs,
|
|
modulesPath,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
inputs.disko.nixosModules.disko
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
./disk-config.nix
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
myNixOS = {
|
|
home-users = {
|
|
"xmorel" = {
|
|
userConfig = ./home.nix;
|
|
};
|
|
};
|
|
archetype.general.enable = true;
|
|
feature.fonts.enable = true;
|
|
feature.virtualisation.enable = true;
|
|
};
|
|
|
|
boot = {
|
|
loader.grub = {
|
|
efiSupport = true;
|
|
efiInstallAsRemovable = true;
|
|
};
|
|
kernelModules = [
|
|
"coretemp"
|
|
"cpuid"
|
|
];
|
|
kernelParams = [
|
|
"quiet"
|
|
"amd_pstate=guided"
|
|
"processor.max_cstate=1"
|
|
];
|
|
initrd.kernelModules = [ "amdgpu" ];
|
|
plymouth.enable = true;
|
|
};
|
|
programs.obs-studio = {
|
|
enable = true;
|
|
plugins = [ pkgs.obs-studio-plugins.wlrobs ];
|
|
};
|
|
hardware = {
|
|
sane.enable = true;
|
|
};
|
|
networking.hostName = "work-laptop";
|
|
nix.settings.trusted-users = [
|
|
"root"
|
|
"xmorel"
|
|
];
|
|
powerManagement = {
|
|
enable = true;
|
|
cpuFreqGovernor = "schedutil";
|
|
};
|
|
services.auto-cpufreq.enable = true;
|
|
security.sudo.wheelNeedsPassword = false;
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
|
|
|
services.tailscale.enable = true;
|
|
services.tailscale.useRoutingFeatures = "client";
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|