tv: use only pkgs

This commit is contained in:
tv 2015-08-29 00:19:52 +02:00
parent 81eaf7a9e7
commit 09257f9782
6 changed files with 14 additions and 30 deletions

View File

@ -2,10 +2,6 @@
with lib; with lib;
let
tvpkgs = import ../5pkgs { inherit lib pkgs; };
in
{ {
krebs.build.host = config.krebs.hosts.cd; krebs.build.host = config.krebs.hosts.cd;
krebs.build.user = config.krebs.users.tv; krebs.build.user = config.krebs.users.tv;
@ -136,7 +132,7 @@ in
server-names = singleton "viljetic.de"; server-names = singleton "viljetic.de";
# TODO directly set root (instead via location) # TODO directly set root (instead via location)
locations = singleton (nameValuePair "/" '' locations = singleton (nameValuePair "/" ''
root ${tvpkgs.viljetic-pages}; root ${pkgs.viljetic-pages};
''); '');
}; };
} }

View File

@ -2,10 +2,6 @@
with lib; with lib;
let
tvpkgs = import ../5pkgs { inherit lib pkgs; };
in
{ {
krebs.build.host = config.krebs.hosts.wu; krebs.build.host = config.krebs.hosts.wu;
krebs.build.user = config.krebs.users.tv; krebs.build.user = config.krebs.users.tv;
@ -39,12 +35,12 @@ in
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# stockholm # stockholm
genid
git git
gnumake gnumake
hashPassword
lentil
parallel parallel
tvpkgs.genid
tvpkgs.hashPassword
tvpkgs.lentil
(pkgs.writeScriptBin "ff" '' (pkgs.writeScriptBin "ff" ''
#! ${pkgs.bash}/bin/bash #! ${pkgs.bash}/bin/bash
exec sudo -u ff -i <<EOF exec sudo -u ff -i <<EOF
@ -72,6 +68,8 @@ in
# tv # tv
bc bc
bind # dig bind # dig
cac
dic
file file
gitAndTools.qgit gitAndTools.qgit
gnupg21 gnupg21
@ -84,6 +82,7 @@ in
netcat netcat
nix-repl nix-repl
nmap nmap
nq
p7zip p7zip
pavucontrol pavucontrol
posix_man_pages posix_man_pages
@ -91,9 +90,6 @@ in
sxiv sxiv
texLive texLive
tmux tmux
tvpkgs.cac
tvpkgs.dic
tvpkgs.nq
zathura zathura
#ack #ack

View File

@ -1,9 +1,5 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
tvpkgs = import ../5pkgs { inherit lib pkgs; };
in
with builtins; with builtins;
with lib; with lib;
let let
@ -63,7 +59,7 @@ let
ExecStart = pkgs.writeScript "charybdis-service" '' ExecStart = pkgs.writeScript "charybdis-service" ''
#! /bin/sh #! /bin/sh
set -euf set -euf
exec ${tvpkgs.charybdis}/bin/charybdis-ircd \ exec ${pkgs.charybdis}/bin/charybdis-ircd \
-foreground \ -foreground \
-logfile /dev/stderr \ -logfile /dev/stderr \
-configfile ${configFile} -configfile ${configFile}

View File

@ -1,7 +1,6 @@
{ lib, pkgs, ... }: { pkgs, ... }:
with import ../5pkgs { inherit lib pkgs; };
with pkgs;
{ {
environment.systemPackages = [ environment.systemPackages = [
much much

View File

@ -3,8 +3,6 @@
with import ../4lib { inherit lib pkgs; }; with import ../4lib { inherit lib pkgs; };
let let
tvpkgs = import ../5pkgs { inherit lib pkgs; };
out = { out = {
environment.systemPackages = [ environment.systemPackages = [
su-test su-test
@ -17,12 +15,12 @@ let
}; };
}; };
su-test = tvpkgs.execveBin "su-test" rec { su-test = pkgs.execveBin "su-test" rec {
filename = "/var/setuid-wrappers/sudo"; filename = "/var/setuid-wrappers/sudo";
argv = ["sudo" "-u" "test" "-i"]; argv = ["sudo" "-u" "test" "-i"];
}; };
test-shell = tvpkgs.execve "test-shell" rec { test-shell = pkgs.execve "test-shell" rec {
filename = "${pkgs.bash}/bin/bash"; filename = "${pkgs.bash}/bin/bash";
argv = ["sh" "--noprofile" "-l"]; argv = ["sh" "--noprofile" "-l"];
envp.ENV = pkgs.writeText "test-env" '' envp.ENV = pkgs.writeText "test-env" ''

View File

@ -1,11 +1,10 @@
{ lib, pkgs, ... }: { pkgs, ... }:
let let
inherit (pkgs) callPackage; inherit (pkgs) callPackage;
kpkgs = import ../../krebs/5pkgs { inherit lib pkgs; };
in in
kpkgs // { {
charybdis = callPackage ./charybdis {}; charybdis = callPackage ./charybdis {};
lentil = callPackage ./lentil {}; lentil = callPackage ./lentil {};
much = callPackage ./much.nix {}; much = callPackage ./much.nix {};