diff options
author | makefu <github@syntax-fehler.de> | 2023-06-03 15:42:47 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2023-06-03 15:42:47 +0200 |
commit | 01a129113014ec6ae1ba267da89898c78b5b36b1 (patch) | |
tree | b294a6269880c6aa214f2e2c5d02a6bd90d54f65 /makefu | |
parent | 6017dfb05359d43b337822bf850082a60a53b941 (diff) |
ma minicake.r: init
Diffstat (limited to 'makefu')
-rw-r--r-- | makefu/1systems/minicake/config.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/makefu/1systems/minicake/config.nix b/makefu/1systems/minicake/config.nix new file mode 100644 index 000000000..fe66679ad --- /dev/null +++ b/makefu/1systems/minicake/config.nix @@ -0,0 +1,27 @@ +{ config,nixpkgsPath, pkgs, lib, ... }: +{ + krebs = { + enable = true; + + dns.providers.lan = "hosts"; + build.user = config.krebs.users.makefu; + }; + imports = [ + (nixpkgsPath + "/nixos/modules/profiles/minimal.nix") + (nixpkgsPath + "/nixos/modules/profiles/installation-device.nix") + ]; + + # cifs-utils fails to cross-compile + # Let's simplify this by removing all unneeded filesystems from the image. + boot.supportedFilesystems = lib.mkForce [ "vfat" ]; + + boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; + + + users.users = { + root = { + openssh.authorizedKeys.keys = [ config.krebs.users.makefu.pubkey ]; + }; + }; + services.openssh.enable = true; +} |