grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderbig changesc1be8e3

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