From c62289217cc92f965fc6864189c75401d3c877c9 Mon Sep 17 00:00:00 2001 From: xunuwu Date: Sat, 16 Mar 2024 08:29:15 +0100 Subject: [PATCH] sway iso --- Justfile | 4 ++++ hosts/default.nix | 13 +++++++++++++ hosts/liveiso/default.nix | 19 +++++++++++++++++++ hosts/liveiso/sway.nix | 20 ++++++++++++++++++++ hosts/liveiso/tools.nix | 6 ++++++ 5 files changed, 62 insertions(+) create mode 100644 hosts/liveiso/default.nix create mode 100644 hosts/liveiso/sway.nix create mode 100644 hosts/liveiso/tools.nix diff --git a/Justfile b/Justfile index f74c1c4..2a60227 100644 --- a/Justfile +++ b/Justfile @@ -7,6 +7,10 @@ local OPERATION *FLAGS: {{OPERATION}} +buildiso *FLAGS: + nix build .#nixosConfigurations.liveiso.config.system.build.isoImage {{FLAGS}} + + remote OPERATION HOST HOSTNAME *FLAGS: nixos-rebuild \ --fast \ diff --git a/hosts/default.nix b/hosts/default.nix index 8183644..d2cfe92 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -87,6 +87,19 @@ in { } ]; }; + liveiso = { + deployment.targetHost = null; + imports = [ + ./liveiso + + "${mod}/nix" + "${mod}/core/security.nix" + + "${mod}/services" + + "${mod}/desktop" + ]; + }; }; flake.nixosConfigurations = let l = inputs.nixpkgs.lib; diff --git a/hosts/liveiso/default.nix b/hosts/liveiso/default.nix new file mode 100644 index 0000000..5969e48 --- /dev/null +++ b/hosts/liveiso/default.nix @@ -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"; +} diff --git a/hosts/liveiso/sway.nix b/hosts/liveiso/sway.nix new file mode 100644 index 0000000..fd8feb2 --- /dev/null +++ b/hosts/liveiso/sway.nix @@ -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"; + }; + }; + }; +} diff --git a/hosts/liveiso/tools.nix b/hosts/liveiso/tools.nix new file mode 100644 index 0000000..4b5fccd --- /dev/null +++ b/hosts/liveiso/tools.nix @@ -0,0 +1,6 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs; [ + neovim + parted + ]; +}