Add back the PineBook for later and make etc immutable

This commit is contained in:
Jimbo 2024-11-14 02:29:05 -05:00
parent 6f09998656
commit 8bad6194bc
18 changed files with 245 additions and 43 deletions

View file

@ -1,7 +1,6 @@
{ ... }:
{
imports = [
./extlinux
./lanzaboote
./systemd
];

View file

@ -1,18 +0,0 @@
{ lib, config, ... }:
{
options.system.extlinux = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Lanzaboote and force disable Systemd-boot";
};
};
config = lib.mkIf config.system.extlinux.enable {
boot.loader = {
generic-extlinux-compatible.enable = true;
systemd-boot.enable = lib.mkForce false;
grub.enable = lib.mkForce false;
};
};
}

View file

@ -3,6 +3,7 @@
imports = [
./btrfs
./filesystems
./immutable
./impermanence
./snapper
];

View file

@ -0,0 +1,4 @@
{ ... }:
{
system.etc.overlay.mutable = false;
}

View file

@ -10,5 +10,6 @@
./ssh
./sunshine
./tlp
./userborn
];
}

View file

@ -33,7 +33,7 @@
"9" = "f9";
"0" = "f10";
"-" = "f11";
"=" = "f12";
#"=" = "f12";
};
};
};

View file

@ -0,0 +1,5 @@
{ ... }:
{
# Enable this when 24.11 drops
#services.userborn.enable = true;
}

View file

@ -3,6 +3,7 @@
imports = [
./documentation
./fonts
./minimal
./nix
];
}

View file

@ -1,7 +1,10 @@
{ ... }:
{
documentation = {
nixos.enable = false;
doc.enable = false;
info.enable = false;
nixos.enable = false;
};
programs.command-not-found.enable = true;
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
environment = {
defaultPackages = [ ];
stub-ld.enable = false;
};
programs.less.lessopen = null;
services.logrotate.enable = false;
}