2022-06-25 17:37:18 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
# Remove ZFS
|
|
|
|
boot.supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" "ext4" "vfat" ];
|
|
|
|
|
2022-07-13 08:48:58 +02:00
|
|
|
# RISC-V Quirks and patches, should be upstreamed
|
2022-06-25 17:37:18 +02:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: prev: {
|
2022-07-13 08:48:58 +02:00
|
|
|
gusb = prev.gusb.overrideAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.gobject-introspection ];
|
2022-06-25 17:37:18 +02:00
|
|
|
});
|
2022-07-13 08:48:58 +02:00
|
|
|
colord = prev.colord.overrideAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.gobject-introspection ];
|
|
|
|
});
|
|
|
|
cage = prev.cage.overrideAttrs (old: {
|
|
|
|
depsBuildBuild = [ prev.pkg-config ];
|
|
|
|
});
|
|
|
|
# ebook_tools = prev.ebook_tools.overrideAttrs (_old: {
|
|
|
|
# preConfigure = ''
|
|
|
|
# NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $($PKG_CONFIG --cflags libzip)"
|
|
|
|
# '';
|
|
|
|
# });
|
|
|
|
discount = prev.discount.overrideAttrs (_old: {
|
|
|
|
configurePlatforms = [];
|
|
|
|
});
|
|
|
|
sane-backends = prev.sane-backends.overrideAttrs (_old: {
|
|
|
|
CFLAGS = "-DHAVE_MMAP=0";
|
|
|
|
});
|
|
|
|
curl = prev.curl.overrideAttrs (_old: {
|
|
|
|
CFLAGS = "-w";
|
|
|
|
LDFLAGS = "-latomic";
|
|
|
|
});
|
|
|
|
x265 = prev.x265.override { multibitdepthSupport = false; };
|
2022-06-25 17:37:18 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
users = {
|
|
|
|
users.default = {
|
|
|
|
password = "visionfive-nix";
|
|
|
|
isNormalUser = true;
|
2022-07-13 08:39:45 +02:00
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
];
|
2022-06-25 17:37:18 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|