diff options
-rw-r--r-- | flake.nix | 16 | ||||
-rw-r--r-- | home/nipsy/common/core/zsh/default.nix | 1 |
2 files changed, 17 insertions, 0 deletions
@@ -88,6 +88,22 @@ ]; }; + # from https://nixos.wiki/wiki/Creating_a_NixOS_live_CD and https://chengeric.com/homelab/ + iso = nixpkgs.lib.nixosSystem { + modules = [ + "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" + ({ + #isoImage.squashfsCompression = "gzip -Xcompression-level 1"; + users.users.nixos = { + openssh.authorizedKeys.keys = [ + (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) + ]; + }; + }) + ]; + system = "x86_64-linux"; + }; + kaitain = nixpkgs.lib.nixosSystem rec { specialArgs = { inherit inputs outputs; }; modules = [ diff --git a/home/nipsy/common/core/zsh/default.nix b/home/nipsy/common/core/zsh/default.nix index 831faf4..befa183 100644 --- a/home/nipsy/common/core/zsh/default.nix +++ b/home/nipsy/common/core/zsh/default.nix @@ -34,6 +34,7 @@ export PASSWORD_STORE_ENABLE_EXTENSIONS=true initExtra = (builtins.readFile ./zshrc); shellAliases = { fixkeyboard = "setxkbmap -layout us -option caps:super -option compose:ralt"; + geniso = "nix build ~/git/nix/nipsy#nixosConfigurations.iso.config.system.build.isoImage && ll result/iso/*iso"; grep = "grep --color=auto"; ip = "ip -c=auto"; la = "ls -aF --color=auto"; |