make live iso minimal

This commit is contained in:
2024-10-19 08:44:02 -05:00
parent 2181795bdb
commit ffae6f8057
13 changed files with 117 additions and 700 deletions

View File

@@ -1,14 +1,12 @@
{ config, lib, pkgs, core_inputs, ... }: {
imports = [
./live
./laptop
./homebox
];
sysconfig.laptop.enable = lib.mkDefault false;
sysconfig.homebox.enable = lib.mkDefault false;
sysconfig.live.enable = lib.mkDefault true;
# Set your time zone.
time.timeZone = "America/Chicago";

View File

@@ -22,7 +22,6 @@
}
];
sysconfig.live.enable = lib.mkForce false;
boot = {
loader = {

View File

@@ -19,7 +19,6 @@
}
];
sysconfig.live.enable = lib.mkForce false;
nixpkgs.config.allowUnfree = true;

View File

@@ -1,24 +0,0 @@
{ config, lib, pkgs, ... }: {
options.sysconfig.live.enable = lib.options.mkOption {
type = lib.types.bool;
default = true;
};
config = lib.mkIf config.sysconfig.live.enable {
services ={
xserver.enable = true;
displayManager.enable = true;
};
environment = {
shells = with pkgs; [ zsh ];
sessionVariables = {};
};
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
system.stateVersion = "24.05";
};
}

View File

@@ -0,0 +1,70 @@
{
description = "install nixos declaratively";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
};
outputs = { ... }@inputs: let
system = "x86_64-linux";
devices = {
main = "/dev/nvme0n1";
bonus.disk1 = "/dev/nvme1n1";
};
pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
nixosConfigurations.homebox = inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [
inputs.disko.nixosModules.default
inputs.impermanence.nixosModules.impermanece
./disko
./impermanece
];
sysconfig.opts = {
inherit devices;
};
disko = {
enable = true;
impermanent = true;
};
networking = {
hostName = "homebox";
nameservers = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
networkmanager.enable = true;
};
users.users."nathan" = {
isNormalUser = true;
description = "Nathan";
initialPassword = "7567";
extraGroups = [ "wheel" "networkmanager" ];
};
services.openssh.enable = true;
environment.systemPackages = with pkgs; [
git
home-manager
];
};
};
}