grace/dots
dotfiles/nix configs
git clone https://git.gae.moe/grace/dots
c1be8e3
main
1{ lib , modulesPath , ...} : 2 3assert lib . assertMsg ( builtins . getEnv "NIX_HOST" == "portable" ) "Build with NIX_HOST=portable." ; 4{ 5imports = [ 6( modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix" ) 7./hosts/portable.nix 8]; 9 10nixpkgs . hostPlatform = "x86_64-linux" ; 11boot . loader . systemd-boot . enable = lib . mkForce false ; 12 13services . getty . autologinUser = lib . mkForce "grace" ; 14users . users . grace . initialHashedPassword = "" ; 15 16installer . cloneConfig = false ; 17environment . etc . "nixos" . source = lib . cleanSourceWith { 18src = ./. ; 19filter = path :type : 20let 21name = baseNameOf path ; 22in 23! ( builtins . elem name [ ".git" ".jj" ] || lib . hasPrefix "result" name ); 24}; 25 26isoImage . edition = "portable" ; 27}