Skip to content

Commit

Permalink
Rename hello -> example
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewo committed Dec 3, 2018
1 parent a0d40c6 commit 8609b90
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 33 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ makeImage (

# Available images

- `nix`
- `nix`: basic single user installation
- `example`: show some supported NixOS modules

They can be built with `nix-build`.

Expand Down
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ in
{
inherit makeImage;
nix = makeImage ./images/nix.nix;
hello = makeImage ./images/hello.nix;
example = makeImage ./images/example.nix;
}

26 changes: 15 additions & 11 deletions images/example.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{}
{ pkgs, config, ...}:

{
config = {

image = {
name = "image";
run = "${pkgs.sleep}";
env = {
VERBOSE=1;
};
runAsRoot = "chmod...";
multiLayering = false;
}
environment.etc."sleep.conf".text = "my configuration";
}
name = "hello";
tag = "latest";
};

environment.systemPackages = [ pkgs.hello ];

users.users.alice = {
isNormalUser = true;
home = "/home/alice";
description = "Alice Foobar";
extraGroups = [ "wheel" ];
};
};
}
20 changes: 0 additions & 20 deletions images/hello.nix

This file was deleted.

0 comments on commit 8609b90

Please sign in to comment.