Add basic ISO setup
This commit is contained in:
parent
bdb5132460
commit
411a0e3e74
17
flake.lock
17
flake.lock
|
@ -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": {
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
10
profiles/installed/default.nix
Normal file
10
profiles/installed/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue