mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
switch to using specialArgs for inputs
made dummy option for deadnix to shutup about disko update flake.lock stopped using neovim overlay
This commit is contained in:
parent
a3e18f9a36
commit
0d2e560191
36 changed files with 162 additions and 164 deletions
19
flake.nix
19
flake.nix
|
|
@ -29,10 +29,7 @@
|
|||
url = "github:Gerg-L/suckless";
|
||||
inputs.nixpkgs.follows = "unstable";
|
||||
};
|
||||
nvim-flake = {
|
||||
url = "github:Gerg-L/nvim-flake";
|
||||
inputs.nixpkgs.follows = "unstable";
|
||||
};
|
||||
nvim-flake.url = "github:Gerg-L/nvim-flake";
|
||||
fetch-rs = {
|
||||
url = "github:Gerg-L/fetch-rs";
|
||||
inputs.nixpkgs.follows = "unstable";
|
||||
|
|
@ -44,22 +41,18 @@
|
|||
nixos-generators,
|
||||
...
|
||||
}: let
|
||||
lib = unstable.lib;
|
||||
inherit (unstable) lib;
|
||||
|
||||
importAll = path:
|
||||
map
|
||||
(module: (import module inputs))
|
||||
(
|
||||
builtins.filter (file: lib.hasSuffix ".nix" file)
|
||||
(lib.filesystem.listFilesRecursive path)
|
||||
);
|
||||
builtins.filter (lib.hasSuffix ".nix")
|
||||
(lib.filesystem.listFilesRecursive path);
|
||||
|
||||
mkSystems = system: names:
|
||||
lib.genAttrs names (
|
||||
name:
|
||||
lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {inherit self;};
|
||||
specialArgs = {inherit inputs self;};
|
||||
modules =
|
||||
importAll ./modules
|
||||
++ importAll (self + "/systems/" + name);
|
||||
|
|
@ -124,7 +117,7 @@
|
|||
value = pkgs.callPackage module {};
|
||||
})
|
||||
(
|
||||
builtins.filter (file: lib.hasSuffix ".nix" file)
|
||||
builtins.filter (lib.hasSuffix ".nix")
|
||||
(lib.filesystem.listFilesRecursive ./pkgs)
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue