Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions hosts/iso/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@
...
}:
{
config.hardware = {
enableAllFirmware = pkgs.config.allowUnfree;
enableRedistributableFirmware = lib.mkForce true;
config = {
hardware = {
enableAllFirmware = pkgs.config.allowUnfree;
enableRedistributableFirmware = lib.mkForce true;

cpu = lib.genAttrs [ "amd" "intel" ] (_: {
updateMicrocode = true;
});
cpu = lib.genAttrs [ "amd" "intel" ] (_: {
updateMicrocode = true;
});
};

# Enable NVIDIA support for installation hosts using their GPUs
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.open = true; # NOTE: only supports RTX 20+, or GTX 16+
hardware.nvidia.modesetting.enable = true; # needed for Wayland
};
}
19 changes: 1 addition & 18 deletions modules/home-manager/my/programs/microsoft-edge/package.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
{
microsoft-edge,

fetchurl,

commandLineArgs ? "",
}:
# Some fatal bug was messing with user files in version 145.0.3800.53, which has
# since been removed from their sources, causing a build failure.
#
# The PR that bumped the version has not landed in unstable, so we will override
# in-place until then.
#
# TODO: drop when the relevant PR lands in unstable.
# see: https://github.com/NixOS/nixpkgs/issues/492012
(microsoft-edge.overrideAttrs (finalAttrs: prevAttrs: {
version = "145.0.3800.70";

src = fetchurl {
url = "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_${finalAttrs.version}-1_amd64.deb";
hash = "sha256-gUyh9AD1ntnZb2iLRwKLxy0PxY0Dist73oT9AC2pFQI=";
};
})).override {
microsoft-edge.override {
inherit commandLineArgs;
}
7 changes: 1 addition & 6 deletions modules/nixos/documentation/man/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ in {
# They usually exist on most other distros, and I'm very used to that
# availability, so let's bring them back here too.
environment.systemPackages = with pkgs; [
# Something changed in the `linux-manual` build, and the fix PR hasn't
# laned in unstable, so we pull it here.
#
# TODO: drop this fix once the relevant PR is merged
# see: https://github.com/NixOS/nixpkgs/issues/489956
(callPackage ./package.nix {})
linux-manual
man-pages
];
};
Expand Down
60 changes: 0 additions & 60 deletions modules/nixos/documentation/man/package.nix

This file was deleted.

Loading