From a5168763e0636267b22b9e4639a6f00c663c0053 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 17 Jul 2018 22:25:37 -0300 Subject: Rename file to proper date and write content on Guix and NixOS --- site/posts/2018-07-15-running-guix-on-nixos.org | 52 ------------------------- 1 file changed, 52 deletions(-) delete mode 100644 site/posts/2018-07-15-running-guix-on-nixos.org (limited to 'site/posts/2018-07-15-running-guix-on-nixos.org') diff --git a/site/posts/2018-07-15-running-guix-on-nixos.org b/site/posts/2018-07-15-running-guix-on-nixos.org deleted file mode 100644 index ebf5400..0000000 --- a/site/posts/2018-07-15-running-guix-on-nixos.org +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: Running Guix on NixOS -date: 2018-07-15 ---- -https://riot.im/app/#/room/#freenode_#guix:matrix.org/$1531510045400627zjGbq:matrix.org -* h1 -** h2 -#+BEGIN_SRC nix -n - # FIXME: add line number - { config, pkgs, ...}: - - { - - # NixOS usual config - - users = { - mutableUsers = false; - - extraUsers = - let - andrehUser = { - andreh = { - # my custom user config - }; - }; - # From the Guix manual: - # https://www.gnu.org/software/guix/manual/en/html_node/Build-Environment-Setup.html#Build-Environment-Setup - buildUser = (i: - { - "guixbuilder${i}" = { # guixbuilder$i - group = "guixbuild"; # -g guixbuild - extraGroups = ["guixbuild"]; # -G guixbuild - home = "/var/empty"; # -d /var/empty - shell = pkgs.nologin; # -s `which nologin` - description = "Guix build user ${i}"; # -c "Guix buid user $i" - isSystemUser = true; # --system - }; - } - ); - in - # merge all users - pkgs.lib.fold (str: acc: acc // buildUser str) - andrehUser - # for i in `seq -w 1 10` - (map (pkgs.lib.fixedWidthNumber 2) (builtins.genList (n: n+1) 10)); - - extraGroups.guixbuild = { - name = "guixbuild"; - }; - }; - } -#+END_SRC -- cgit v1.2.3