Jalil David Salamé Messina
8b2984be90
All checks were successful
/ check (push) Successful in 26s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 1s
Instead of setting some specific unstable packages, make nixvim always use packages from nixos-unstable.
50 lines
1.4 KiB
Nix
50 lines
1.4 KiB
Nix
{ inputs, lib, ... }:
|
|
{
|
|
flake.nixosModules =
|
|
let
|
|
nvim-config =
|
|
{ pkgs, ... }:
|
|
{
|
|
imports = [
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
(import ../nvim {
|
|
inherit (inputs) unstable;
|
|
inherit (pkgs) system;
|
|
})
|
|
];
|
|
};
|
|
homeManagerModuleSandalone = import ../home {
|
|
inherit nvim-config;
|
|
inherit (inputs) stylix;
|
|
};
|
|
homeManagerModuleNixOS = import ../home { inherit nvim-config; };
|
|
nixosModule = {
|
|
imports = [
|
|
(import ../system { inherit (inputs) stylix; })
|
|
inputs.home-manager.nixosModules.home-manager
|
|
] ++ lib.optional (inputs.lix-module != null) inputs.lix-module.nixosModules.default;
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
sharedModules = [ homeManagerModuleNixOS ];
|
|
};
|
|
# Pin nixpkgs
|
|
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
|
};
|
|
|
|
machines = [ "vm" ];
|
|
mkMachine = hostname: {
|
|
imports = [
|
|
nixosModule
|
|
(import (../machines + "/${hostname}"))
|
|
];
|
|
home-manager.sharedModules = [ { jhome.hostName = hostname; } ];
|
|
};
|
|
machineModules = lib.genAttrs machines mkMachine;
|
|
in
|
|
{
|
|
default = nixosModule;
|
|
inherit nixosModule homeManagerModuleNixOS homeManagerModuleSandalone;
|
|
}
|
|
// machineModules;
|
|
}
|