mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 13:19:48 +01:00
flake: utilize nix-systems for overridable flake systems
nix-systems introduces a brand-new pattern that allows the end user to add or remove systems from the list of supported systems to the flake See https://github.com/nix-systems/nix-systems for more details
This commit is contained in:
parent
6b77a70ba2
commit
fc8206e7a6
2 changed files with 20 additions and 6 deletions
16
flake.lock
16
flake.lock
|
@ -1501,6 +1501,7 @@
|
||||||
"scrollbar-nvim": "scrollbar-nvim",
|
"scrollbar-nvim": "scrollbar-nvim",
|
||||||
"smartcolumn": "smartcolumn",
|
"smartcolumn": "smartcolumn",
|
||||||
"sqls-nvim": "sqls-nvim",
|
"sqls-nvim": "sqls-nvim",
|
||||||
|
"systems": "systems_2",
|
||||||
"tabular": "tabular",
|
"tabular": "tabular",
|
||||||
"telescope": "telescope",
|
"telescope": "telescope",
|
||||||
"tidalcycles": "tidalcycles",
|
"tidalcycles": "tidalcycles",
|
||||||
|
@ -1639,6 +1640,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"tabular": {
|
"tabular": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -7,12 +7,9 @@
|
||||||
...
|
...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||||
systems = [
|
# provide overridable systems
|
||||||
"x86_64-linux"
|
# https://github.com/nix-systems/nix-systems
|
||||||
"aarch64-linux"
|
systems = import inputs.systems;
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-darwin"
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
# add lib to module args
|
# add lib to module args
|
||||||
|
@ -55,6 +52,7 @@
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
systems.url = "github:nix-systems/default";
|
||||||
|
|
||||||
# For generating documentation website
|
# For generating documentation website
|
||||||
nmd = {
|
nmd = {
|
||||||
|
|
Loading…
Reference in a new issue