made podman the default oci runtime
removed the bootloader from the core table in markdown
This commit is contained in:
+10
-18
@@ -15,30 +15,22 @@ imports = [
|
|||||||
|
|
||||||
Base system setup: kernel, bootloader, primary user, SSH, unfree packages.
|
Base system setup: kernel, bootloader, primary user, SSH, unfree packages.
|
||||||
|
|
||||||
| Option | Type | Default | Notes |
|
| Option | Type | Default | Notes |
|
||||||
| ------------------------------- | ------------------------------------------------ | ---------------- | -------------------------------------------------------------------- |
|
| --------------------- | ------------------------------------------------ | ---------------- | -------------------------------------------------------------------- |
|
||||||
| `kernel` | `"stable"` \| `"lts"` \| `"latest"` | `"lts"` | Maps to `linuxPackages`, `linuxPackages_lts`, `linuxPackages_latest` |
|
| `kernel` | `"stable"` \| `"lts"` \| `"latest"` | `"lts"` | Maps to `linuxPackages`, `linuxPackages_lts`, `linuxPackages_latest` |
|
||||||
| `bootloader.type` | `"grub"` \| `"systemd"` | `"grub"` | Which bootloader path to use |
|
| |
|
||||||
| `bootloader.grub.enable` | bool | `false` | Set `true` when `type = "grub"` |
|
| `user.name` | string | `"river"` | |
|
||||||
| `bootloader.grub.device` | string | `"nodev"` | GRUB install target, e.g. `"/dev/sda"` |
|
| `user.fullName` | string | `"Maaz Khokhar"` | |
|
||||||
| `bootloader.systemd.enable` | bool | `false` | Set `true` when `type = "systemd"` |
|
| `user.shell` | string (typed as list in options — likely a bug) | `"fish"` | Used as `programs.${shell}.enable` |
|
||||||
| `bootloader.systemd.efiSupport` | bool | `true` | |
|
| `allowUnfree` | bool | `true` | |
|
||||||
| `user.name` | string | `"river"` | |
|
| `ssh.permitRootLogin` | bool | `false` | |
|
||||||
| `user.fullName` | string | `"Maaz Khokhar"` | |
|
|
||||||
| `user.shell` | string (typed as list in options — likely a bug) | `"fish"` | Used as `programs.${shell}.enable` |
|
|
||||||
| `allowUnfree` | bool | `true` | |
|
|
||||||
| `ssh.permitRootLogin` | bool | `false` | |
|
|
||||||
|
|
||||||
**Minimal core block:**
|
**Minimal core block:**
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
homelab.core = {
|
homelab.core = {
|
||||||
kernel = "lts";
|
kernel = "lts";
|
||||||
bootloader = {
|
# user / allowUnfree / ssh all have sensible defaults
|
||||||
type = "systemd";
|
|
||||||
systemd.enable = true;
|
|
||||||
};
|
|
||||||
# user / allowUnfree / ssh all have sensible defaults
|
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -10,11 +10,15 @@ in
|
|||||||
{
|
{
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf cfg.podman.enable {
|
(lib.mkIf cfg.podman.enable {
|
||||||
virtualisation.podman = {
|
virtualisation = {
|
||||||
enable = true;
|
oci-containers.backend = "podman";
|
||||||
|
podman = {
|
||||||
|
|
||||||
dockerCompat = true;
|
enable = true;
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
|
||||||
|
dockerCompat = true;
|
||||||
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# For rootless containers
|
# For rootless containers
|
||||||
|
|||||||
Reference in New Issue
Block a user