From 0ae752cefe8aa92e00ab704844309bc2de58adbf Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 29 May 2020 12:40:51 +0200 Subject: python-dnsstamps: init at 1.3.0 --- krebs/5pkgs/simple/python-dnsstamps.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 krebs/5pkgs/simple/python-dnsstamps.nix diff --git a/krebs/5pkgs/simple/python-dnsstamps.nix b/krebs/5pkgs/simple/python-dnsstamps.nix new file mode 100644 index 00000000..18d08fec --- /dev/null +++ b/krebs/5pkgs/simple/python-dnsstamps.nix @@ -0,0 +1,21 @@ +{ python3Packages, lib }: + +python3Packages.buildPythonPackage rec { + pname = "dnsstamps"; + version = "1.3.0"; + + src = python3Packages.fetchPypi { + inherit pname version; + hash = "sha256:1v334glljw60h9v739jgl8hmyldaawbpv55bbhwq1hcwm5lvdk13"; + }; + + postInstall = '' + mv $out/bin/dnsstamp.py $out/bin/dnsstamp + ''; + + meta = { + description = "Create and parse DNS stamps with ease"; + homepage = "https://github.com/chrisss404/python-dnsstamps"; + license = lib.licenses.mit; + }; +} -- cgit v1.2.3 From 8b2a87d7e12c345246d6da439754f45a5a9f3ad0 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 2 Jun 2020 22:48:44 +0200 Subject: urlwatch: modernize user config --- krebs/3modules/urlwatch.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/krebs/3modules/urlwatch.nix b/krebs/3modules/urlwatch.nix index 43535b08..0b7a71db 100644 --- a/krebs/3modules/urlwatch.nix +++ b/krebs/3modules/urlwatch.nix @@ -189,8 +189,8 @@ let ''; }; }; - users.extraUsers = singleton { - inherit (user) name uid; + users.users.${user.name} = { + inherit (user) uid; home = cfg.dataDir; createHome = true; }; -- cgit v1.2.3 From 09e620c79b70e495e9651e8e5c1b160dd1b5fb8d Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 2 Jun 2020 23:32:15 +0200 Subject: tv xu: modernize luks config --- tv/1systems/xu/config.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tv/1systems/xu/config.nix b/tv/1systems/xu/config.nix index 33f9539c..503142b9 100644 --- a/tv/1systems/xu/config.nix +++ b/tv/1systems/xu/config.nix @@ -113,9 +113,7 @@ with import ; boot.initrd.luks = { cryptoModules = [ "aes" "sha512" "xts" ]; - devices = [ - { name = "xuca"; device = "/dev/sda2"; } - ]; + devices.xuca.device = "/dev/sda2"; }; fileSystems = { -- cgit v1.2.3 From d9664153486e33d2e5fb2767f8a431c364e933ef Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 2 Jun 2020 23:37:02 +0200 Subject: krops: v1.19.0 -> v1.21.0 --- submodules/krops | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/krops b/submodules/krops index f1b7112a..55aa2c77 160000 --- a/submodules/krops +++ b/submodules/krops @@ -1 +1 @@ -Subproject commit f1b7112ac3cbe090e96f2c82c525b6db69b82034 +Subproject commit 55aa2c77ce8183f3d2b24f54efa33ab6a42e1e02 -- cgit v1.2.3 From 6722c8b823f6463bd2bf53395223a56c63a535a5 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 3 Jun 2020 00:44:03 +0200 Subject: tv urlwatch: add workaround for thp.io --- tv/2configs/urlwatch.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tv/2configs/urlwatch.nix b/tv/2configs/urlwatch.nix index 378b5d16..619b0445 100644 --- a/tv/2configs/urlwatch.nix +++ b/tv/2configs/urlwatch.nix @@ -24,7 +24,13 @@ in { http://www.exim.org/ # ref src/nixpkgs/pkgs/tools/networking/urlwatch/default.nix - https://thp.io/2008/urlwatch/ + { + url = https://thp.io/2008/urlwatch/; + # workaround: ('Received response with content-encoding: gzip, but + # failed to decode it.', error('Error -3 while decompressing data: + # incorrect header check',)) + ignore_cached = true; + } # 2015-02-18 # ref ~/src/nixpkgs/pkgs/tools/text/qprint/default.nix -- cgit v1.2.3 From 6ad7a8801cbc68ce481ae936983178709779c813 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 3 Jun 2020 00:46:03 +0200 Subject: tv dnsmasq: listen only on configured interfaces --- tv/3modules/dnsmasq.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tv/3modules/dnsmasq.nix b/tv/3modules/dnsmasq.nix index ec927f98..ab24ac08 100644 --- a/tv/3modules/dnsmasq.nix +++ b/tv/3modules/dnsmasq.nix @@ -31,8 +31,9 @@ in { }; services.dnsmasq.enable = true; services.dnsmasq.extraConfig = '' + bind-interfaces dhcp-range=${cfg.dhcp-range} - interface=${cfg.interface} + listen-address=${cfg.address} ''; tv.iptables.extra.filter.INPUT = [ "-i ${cfg.interface} -p tcp -m tcp --dport bootps -j ACCEPT" -- cgit v1.2.3 From 739db44f3fee490d7d6581500c9201de58c6bb96 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 3 Jun 2020 10:38:48 +0200 Subject: tv Xresources: enable service when using xserver --- tv/3modules/Xresources.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tv/3modules/Xresources.nix b/tv/3modules/Xresources.nix index ce7ac9ac..ab233dd6 100644 --- a/tv/3modules/Xresources.nix +++ b/tv/3modules/Xresources.nix @@ -1,7 +1,7 @@ with import ; { config, pkgs, ... }: let cfg = { - enable = config.tv.Xresources != {}; + enable = config.services.xserver.enable && config.tv.Xresources != {}; user = config.krebs.build.user; }; in { -- cgit v1.2.3 From 73e17dfed0da4a2557771f6f2274f554c03aa0fd Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 3 Jun 2020 20:41:10 +0200 Subject: tv xmonad: configure prompt font --- tv/5pkgs/haskell/xmonad-tv/src/main.hs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tv/5pkgs/haskell/xmonad-tv/src/main.hs b/tv/5pkgs/haskell/xmonad-tv/src/main.hs index 047239eb..c83b411b 100644 --- a/tv/5pkgs/haskell/xmonad-tv/src/main.hs +++ b/tv/5pkgs/haskell/xmonad-tv/src/main.hs @@ -18,6 +18,7 @@ import XMonad.Actions.CycleWS (toggleWS) import XMonad.Layout.NoBorders ( smartBorders ) import XMonad.Layout.ResizableTile (ResizableTall(ResizableTall)) import XMonad.Layout.ResizableTile (MirrorResize(MirrorExpand,MirrorShrink)) +import qualified XMonad.Prompt import qualified XMonad.StackSet as W import Data.Map (Map) import qualified Data.Map as Map @@ -154,8 +155,8 @@ myKeys conf = Map.fromList $ , ((_4 , xK_comma ), sendMessage $ IncMasterN 1) , ((_4 , xK_period ), sendMessage $ IncMasterN (-1)) - , ((_4 , xK_a ), addWorkspacePrompt def) - , ((_4 , xK_r ), renameWorkspace def) + , ((_4 , xK_a ), addWorkspacePrompt promptXPConfig) + , ((_4 , xK_r ), renameWorkspace promptXPConfig) , ((_4 , xK_Delete ), removeEmptyWorkspace) , ((_4 , xK_Return ), toggleWS) @@ -189,6 +190,9 @@ myKeys conf = Map.fromList $ resetLayout = setLayout $ XMonad.layoutHook conf + promptXPConfig = + def { XMonad.Prompt.font = myFont } + pagerConfig :: PagerConfig pagerConfig = def -- cgit v1.2.3 From 09c8cddd46bcf10bd182ce32be61dee27ba8e865 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 4 Jun 2020 17:30:22 +0200 Subject: tv zu: modernize luks config --- tv/1systems/zu/config.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tv/1systems/zu/config.nix b/tv/1systems/zu/config.nix index bbfcfafc..5a69601e 100644 --- a/tv/1systems/zu/config.nix +++ b/tv/1systems/zu/config.nix @@ -18,9 +18,7 @@ with import ; boot.initrd.luks = { cryptoModules = [ "aes" "sha512" "xts" ]; - devices = [ - { name = "zuca"; device = "/dev/sda2"; } - ]; + devices.zuca.device = "/dev/sda2"; }; fileSystems = { -- cgit v1.2.3 From 670f6ac480fda3ac232bfeac467d7bdb7c81d344 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 4 Jun 2020 18:00:21 +0200 Subject: tv nomic: modernize luks config --- tv/1systems/nomic/config.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tv/1systems/nomic/config.nix b/tv/1systems/nomic/config.nix index 86f9b7ec..cd8988d0 100644 --- a/tv/1systems/nomic/config.nix +++ b/tv/1systems/nomic/config.nix @@ -17,9 +17,7 @@ with import ; boot.initrd.luks = { cryptoModules = [ "aes" "sha512" "xts" ]; - devices = [ - { name = "luks1"; device = "/dev/sda2"; } - ]; + devices.luks1.device = "/dev/sda2"; }; # Don't use UEFI because current disk was partitioned/formatted for AO753. -- cgit v1.2.3 From 027864ec937ae7a7b8e4878e1f56e7d649e87e86 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 4 Jun 2020 20:04:18 +0200 Subject: tv querel displayManager: auto -> lightdm --- tv/1systems/querel/config.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tv/1systems/querel/config.nix b/tv/1systems/querel/config.nix index ac51f54e..06407400 100644 --- a/tv/1systems/querel/config.nix +++ b/tv/1systems/querel/config.nix @@ -75,10 +75,7 @@ with import ; }; services.xserver.desktopManager.plasma5.enable = true; - services.xserver.displayManager.auto = { - enable = true; - user = "itak"; - }; + services.xserver.displayManager.lightdm.enable = true; users.users.itak = { inherit (config.krebs.users.itak) home uid; -- cgit v1.2.3 From 344684d8a9aeb7cb3f3b90fcfffa5fee7dd231a2 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 4 Jun 2020 20:20:49 +0200 Subject: tv querel: enable autoLogin --- tv/1systems/querel/config.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tv/1systems/querel/config.nix b/tv/1systems/querel/config.nix index 06407400..e58a9b21 100644 --- a/tv/1systems/querel/config.nix +++ b/tv/1systems/querel/config.nix @@ -75,6 +75,9 @@ with import ; }; services.xserver.desktopManager.plasma5.enable = true; + + services.xserver.displayManager.lightdm.autoLogin.enable = true; + services.xserver.displayManager.lightdm.autoLogin.user = "itak"; services.xserver.displayManager.lightdm.enable = true; users.users.itak = { -- cgit v1.2.3 From 14fb6c5c5558fe5cb461ea8df307640148bd8512 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 4 Jun 2020 20:22:42 +0200 Subject: tv nomic: enable ~/bin --- tv/1systems/nomic/config.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tv/1systems/nomic/config.nix b/tv/1systems/nomic/config.nix index cd8988d0..38cc6236 100644 --- a/tv/1systems/nomic/config.nix +++ b/tv/1systems/nomic/config.nix @@ -45,6 +45,8 @@ with import ; fsType = "btrfs"; }; + environment.homeBinInPath = true; + environment.systemPackages = with pkgs; [ (writeDashBin "play" '' set -euf -- cgit v1.2.3 From 156105623451f5749c43ced91318a088ed38f0eb Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 4 Jun 2020 20:26:53 +0200 Subject: tv alnus: modernize luks config --- tv/1systems/alnus/config.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tv/1systems/alnus/config.nix b/tv/1systems/alnus/config.nix index d54d5fc2..21583f74 100644 --- a/tv/1systems/alnus/config.nix +++ b/tv/1systems/alnus/config.nix @@ -11,10 +11,8 @@ with import ; boot = { initrd = { availableKernelModules = [ "ahci" ]; - luks = { - cryptoModules = [ "aes" "sha512" "xts" ]; - devices = [ { name = "luksroot"; device = "/dev/sda2"; } ]; - }; + luks.cryptoModules = [ "aes" "sha512" "xts" ]; + luks.devices.luksroot.devices = "/dev/sda2"; }; }; -- cgit v1.2.3 From 8ae780cf2689a0e62718fe0dcc8b80e584f68d23 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 7 Jun 2020 11:05:26 +0200 Subject: tv wu: modernize luks config --- tv/1systems/wu/config.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tv/1systems/wu/config.nix b/tv/1systems/wu/config.nix index 4c491d65..d4114f00 100644 --- a/tv/1systems/wu/config.nix +++ b/tv/1systems/wu/config.nix @@ -18,9 +18,7 @@ with import ; boot.initrd.luks = { cryptoModules = [ "aes" "sha512" "xts" ]; - devices = [ - { name = "wuca"; device = "/dev/sda2"; } - ]; + devices.wuca.device = "/dev/sda2"; }; fileSystems = { -- cgit v1.2.3