Live: Rename to installer.

This commit is contained in:
Dmitry Voronin 2025-01-18 21:01:06 +03:00
parent 3a10a6943f
commit 736d204b39
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
6 changed files with 62 additions and 39 deletions

View file

@ -52,9 +52,17 @@ install-hm:
nix-channel --update
nix-shell '<home-manager>' -A install
.PHONY: installer
installer:
nix build -o installer $(options) $(flake)#nixosConfigurations.installer.config.system.build.isoImage
.PHONY: live
live:
nix build -o live $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
nix build -o installer $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
.PHONY: recovery
recovery:
nix build -o installer $(options) $(flake)#nixosConfigurations.recovery.config.system.build.isoImage
no-nixconf:
mv /etc/nix/nix.conf /etc/nix/nix.conf_ || true

21
config/Live.nix Normal file
View file

@ -0,0 +1,21 @@
{ lib, config, inputs, ... }:
let
cfg = config.module.live;
in
{
config = lib.mkIf cfg.enable {
imports = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
];
networking.wireless.enable = lib.mkForce false;
# Override my settings to allow SSH logins using root password.
services.openssh.settings = {
PasswordAuthentication = lib.mkForce true;
PermitRootLogin = lib.mkForce "yes";
};
};
}

View file

@ -0,0 +1,22 @@
{ ... }:
{
# Root user setup.
home.nixos.enable = true;
user.root = true;
module = {
keyd.enable = true;
purpose = {
live = true;
};
package = {
common = true;
core = true;
creative = true;
desktop = true;
dev = true;
extra = true;
gaming = true;
};
};
}

View file

@ -1,38 +0,0 @@
{ inputs, lib, ... }:
{
imports = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
];
networking.wireless.enable = lib.mkForce false;
# Override my settings to allow SSH logins using root password.
services.openssh.settings = {
PasswordAuthentication = lib.mkForce true;
PermitRootLogin = lib.mkForce "yes";
};
# Root user setup.
home.nixos.enable = true;
user = {
root = true;
voronind = true;
};
module = {
keyd.enable = true;
sway.enable = true;
kernel.enable = true;
wallpaper.video = false;
package = {
common = true;
core = true;
creative = true;
desktop = true;
dev = true;
extra = true;
gaming = true;
};
};
}

9
option/Live.nix Normal file
View file

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

View file

@ -6,6 +6,7 @@
disown = lib.mkEnableOption "modules for machines not used by me.";
gaming = lib.mkEnableOption "gaming modules.";
laptop = lib.mkEnableOption "laptop modules.";
live = lib.mkEnableOption "live modules.";
phone = lib.mkEnableOption "phone modules.";
router = lib.mkEnableOption "router modules.";
server = lib.mkEnableOption "server modules.";