Live: Fix import errors.

This commit is contained in:
Dmitry Voronin 2025-01-18 22:06:57 +03:00
parent 739d3e0fee
commit 2884b3b3b8
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
6 changed files with 19 additions and 31 deletions

View file

@ -1,12 +0,0 @@
{ lib, config, inputs, ... }:
let
cfg = config.module.live;
in
{
config = lib.mkIf cfg.enable {
imports = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix"
];
};
}

View file

@ -1,4 +1,4 @@
{ inputs, lib, ... }:
{ inputs, lib, pkgs, ... }:
{
imports = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
@ -13,6 +13,11 @@
PermitRootLogin = lib.mkForce "yes";
};
# Needed by installer smh.
environment.systemPackages = with pkgs; [
ghc
];
# Root user setup.
home.nixos.enable = true;
user.root = true;

View file

@ -1,5 +1,7 @@
{ ... }:
{ inputs, ... }:
{
imports = [ "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix" ];
# Root user setup.
home.nixos.enable = true;
user.root = true;
@ -16,4 +18,3 @@
};
};
}

View file

@ -1,5 +1,7 @@
{ ... }:
{ inputs, ... }:
{
imports = [ "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix" ];
# Root user setup.
home.nixos.enable = true;
user.root = true;
@ -11,4 +13,3 @@
};
};
}

View file

@ -1,9 +0,0 @@
{ lib, config, ... }:
let
purpose = config.module.purpose;
in
{
options.module.live.enable = lib.mkEnableOption "the live modules." // {
default = purpose.live;
};
}

View file

@ -76,11 +76,13 @@ in
cursor = {
name = mkStrOption "Bibata-Modern-Custom";
size = mkIntOption 24;
package = mkPkgOption (inputs.nix-cursors.packages.${pkgs.system}.bibata-modern-cursor.override {
package = mkPkgOption (
inputs.nix-cursors.packages.${pkgs.system}.bibata-modern-cursor.override {
accent_color = "#${cfg.color.accent}";
background_color = "#${cfg.color.bg.light}";
outline_color = "#${cfg.color.border}";
});
}
);
};
# cursor = {
# name = mkStrOption "phinger-cursors-light";