Package: Add all target.
This commit is contained in:
parent
736d204b39
commit
a1fde92ec3
10
Makefile
10
Makefile
|
@ -59,17 +59,17 @@ installer:
|
|||
.PHONY: live
|
||||
live:
|
||||
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
|
||||
|
||||
reboot: boot
|
||||
reboot
|
||||
|
||||
.PHONY: recovery
|
||||
recovery:
|
||||
nix build -o installer $(options) $(flake)#nixosConfigurations.recovery.config.system.build.isoImage
|
||||
|
||||
|
||||
show:
|
||||
nix flake show
|
||||
|
||||
|
|
|
@ -5,17 +5,8 @@ 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"
|
||||
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
amd.gpu.enable = true;
|
||||
builder.client.enable = true;
|
||||
display.primary = "DP-1";
|
||||
package.extra = true;
|
||||
package.all = true;
|
||||
print.enable = true;
|
||||
purpose = {
|
||||
creative = true;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
module = {
|
||||
builder.client.enable = true;
|
||||
package.extra = true;
|
||||
package.all = true;
|
||||
print.enable = true;
|
||||
syncthing.enable = true;
|
||||
purpose = {
|
||||
|
|
|
@ -1,22 +1,27 @@
|
|||
{ ... }:
|
||||
{ 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;
|
||||
|
||||
module = {
|
||||
keyd.enable = true;
|
||||
package.all = true;
|
||||
purpose = {
|
||||
live = true;
|
||||
};
|
||||
package = {
|
||||
common = true;
|
||||
core = true;
|
||||
creative = true;
|
||||
desktop = true;
|
||||
dev = true;
|
||||
extra = true;
|
||||
gaming = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
23
host/x86_64-linux/live/default.nix
Normal file
23
host/x86_64-linux/live/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ ... }:
|
||||
{
|
||||
# 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
module = {
|
||||
builder.client.enable = true;
|
||||
package.extra = true;
|
||||
package.all = true;
|
||||
print.enable = true;
|
||||
syncthing.enable = true;
|
||||
purpose = {
|
||||
|
|
|
@ -1,27 +1,31 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.module.package;
|
||||
purpose = config.module.purpose;
|
||||
in
|
||||
{
|
||||
options.module.package = {
|
||||
all = lib.mkEnableOption "All apps.";
|
||||
core = lib.mkEnableOption "Core apps." // {
|
||||
default = true;
|
||||
};
|
||||
common = lib.mkEnableOption "Common Apps." // {
|
||||
default = with purpose; desktop || laptop;
|
||||
default = cfg.all || (with purpose; desktop || laptop);
|
||||
};
|
||||
creative = lib.mkEnableOption "Creative Apps." // {
|
||||
default = purpose.creative;
|
||||
default = cfg.all || purpose.creative;
|
||||
};
|
||||
desktop = lib.mkEnableOption "Desktop Apps." // {
|
||||
default = with purpose; desktop || laptop;
|
||||
default = cfg.all || (with purpose; desktop || laptop);
|
||||
};
|
||||
dev = lib.mkEnableOption "Dev Apps." // {
|
||||
default = purpose.work;
|
||||
default = cfg.all || purpose.work;
|
||||
};
|
||||
gaming = lib.mkEnableOption "Gaming Apps." // {
|
||||
default = purpose.gaming;
|
||||
default = cfg.all || purpose.gaming;
|
||||
};
|
||||
extra = lib.mkEnableOption "Extra Apps." // {
|
||||
default = cfg.all;
|
||||
};
|
||||
extra = lib.mkEnableOption "Extra Apps.";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue