split up flake and use emacs as nixos module
This commit is contained in:
parent
c9902751ca
commit
ec66697d14
5 changed files with 56 additions and 67 deletions
20
hosts.nix
20
hosts.nix
|
|
@ -6,18 +6,26 @@ in
|
|||
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
inputs.base16.nixosModules
|
||||
{ scheme = "${inputs.tt-schemes}/base16/${themeName}"; }
|
||||
config.wrappers.emacs.install
|
||||
./configuration.nix
|
||||
./modules/theme.nix
|
||||
./modules/programs/emacs/emacs.nix
|
||||
inputs.base16.nixosModule
|
||||
{ scheme = "${inputs.tt-schemes}/base16/${themeName}.yaml"; }
|
||||
./modules/hosts/nerv/configuration.nix
|
||||
./modules/home.nix
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
}
|
||||
{
|
||||
imports = [
|
||||
(inputs.wrappers.lib.getInstallModule {
|
||||
name = "emacs";
|
||||
value = inputs.wrappers.lib.wrapperModules.emacs;
|
||||
})
|
||||
./modules/programs/emacs/emacs.nix
|
||||
];
|
||||
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue