78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
inputs.disko.nixosModules.disko
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
./disko.nix
|
|
];
|
|
|
|
boot.loader.systemd-boot = {
|
|
windows = {
|
|
"10" = {
|
|
title = "Windows 10";
|
|
efiDeviceHandle = "HD2b";
|
|
};
|
|
};
|
|
};
|
|
|
|
zramSwap.enable = true;
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
networking.hostName = "wenar-nix";
|
|
|
|
hardware.graphics.enable = true;
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = false;
|
|
powerManagement.finegrained = false;
|
|
open = false;
|
|
nvidiaSettings = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.production;
|
|
};
|
|
|
|
# My own modules configuration
|
|
krop = {
|
|
audio = {
|
|
enable = true;
|
|
};
|
|
ide = {
|
|
enable = true;
|
|
install-pycharm = true;
|
|
};
|
|
python = {
|
|
enable = true;
|
|
install-additional = true;
|
|
};
|
|
cli = {
|
|
enable = true;
|
|
install-k8s-tools = true;
|
|
install-cloud-cli = true;
|
|
};
|
|
docker = {
|
|
enable = true;
|
|
changeDefaultNetwork = true;
|
|
};
|
|
de.plasma = {
|
|
enable = true;
|
|
};
|
|
};
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
};
|
|
users = {
|
|
"krop" = import ./home.nix;
|
|
};
|
|
};
|
|
}
|