This commit is contained in:
xunuwu 2024-03-16 08:29:15 +01:00
parent 13773b1be3
commit c62289217c
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
5 changed files with 62 additions and 0 deletions

View file

@ -7,6 +7,10 @@ local OPERATION *FLAGS:
{{OPERATION}} {{OPERATION}}
buildiso *FLAGS:
nix build .#nixosConfigurations.liveiso.config.system.build.isoImage {{FLAGS}}
remote OPERATION HOST HOSTNAME *FLAGS: remote OPERATION HOST HOSTNAME *FLAGS:
nixos-rebuild \ nixos-rebuild \
--fast \ --fast \

View file

@ -87,6 +87,19 @@ in {
} }
]; ];
}; };
liveiso = {
deployment.targetHost = null;
imports = [
./liveiso
"${mod}/nix"
"${mod}/core/security.nix"
"${mod}/services"
"${mod}/desktop"
];
};
}; };
flake.nixosConfigurations = let flake.nixosConfigurations = let
l = inputs.nixpkgs.lib; l = inputs.nixpkgs.lib;

19
hosts/liveiso/default.nix Normal file
View file

@ -0,0 +1,19 @@
{
inputs,
modulesPath,
lib,
...
}: {
imports = [
./tools.nix
./sway.nix
];
isoImage.edition = "sway-custom";
networking.hostName = "liveiso";
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "23.11";
}

20
hosts/liveiso/sway.nix Normal file
View file

@ -0,0 +1,20 @@
{modulesPath, ...}: {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-base.nix"
];
programs.sway = {
enable = true;
};
services.xserver = {
enable = true;
displayManager = {
sddm.enable = true;
autoLogin = {
enable = true;
user = "nixos";
};
};
};
}

6
hosts/liveiso/tools.nix Normal file
View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
neovim
parted
];
}