af2655f9e2
# Conflicts: # machines/mibook/configuration.nix
52 lines
803 B
Nix
52 lines
803 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
|
|
./disks.nix
|
|
./hardware-configuration.nix
|
|
./environments.nix
|
|
# ./system.nix use docker here
|
|
];
|
|
|
|
networking.hostName = "mibook";
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
device = "/dev/nvme0n1";
|
|
useOSProber = true;
|
|
};
|
|
|
|
|
|
# Configure keymap in X11
|
|
services.xserver.xkb = {
|
|
layout = "de";
|
|
variant = "";
|
|
};
|
|
|
|
# Configure console keymap
|
|
console.keyMap = "de";
|
|
|
|
# Enable CUPS to print documents.
|
|
services.printing.enable = true;
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
hardware.nvidia.prime = {
|
|
sync.enable = false;
|
|
|
|
nvidiaBusId = "PCI:01:00:0";
|
|
intelBusId = "PCI:00:2:0";
|
|
};
|
|
|
|
services.openssh.enable = true;
|
|
|
|
system = {
|
|
stateVersion = "23.05";
|
|
autoUpgrade.enable = true;
|
|
};
|
|
}
|