refactor(hosts): move host configurations into folders
This commit is contained in:
parent
7e5e0d2c87
commit
02115fe73d
5 changed files with 48 additions and 47 deletions
hosts/doctr
24
hosts/doctr/default.nix
Normal file
24
hosts/doctr/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ self, ... }:
|
||||
{
|
||||
perSystem =
|
||||
{
|
||||
self',
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
packages.doctr = self.lib.mkOpenwrtImage {
|
||||
inherit pkgs;
|
||||
hostname = "doctr";
|
||||
timezone = "Europe/Berlin";
|
||||
ipaddr = "192.168.1.1";
|
||||
packages = [
|
||||
"tang" # for automatic LUKS decryption with clevis
|
||||
];
|
||||
uci = ''
|
||||
uci set tang.config.enabled='1'
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue