feat(anki): use unstable anki

This commit is contained in:
buffet 2023-05-02 13:50:13 +02:00
parent 854a5f1e17
commit 2297667eb6
4 changed files with 35 additions and 6 deletions

View file

@ -36,7 +36,8 @@ in {
}; };
packages = with pkgs; [ packages = with pkgs; [
anki-bin unstable.anki
cargo cargo
cargo-crev cargo-crev
cargo-limit cargo-limit

View file

@ -176,6 +176,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1682879489,
"narHash": "sha256-sASwo8gBt7JDnOOstnps90K1wxmVfyhsTPPNTGBPjjg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "da45bf6ec7bbcc5d1e14d3795c025199f28e0de0",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1682970362, "lastModified": 1682970362,
@ -218,6 +234,7 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence", "impermanence": "impermanence",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur", "nur": "nur",
"nvim-cmp-vlime": "nvim-cmp-vlime", "nvim-cmp-vlime": "nvim-cmp-vlime",
"rust-tools-nvim": "rust-tools-nvim", "rust-tools-nvim": "rust-tools-nvim",

View file

@ -2,6 +2,7 @@
inputs = { inputs = {
impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
agenix = { agenix = {
@ -56,14 +57,21 @@
}; };
}; };
outputs = {nixpkgs, ...} @ args: { outputs = {nixpkgs, nixpkgs-unstable, ...} @ args: {
nixosConfigurations.fanya = nixpkgs.lib.nixosSystem { nixosConfigurations.fanya =
let
system = "x86_64-linux"; system = "x86_64-linux";
overlay-unstable = final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
};
in
nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = args; specialArgs = args;
modules = [ modules = [
./fanya.nix ./fanya.nix
(_: {nixpkgs.overlays = [(import ./overlay)];}) (_: {nixpkgs.overlays = [(import ./overlay) overlay-unstable];})
]; ];
}; };
}; };

View file

@ -1,4 +1,4 @@
{nixpkgs, ...}: { {nixpkgs, nixpkgs-unstable, ...}: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@ -34,7 +34,10 @@
}; };
nix = { nix = {
registry.nixpkgs.flake = nixpkgs; registry = {
nixpkgs.flake = nixpkgs;
nixpkgs-unstable.flake = nixpkgs-unstable;
};
settings = { settings = {
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = ["root" "buffet"]; trusted-users = ["root" "buffet"];