Add desktop iso
This commit is contained in:
parent
b156564a82
commit
d15491e70d
3 changed files with 18 additions and 0 deletions
|
@ -61,6 +61,7 @@
|
||||||
imageConfigurations = {
|
imageConfigurations = {
|
||||||
nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; format = "sd-aarch64"; };
|
nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; format = "sd-aarch64"; };
|
||||||
nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "iso"; };
|
nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "iso"; };
|
||||||
|
nixos-iso-desktop = libx.mkImage { hostname = "nixos-iso-desktop"; format = "iso"; desktop = "hyprland"; theme = "gruvbox";};
|
||||||
nixos-linode-img = libx.mkMinImage { hostname = "nixos-linode-img"; format = "linode"; };
|
nixos-linode-img = libx.mkMinImage { hostname = "nixos-linode-img"; format = "linode"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,14 @@
|
||||||
rm -f result
|
rm -f result
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
nixos-build-desktop() {
|
||||||
|
pushd /etc/nixos/git
|
||||||
|
git pull
|
||||||
|
nix build .#imageConfigurations.nixos-iso-desktop
|
||||||
|
cp result/iso/nixos.iso ~/nixos-desktop-`ddate`-`git rev-parse HEAD | cut -b 1-7`.iso
|
||||||
|
rm -f result
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
# NixOS Related
|
# NixOS Related
|
||||||
nix-clean-all() {
|
nix-clean-all() {
|
||||||
|
|
9
nixos/hosts/nixos-iso-desktop/default.nix
Normal file
9
nixos/hosts/nixos-iso-desktop/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
|
||||||
|
nixpkgs.config.allowUnfree = false;
|
||||||
|
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
networking.hostName = "nixos-iso-desktop";
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
|
}
|
Loading…
Reference in a new issue