mochi/nixos/profiles/hw-legion-15arh05h.nix

43 lines
930 B
Nix
Raw Normal View History

2024-06-21 12:55:52 -05:00
{ config, lib, pkgs, ... }:
2024-06-20 13:03:44 -05:00
{
2024-06-21 12:55:52 -05:00
# Support windows partition
2024-06-26 10:55:36 -05:00
mySystem = {
security.wheelNeedsSudoPassword = false;
system.packages = with pkgs; [
ntfs3g
fira-code-nerdfont
];
};
2024-06-21 12:55:52 -05:00
2024-06-26 10:53:30 -05:00
2024-06-20 13:03:44 -05:00
boot = {
2024-06-21 12:55:52 -05:00
# for managing/mounting ntfs
supportedFilesystems = [ "ntfs" ];
2024-06-20 13:03:44 -05:00
# Use the systemd-boot EFI boot loader.
loader = {
2024-06-21 12:55:52 -05:00
grub = {
2024-06-20 13:03:44 -05:00
enable = true;
2024-06-21 19:33:05 -05:00
useOSProber = true;
2024-06-21 12:55:52 -05:00
zfsSupport = true;
efiSupport = true;
2024-06-22 18:13:31 -05:00
efiInstallAsRemovable = true;
2024-06-21 12:55:52 -05:00
mirroredBoots = [
{ devices = ["nodev"]; path = "/boot";}
];
2024-06-20 13:03:44 -05:00
};
2024-06-22 18:13:31 -05:00
# efi = {
# canTouchEfiVariables = true;
# };
2024-06-20 13:03:44 -05:00
};
};
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";
}