Browse Source

updates

main
Victor Roest 3 months ago
parent
commit
9dfa52f873
Signed by: 0x76 GPG Key ID: F69440FC85CD66CD
  1. 6
      .dockerignore
  2. 1
      .gitignore
  3. 6
      Dockerfile
  4. 12
      content/posts/nixos-proxmox-lxc.md
  5. 2
      themes/PaperMod

6
.dockerignore

@ -0,0 +1,6 @@
git
.drone.yml
.gitattributes
.gitmodules
.hugo_build.lock
README.md

1
.gitignore

@ -33,3 +33,4 @@ tags
!.vscode/extensions.json
*.code-workspace
.hugo_build.lock

6
Dockerfile

@ -1,6 +1,6 @@
FROM alpine as builder
ENV HUGO_VERSION 0.99.1
ENV GLIBC_VERSION 2.34-r0
ENV HUGO_VERSION 0.101.0
ENV GLIBC_VERSION 2.35-r0
WORKDIR /hugo
RUN apk add --no-cache curl wget libstdc++
@ -23,7 +23,7 @@ WORKDIR /build
COPY . .
RUN /hugo/hugo
FROM nginxinc/nginx-unprivileged:mainline-alpine
FROM docker.io/nginxinc/nginx-unprivileged:mainline-alpine
# Point 404 to 404.html
RUN sed -i 's/#error_page/error_page/g' /etc/nginx/conf.d/default.conf
COPY --from=builder /build/public /usr/share/nginx/html

12
content/posts/nixos-proxmox-lxc.md

@ -52,18 +52,6 @@ pct create $(pvesh get /cluster/nextid) \
after running this the container should show up in the Proxmox Web UI.
## Fix LXC config
> This step is only necessary if you are using nix older than 21.11, if using a newer version feel free to skip
After creating the container we need to make a simple edit to the lxc config file located in `/etc/pve/lxc/$ID.conf`,
`$ID` being the ID you passed in the previous step, if unsure you can check the web UI.
After opening the file add the following line to the bottom:
```conf
lxc.init.cmd: /init
```
This will point proxmox to the correct init binary of NixOS.
## Enable nesting
We are now done with all the cli configuration and need to enable a feature flag in the web interface.
Under container options, go to "Features" and enable "Nesting". This is needed as nix makes heavy use of sandboxing.

2
themes/PaperMod

@ -1 +1 @@
Subproject commit 3bcafa0be9461124fcd2a09a58799e2fd1e7a505
Subproject commit 54a3c6073518005182f3c3250ddb7e8c0cacd7ad
Loading…
Cancel
Save