mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
wip: migrate client modules
This commit is contained in:
parent
f6d2ff1544
commit
7ce27d5d2f
245 changed files with 20254 additions and 188 deletions
19
flake.nix
19
flake.nix
|
|
@ -107,8 +107,23 @@
|
|||
|
||||
outputs =
|
||||
inputs:
|
||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
imports = [ (inputs.import-tree [ ./flake ]) ];
|
||||
let
|
||||
mkNixos = { name, system }: {
|
||||
den.hosts.${system} = {
|
||||
${name} = { host, ... }: {
|
||||
instantiate = inputs.self.outputs.instantiateNixos { minimal = false; } host.name host.system;
|
||||
users.swarsel = { };
|
||||
};
|
||||
|
||||
"${name}-minimal" = { host, ... }: {
|
||||
instantiate = inputs.self.outputs.instantiateNixos { minimal = true; } host.name host.system;
|
||||
intoAttr = [ "nixosConfigurationsMinimal" host.name ];
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
inputs.flake-parts.lib.mkFlake { inherit inputs; specialArgs = { inherit mkNixos; }; } {
|
||||
imports = [ (inputs.import-tree [ ./flake ./aspects ]) ];
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue