From 77ae918d905dc2c89e759c04241aa1a78fa27982 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 13 Feb 2023 08:56:47 +0000 Subject: [PATCH] Remove docker fhs env --- configuration.nix | 1 - docker.nix | 47 ----------------------------------------------- 2 files changed, 48 deletions(-) delete mode 100644 docker.nix diff --git a/configuration.nix b/configuration.nix index 07cfaa1..ce1f5dc 100644 --- a/configuration.nix +++ b/configuration.nix @@ -15,7 +15,6 @@ in { ./desktop.nix ./security.nix ./hacks.nix - ./docker.nix ./home-manager.nix ./thinkpad.nix ./auto-update.nix diff --git a/docker.nix b/docker.nix deleted file mode 100644 index 9b5829f..0000000 --- a/docker.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ config, pkgs, ... }: - -{ - systemd = { - services = { - "docker-build-fhs" = { - enable = true; - description = "Create fhs docker container"; - wantedBy = [ "multi-user.target" ]; - script = '' - mkdir -p /var/docker-fhs && cd /var/docker-fhs - cat > Dockerfile <> /etc/apt/sources.list.d/llvm.list - RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - - RUN apt update - - RUN apt install -y git libssl-dev bison flex bc build-essential gdb - RUN apt install -y libelf-dev python python3 zsh python3-pip - RUN apt install -y python3-opencv meson ninja-build cmake afl* - RUN apt install -y clang-11 lldb-11 llvm-11* libfuzzer-11-dev - RUN apt install -y pkg-config binutils-dev libunwind-dev - RUN apt install -y command-not-found libglib2.0-dev bsdmainutils - RUN apt install -y libarchive-dev nettle-dev libseccomp-dev - - RUN groupmod users -g 100 - RUN useradd user -u 1002 -g 100 -s /bin/zsh - - RUN echo 'cd \$HOST_PWD' >> /etc/zsh/zshrc - - CMD bash -c 'su user' - - EOF - ${pkgs.docker}/bin/docker build -t fhs . - ''; - serviceConfig.Type = "oneshot"; - }; - }; - }; -}