Merge remote-tracking branch 'gum/master'

This commit is contained in:
lassulus 2020-06-07 13:09:45 +02:00
commit fe119203ea
7 changed files with 47 additions and 36 deletions

View File

@ -189,8 +189,8 @@ let
''; '';
}; };
}; };
users.extraUsers = singleton { users.users.${user.name} = {
inherit (user) name uid; inherit (user) uid;
home = cfg.dataDir; home = cfg.dataDir;
createHome = true; createHome = true;
}; };

View File

@ -1,6 +1,6 @@
{ curl, gnused, writeDashBin }: { curl, gnused, writeDashBin }:
writeDashBin "kpaste" '' writeDashBin "kpaste" ''
${curl}/bin/curl -sS http://p.r --data-binary @- | ${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" |
${gnused}/bin/sed '$ {p;s/\<r\>/krebsco.de/}' ${gnused}/bin/sed '$ {p;s|http://p.r|https://p.krebsco.de|}'
'' ''

View File

@ -11,19 +11,26 @@ in {
./hw/omo.nix ./hw/omo.nix
#./hw/tsp.nix #./hw/tsp.nix
<stockholm/makefu> <stockholm/makefu>
{ environment.systemPackages = with pkgs;[ tmux picocom ];} <stockholm/makefu/2configs/headless.nix>
<stockholm/makefu/2configs/support-nixos.nix> <stockholm/makefu/2configs/support-nixos.nix>
<stockholm/makefu/2configs/nur.nix>
<stockholm/makefu/2configs/zsh-user.nix> <stockholm/makefu/2configs/zsh-user.nix>
<stockholm/makefu/2configs/home-manager>
<stockholm/makefu/2configs/home-manager/cli.nix>
<stockholm/makefu/2configs/editor/neovim>
<stockholm/makefu/2configs/backup/state.nix> <stockholm/makefu/2configs/backup/state.nix>
<stockholm/makefu/2configs/exim-retiolum.nix> <stockholm/makefu/2configs/exim-retiolum.nix>
# <stockholm/makefu/2configs/smart-monitor.nix> # <stockholm/makefu/2configs/smart-monitor.nix>
<stockholm/makefu/2configs/mail-client.nix> <stockholm/makefu/2configs/mail-client.nix>
<stockholm/makefu/2configs/mosh.nix> <stockholm/makefu/2configs/mosh.nix>
<stockholm/makefu/2configs/tools/core.nix> <stockholm/makefu/2configs/tools/core.nix>
<stockholm/makefu/2configs/tools/dev.nix>
<stockholm/makefu/2configs/tools/desktop.nix> <stockholm/makefu/2configs/tools/desktop.nix>
<stockholm/makefu/2configs/tools/mobility.nix> <stockholm/makefu/2configs/tools/mobility.nix>
{ environment.systemPackages = [ pkgs.esniper ]; } { environment.systemPackages = [ pkgs.esniper ]; }
# <stockholm/makefu/2configs/disable_v6.nix>
#<stockholm/makefu/2configs/graphite-standalone.nix> #<stockholm/makefu/2configs/graphite-standalone.nix>
#<stockholm/makefu/2configs/share-user-sftp.nix> #<stockholm/makefu/2configs/share-user-sftp.nix>
@ -108,7 +115,7 @@ in {
]; ];
makefu.full-populate = true; makefu.full-populate = true;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
krebs.rtorrent = (builtins.trace (builtins.toJSON config.services.telegraf.extraConfig)) { krebs.rtorrent = {
downloadDir = lib.mkForce "/media/cryptX/torrent"; downloadDir = lib.mkForce "/media/cryptX/torrent";
extraConfig = '' extraConfig = ''
upload_rate = 500 upload_rate = 500

View File

@ -80,18 +80,19 @@ in {
boot = { boot = {
initrd.luks = { initrd.luks = {
devices = let devices = let
usbkey = name: device: { usbkey = device: {
inherit name device keyFile; inherit device keyFile;
keyFileSize = 4096; keyFileSize = 4096;
allowDiscards = true; allowDiscards = true;
}; };
in [ in
(usbkey "luksroot" rootPartition) {
(usbkey "crypt0" cryptDisk0) luksroot = usbkey rootPartition;
(usbkey "crypt1" cryptDisk1) crypt0 = usbkey cryptDisk0;
(usbkey "crypt2" cryptDisk2) crypt1 = usbkey cryptDisk1;
(usbkey "crypt3" cryptDisk3) crypt2 = usbkey cryptDisk2;
]; crypt3 = usbkey cryptDisk3;
};
}; };
loader.grub.device = lib.mkForce rootDisk; loader.grub.device = lib.mkForce rootDisk;

View File

@ -2,4 +2,5 @@
name="omo"; name="omo";
torrent = true; torrent = true;
unstable = true; unstable = true;
home-manager = true;
} }

View File

@ -5,11 +5,15 @@ let
url = "https://github.com/${name}/releases.atom"; url = "https://github.com/${name}/releases.atom";
filter = "grepi:(<updated|<media.thumbnail)"; filter = "grepi:(<updated|<media.thumbnail)";
}; };
lidl = url: {
inherit url;
filter = "grepi:<!-- sf";
};
in { in {
krebs.urlwatch = { krebs.urlwatch = {
enable = true; enable = true;
mailto = config.krebs.users.makefu.mail; mailto = config.krebs.users.makefu.mail;
onCalendar = "*-*-* 05:00:00"; onCalendar = "*-*-* 03,15:13:37";
hooksFile = ./hook.py; hooksFile = ./hook.py;
urls = [ urls = [
## nixpkgs maintenance ## nixpkgs maintenance
@ -30,7 +34,6 @@ in {
https://pypi.python.org/simple/pyserial/ https://pypi.python.org/simple/pyserial/
https://pypi.python.org/simple/semantic_version/ https://pypi.python.org/simple/semantic_version/
# weird shit # weird shit
http://guest:derpi@cvs2svn.tigris.org/svn/cvs2svn/tags/
http://ftp.debian.org/debian/pool/main/a/apt-cacher-ng/ http://ftp.debian.org/debian/pool/main/a/apt-cacher-ng/
https://erdgeist.org/gitweb/opentracker/info/refs?service=git-upload-pack https://erdgeist.org/gitweb/opentracker/info/refs?service=git-upload-pack
@ -40,18 +43,23 @@ in {
url = https://newellrubbermaid.secure.force.com/dymopkb/articles/en_US/FAQ/Dymo-Drivers-and-Downloads/?l=en_US&c=Segment:Dymo&fs=Search&pn=1 ; url = https://newellrubbermaid.secure.force.com/dymopkb/articles/en_US/FAQ/Dymo-Drivers-and-Downloads/?l=en_US&c=Segment:Dymo&fs=Search&pn=1 ;
filter = "grep:Software/Linux/dymo-cups-drivers"; filter = "grep:Software/Linux/dymo-cups-drivers";
} }
# shopping
( lidl https://www.lidl.de/de/parkside-nass-trockensauger-pnts-1500-d5/p303117 )
# TODO: dymo cups # TODO: dymo cups
] ++ map grss [ ] ++ map grss [
"amadvance/snapraid" "amadvance/snapraid"
"radare/radare2" "radare/radare2"
"ovh/python-ovh" "ovh/python-ovh"
"embray/d2to1" "embray/d2to1"
"Mic92/vicious" "vicious-widgets/vicious"
"embray/d2to1" "embray/d2to1"
"dorimanx/exfat-nofuse" "dorimanx/exfat-nofuse"
"rapid7/metasploit-framework" "rapid7/metasploit-framework"
"GothenburgBitFactory/taskserver" "GothenburgBitFactory/taskserver"
"GothenburgBitFactory/taskwarrior" "GothenburgBitFactory/taskwarrior"
"mhagger/cvs2svn"
]; ];
}; };
} }

View File

@ -243,7 +243,7 @@ awful.screen.connect_for_each_screen(function(s)
set_wallpaper(s) set_wallpaper(s)
-- Each screen has its own tag table. -- Each screen has its own tag table.
awful.tag({ "tmp", "news", "www", "im", "work1","work2","net","misc","remote" }, s, awful.layout.layouts[1]) awful.tag({ "tmp", "ssh", "www", "im", "mail","work","net","misc","remote" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen -- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt() s.mypromptbox = awful.widget.prompt()
@ -486,14 +486,12 @@ awful.rules.rules = {
focus = awful.client.focus.filter, focus = awful.client.focus.filter,
keys = clientkeys, keys = clientkeys,
buttons = clientbuttons } }, buttons = clientbuttons } },
{ rule = { class = "MPlayer" }, --{ rule = { class = "MPlayer" },
properties = { floating = true } }, -- properties = { floating = true } },
{ rule = { class = "pinentry" }, { rule = { class = "pinentry" },
properties = { floating = true } }, properties = { floating = true } },
{ rule = { class = "gimp" }, --{ rule = { class = "gimp" },
properties = { floating = true } }, -- properties = { floating = true } },
{ rule = { class = "Anamnesis" },
properties = { floating = true } },
-- Set Firefox to always map on tags number 2 of screen 1. -- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" }, -- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } }, -- properties = { tag = tags[1][2] } },
@ -571,16 +569,12 @@ local os = {
-- {{{ autostart -- {{{ autostart
do do
local cmds = awful.spawn("urxvt", { tag = tags[1] }) # dev shell
{ awful.spawn("urxvt -e mosh makefu@gum.i", { tag = tags[2] })
-- "@networkmanagerapplet@/bin/nm-applet", awful.spawn("firefox", { tag = tags[3] })
-- "@blueman@/bin/blueman-applet", awful.spawn("telegram-desktop", { tag = tags[4] })
-- "@clipit@/bin/clipit" awful.spawn("signal-desktop", { tag = tags[4] })
} awful.spawn("urxvt -e mutt", { tag = tags[5] })
for _,i in pairs(cmds) do
awful.util.spawn(i)
end
end end
-- }}} -- }}}