testing
This commit is contained in:
parent
79b5bcbdd2
commit
327f924150
1 changed files with 10 additions and 5 deletions
15
flake.nix
15
flake.nix
|
@ -15,11 +15,16 @@
|
|||
outputs = { self, nixpkgs, ... } @ inputs:
|
||||
{
|
||||
nixosModules = rec {
|
||||
nixvim-config = { pkgs, ... }:
|
||||
import ./default.nix {
|
||||
inherit inputs;
|
||||
inherit pkgs;
|
||||
};
|
||||
nixvim-config = { config, ... }:
|
||||
let
|
||||
# Get system from the importing module's context
|
||||
system = nixpkgs.lib.systems.elaborate config.nixpkgs.hostPlatform;
|
||||
pkgs = nixpkgs.legacyPackages.${system.system};
|
||||
in
|
||||
import ./default.nix {
|
||||
inherit inputs;
|
||||
inherit pkgs;
|
||||
};
|
||||
default = nixvim-config;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue