diff --git a/flake.nix b/flake.nix index d3ea94c0..c45259dc 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,7 @@ imageConfigurations = { 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-desktop = libx.mkImage { hostname = "nixos-iso-desktop"; format = "iso"; desktop = "hyprland"; theme = "gruvbox";}; nixos-linode-img = libx.mkMinImage { hostname = "nixos-linode-img"; format = "linode"; }; }; diff --git a/home-manager/common/software/cli/bash.nix b/home-manager/common/software/cli/bash.nix index 2a7d0606..cf53e684 100644 --- a/home-manager/common/software/cli/bash.nix +++ b/home-manager/common/software/cli/bash.nix @@ -58,6 +58,14 @@ rm -f result 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 nix-clean-all() { diff --git a/nixos/hosts/nixos-iso-desktop/default.nix b/nixos/hosts/nixos-iso-desktop/default.nix new file mode 100644 index 00000000..b7cfc112 --- /dev/null +++ b/nixos/hosts/nixos-iso-desktop/default.nix @@ -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 ]; +}