Browse Source

Cleanup the Dockerfile

main
parent
commit
fc765de358
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 6
      Dockerfile
  2. 8
      README.org

6
Dockerfile

@ -1,10 +1,8 @@
# This file is controlled by /etc/dotfiles/README.org
# Derive from the official image. # Derive from the official image.
FROM nixos/nix FROM nixos/nix
# Add the unstable channel.
RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
RUN nix-channel --update
# Setup the default environment. # Setup the default environment.
WORKDIR /etc/dotfiles WORKDIR /etc/dotfiles
COPY . . COPY . .

8
README.org

@ -70,14 +70,12 @@ sudo nixos-rebuild switch --rollback
It's possible to use parts of this configuration using a container. By default, sandboxing is turned /off/ inside of the container, even though it's enabled in new installations. This can lead to differences between derivations built inside containers, versus those built without any containerization. This is especially true if a derivation relies on sandboxing to block sideloading of dependencies. It's possible to use parts of this configuration using a container. By default, sandboxing is turned /off/ inside of the container, even though it's enabled in new installations. This can lead to differences between derivations built inside containers, versus those built without any containerization. This is especially true if a derivation relies on sandboxing to block sideloading of dependencies.
#+BEGIN_SRC conf :tangle Dockerfile
#+BEGIN_SRC conf :tangle Dockerfile :noweb yes
# <<file-warning>>
# Derive from the official image. # Derive from the official image.
FROM nixos/nix FROM nixos/nix
# Add the unstable channel.
RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
RUN nix-channel --update
# Setup the default environment. # Setup the default environment.
WORKDIR /etc/dotfiles WORKDIR /etc/dotfiles
COPY . . COPY . .

Loading…
Cancel
Save