fix!: make all nixosConfigurations
build
Specifically `homix` - remove manual `home-manager` module definition Import `(r)agenix` and `agenix-rekey` by default for all `NixOS` configurations Move `machines.nix` flake module import to `configuration.nix` from `flake.nix`
This commit is contained in:
parent
b48f29dab4
commit
af91b1e76d
7 changed files with 13 additions and 26 deletions
|
@ -7,9 +7,7 @@
|
|||
|
||||
perSystem = {
|
||||
agenix-rekey = {
|
||||
nodes = {
|
||||
inherit (self.nixosConfigurations) jeeves;
|
||||
};
|
||||
nodes = self.nixosConfigurations;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ lib, config, self, inputs, withSystem, ... }:
|
||||
|
||||
let
|
||||
# TODO: works?
|
||||
outputs = self;
|
||||
inherit (import ./utils.nix { inherit lib self; })
|
||||
and
|
||||
|
@ -45,6 +44,9 @@ let
|
|||
# Home Manager
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
(homeManagerModule args)
|
||||
# (r)agenix && agenix-rekey
|
||||
inputs.ragenix.nixosModules.default
|
||||
inputs.agenix-rekey.nixosModules.default
|
||||
# nix-topology
|
||||
inputs.nix-topology.nixosModules.default
|
||||
# Sane default `networking.hostName`
|
||||
|
@ -134,6 +136,10 @@ let
|
|||
machines));
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./machines.nix
|
||||
];
|
||||
|
||||
flake = {
|
||||
# Configurations
|
||||
nixosConfigurations =
|
||||
|
|
|
@ -50,10 +50,7 @@
|
|||
};
|
||||
in {
|
||||
topology = {
|
||||
nixosConfigurations = {
|
||||
inherit (self.nixosConfigurations)
|
||||
jeeves;
|
||||
};
|
||||
nixosConfigurations = self.nixosConfigurations;
|
||||
modules = [
|
||||
({ config, ... }: let
|
||||
inherit (config.lib.topology)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue