Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created April 2, 2018 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinisil/b20f7a2a03b89cb73c65fd1112177fba to your computer and use it in GitHub Desktop.
Save infinisil/b20f7a2a03b89cb73c65fd1112177fba to your computer and use it in GitHub Desktop.
with import <nixpkgs/nixos> {
configuration = { lib, ... }: {
services.nix-serve.enable = true;
systemd.services.nix-serve = {
serviceConfig.User = lib.mkForce "paul";
environment.NIX_REMOTE = lib.mkForce "hello";
environment.FOOBAR = "";
};
fileSystems."/" = {
device = "/dev/disk/by-id/ata-HL-DT-ST_BD-RE_BH16NS40_K93F17B2617";
fsType = "ext4";
};
boot.loader.grub.device = "nodev";
};
};
config.system.build.units."nix-serve.service".unit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment