38 lines
782 B
Nix
38 lines
782 B
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
# Support windows partition
|
|
mySystem = {
|
|
security.wheelNeedsSudoPassword = false;
|
|
system.packages = with pkgs; [
|
|
ntfs3g
|
|
];
|
|
};
|
|
|
|
|
|
boot = {
|
|
# for managing/mounting ntfs
|
|
supportedFilesystems = [ "ntfs" ];
|
|
|
|
loader = {
|
|
grub = {
|
|
enable = true;
|
|
zfsSupport = true;
|
|
device = "nodev";
|
|
mirroredBoots = [
|
|
{ devices = ["nodev"]; path = "/boot";}
|
|
];
|
|
};
|
|
# efi = {
|
|
# canTouchEfiVariables = true;
|
|
# };
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
useDHCP = lib.mkDefault true;
|
|
};
|
|
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
}
|