Some checks failed
/ check (nvimDev) (push) Successful in 5s
/ check (nvimHeadless) (push) Successful in 3s
/ check (nvimNoBundledBins) (push) Successful in 5s
/ check (nvimNoLsp) (push) Successful in 5s
/ check (nvimNoTSGrammars) (push) Successful in 5s
/ check (treefmt) (push) Successful in 3s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 2s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Failing after 2s
/ build (nvim) (push) Successful in 9s
/ report-size (push) Has been skipped
Looks cooler c:
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ inputs, lib, ... }:
|
|
{
|
|
flake.nixosModules =
|
|
let
|
|
nvim-config = {
|
|
imports = [
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
../nvim
|
|
];
|
|
};
|
|
homeManagerModuleSandalone = import ../home {
|
|
inherit nvim-config;
|
|
inherit (inputs) stylix;
|
|
};
|
|
homeManagerModuleNixOS = import ../home { inherit nvim-config; };
|
|
nixosModule = {
|
|
imports = [
|
|
(import ../system { inherit (inputs) stylix; })
|
|
inputs.niri.nixosModules.niri
|
|
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;
|
|
}
|