Add basic ISO setup

This commit is contained in:
Benjamin Bädorf 2021-10-21 20:06:57 +02:00
parent bdb5132460
commit 411a0e3e74
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
4 changed files with 34 additions and 3 deletions

View file

@ -245,6 +245,21 @@
"type": "github"
}
},
"flake-utils_3": {
"locked": {
"lastModified": 1623875721,
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home": {
"inputs": {
"nixpkgs": [
@ -359,7 +374,7 @@
},
"nix-dram": {
"inputs": {
"flake-utils": "flake-utils_2",
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs"
},
"locked": {

View file

@ -129,7 +129,7 @@
};
suites = with profiles; rec {
base = [ core users.nixos users.root ];
pubsolaros = [ core base-user users.root ];
pubsolaros = [ core installed base-user users.root ];
anonymous = [ pubsolaros users.nixos ];
};
};

View file

@ -9,6 +9,12 @@ with lib; {
type = types.str;
description = "Keyfile location";
};
pub-solar.x-os.enableBootLoader = mkOption {
type = types.bool;
default = false;
description = "Whether to include the grub bootloader. Turn this off for ISO images.";
};
};
config = {
@ -31,7 +37,7 @@ with lib; {
efi.efiSysMountPoint = "/boot/efi";
grub = {
enable = true;
enable = cfg.enableBootLoader;
version = 2;
device = "nodev";
efiSupport = true;

View file

@ -0,0 +1,10 @@
{ self, config, lib, pkgs, ... }:
let inherit (lib) fileContents;
in
{
imports = [ ../cachix ];
config = {
pub-solar.printing.enable = true;
pub-solar.x-os.enableBootLoader = true;
};
}