Archived
Watch
1
0
Fork
You've already forked nixos
0

LTS kernel & unstable pkgs

This commit is contained in:
asnev 2026-07-03 14:45:56 +07:00
commit 86668f7707
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4

View file

@ -12,6 +12,9 @@
nix-flatpak = {
url = "github:gmodena/nix-flatpak/?ref=latest";
};
nixpkgs-unstable = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
};
outputs = inputs @ {
@ -19,6 +22,7 @@
nixpkgs,
home-manager,
nix-flatpak,
nixpkgs-unstable,
...
}: let
system = "x86_64-linux";
@ -28,9 +32,22 @@
inherit system;
specialArgs = {inherit inputs;};
modules = [
({config, pkgs, ...}: {
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
(final: prev: {
unstable = import nixpkgs-unstable {
inherit (prev) system;
config.allowUnfree = true;
};
})
];
})
./hosts/phostron/default.nix
./profiles/kde.nix
./users/coyote/default.nix
home-manager.nixosModules.home-manager
{
home-manager = {
@ -45,24 +62,6 @@
}
];
};
devShells.${system}.default = let
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
openblas =
if prev.stdenv.hostPlatform.system == "i686-linux"
then prev.openblas.overrideAttrs (_: {doCheck = false;})
else prev.openblas;
})
];
};
in {
pkgs.mkShell = {
buildInputs = with pkgs; [openblas];
};
};
};
};
}