1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 04:41:07 +01:00

chore: upgrade to 21.05

This commit is contained in:
2021-06-01 19:14:00 +02:00
parent 69354bbd3a
commit 94f0299a75
25 changed files with 71 additions and 90 deletions

View File

@@ -1,9 +1,9 @@
{ {
"url": "https://github.com/nix-community/home-manager.git", "url": "https://github.com/nix-community/home-manager.git",
"rev": "49706878e1580d796cc99b63574310405935113f", "rev": "ab64dc32493996c24607eab2cae6663466ddfb8a",
"date": "2021-05-29T20:24:38+02:00", "date": "2021-05-29T20:22:40+02:00",
"path": "/nix/store/ylzkcgmc7237gd3kngyx3l7zzlcsys4x-home-manager", "path": "/nix/store/y4fsirhpgf73ngglbskkbfk26hjjssw8-home-manager",
"sha256": "07f903ij0czyhly8kvwjazvz3s6kflxzh5fs6j8781lkxsy47i9f", "sha256": "1w7qxjibrjlqi7l293pnxxww1wxsq46wf3xbcpibys6g165s05f4",
"fetchSubmodules": false, "fetchSubmodules": false,
"deepClone": false, "deepClone": false,
"leaveDotGit": false "leaveDotGit": false

View File

@@ -1,9 +1,9 @@
{ {
"url": "https://github.com/NixOS/nixpkgs.git", "url": "https://github.com/NixOS/nixpkgs.git",
"rev": "f35c86dc1d00187129937bbc28f88cee42aa8991", "rev": "1508c220f98d3166c8b4fda94a409e1c3a11cf79",
"date": "2021-05-29T14:15:32-07:00", "date": "2021-06-01T12:42:21-04:00",
"path": "/nix/store/869jh3548f6fka8gpg8fn3zpfkdyn3fp-nixpkgs", "path": "/nix/store/3jkhbpszr4jcapqmhprdaxv11dcvix0n-nixpkgs",
"sha256": "11ci8ag4yb2l2vig16w26lnkcl8fk36ydx3lcdjgk1pcymm40avl", "sha256": "1gl1gdsw0i24dpkddgwqjg0almrv9ynqwy26jdy5wbzz00gld4a1",
"fetchSubmodules": false, "fetchSubmodules": false,
"deepClone": false, "deepClone": false,
"leaveDotGit": false "leaveDotGit": false

View File

@@ -1,9 +1,9 @@
{ {
"url": "https://github.com/NixOS/nixpkgs.git", "url": "https://github.com/NixOS/nixpkgs.git",
"rev": "85960bea533dc2d89dff8836d8a0a1239ddd5c9c", "rev": "d25ea6a0d2a847fb52131da546f2a866656fbafa",
"date": "2021-05-28T12:26:32+02:00", "date": "2021-05-31T10:23:40+02:00",
"path": "/nix/store/lhifphbq1hd4ny7qpg11qdyd9h0ckbrx-nixpkgs", "path": "/nix/store/36s35zrv4c51mzlizlnbfhlpw8n4qs0g-nixpkgs",
"sha256": "0r1h3mh1nrca7wldlx64bdcxdzxz6hw9w7rzg9p6xk83zbmsyb9i", "sha256": "0y2h71pvzrhc2svib4lwjl04hrzy8901ravvlyxlqdbal8hy3838",
"fetchSubmodules": false, "fetchSubmodules": false,
"deepClone": false, "deepClone": false,
"leaveDotGit": false "leaveDotGit": false

View File

@@ -25,7 +25,7 @@
}; };
key_bindings = [ key_bindings = [
{ {
key = "Add"; key = "Plus";
mods = "Control"; mods = "Control";
action = "IncreaseFontSize"; action = "IncreaseFontSize";
} }

View File

@@ -1,7 +1,7 @@
{ pkgs, lib, ... }: { { pkgs, lib, ... }: {
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
config.General.Enable = settings.General.Enable =
lib.concatStringsSep "," [ "Source" "Sink" "Media" "Socket" ]; lib.concatStringsSep "," [ "Source" "Sink" "Media" "Socket" ];
}; };

View File

@@ -42,7 +42,6 @@ in {
{ {
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
boot.loader.timeout = 1; boot.loader.timeout = 1;
boot.extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ];
} }
{ {
home-manager.users.me = { home-manager.users.me = {
@@ -181,7 +180,7 @@ in {
services.atd.enable = true; services.atd.enable = true;
} }
{ {
services.mingetty = { services.getty = {
greetingLine = lib.mkForce ""; greetingLine = lib.mkForce "";
helpLine = lib.mkForce ""; helpLine = lib.mkForce "";
}; };
@@ -224,7 +223,7 @@ in {
./neovim.nix ./neovim.nix
./nix.nix ./nix.nix
./newsboat.nix ./newsboat.nix
./flameshot-once.nix # ./flameshot-once.nix
./packages ./packages
./power-action.nix ./power-action.nix
./printing.nix ./printing.nix
@@ -242,7 +241,7 @@ in {
./theming.nix ./theming.nix
./tmux.nix ./tmux.nix
./tor.nix ./tor.nix
./traadfri.nix # ./traadfri.nix
./unclutter.nix ./unclutter.nix
./version.nix ./version.nix
./vscode.nix ./vscode.nix

View File

@@ -1,7 +1,9 @@
{ pkgs, ... }: { { pkgs, ... }: {
nixpkgs.config.joypixels.acceptLicense = true;
fonts = { fonts = {
enableDefaultFonts = true; enableDefaultFonts = true;
enableFontDir = true; fontDir.enable = true;
fonts = with pkgs; [ fonts = with pkgs; [
corefonts corefonts
eb-garamond eb-garamond

View File

@@ -2,45 +2,28 @@
home-manager.users.me = { home-manager.users.me = {
programs.htop = { programs.htop = {
enable = true; enable = true;
colorScheme = 0; settings = {
accountGuestInCpuMeter = true; color_scheme = 0;
cpuCountFromZero = false; account_guest_in_cpu_meter = true;
delay = 15; cpu_count_from_zero = false;
detailedCpuTime = false; delay = 15;
headerMargin = true; detailed_cpu_time = false;
hideKernelThreads = true; header_margin = true;
hideThreads = true; hide_kernel_threads = true;
hideUserlandThreads = true; hide_threads = true;
highlightBaseName = true; hide_userland_threads = true;
highlightMegabytes = true; highlight_base_name = true;
highlightThreads = true; highlight_megabytes = true;
shadowOtherUsers = true; highlight_threads = true;
showProgramPath = false; shadow_other_users = true;
showThreadNames = false; show_program_path = false;
sortDescending = true; show_thread_names = false;
sortKey = "PERCENT_CPU"; sort_descending = true;
treeView = true; sort_key = "PERCENT_CPU";
updateProcessNames = false; tree_view = true;
meters = { update_process_names = false;
left = [ right_meters = [ "Uptime" "Tasks" "LoadAverage" "Battery" ];
{ left_meters = [ "LeftCPUs2" "RightCPUs2" "Memory" "Swap" ];
kind = "LeftCPUs2";
mode = 1;
}
{
kind = "RightCPUs2";
mode = 1;
}
{
kind = "Memory";
mode = 1;
}
{
kind = "Swap";
mode = 1;
}
];
right = [ "Uptime" "Tasks" "LoadAverage" "Battery" ];
}; };
}; };
}; };

View File

@@ -67,7 +67,7 @@ in {
home-manager.users.me.xsession.windowManager.i3 = { home-manager.users.me.xsession.windowManager.i3 = {
enable = true; enable = true;
config = rec { config = rec {
fonts = [ "Sans 10" ]; fonts = {names = ["Sans"]; size = 10.0;};
modifier = "Mod4"; modifier = "Mod4";
window = { window = {
titlebar = false; titlebar = false;
@@ -129,7 +129,7 @@ in {
}; };
bars = [{ bars = [{
workspaceButtons = false; workspaceButtons = false;
fonts = [ "Sans 8" ]; fonts = {names = ["Sans"]; size = 8.0;};
mode = "hide"; # "dock" mode = "hide"; # "dock"
position = "bottom"; position = "bottom";
colors = rec { colors = rec {

View File

@@ -93,6 +93,7 @@ in {
posix_man_pages posix_man_pages
# moreutils # for parallel, sponge, combine # moreutils # for parallel, sponge, combine
tree tree
fuse_exfat # to mount windows drives
parallel # for parallel, since moreutils shadows task spooler parallel # for parallel, since moreutils shadows task spooler
ripgrep # better grep ripgrep # better grep
rlwrap rlwrap

View File

@@ -87,7 +87,6 @@ with haskellPackages; [
time time
transformers transformers
turtle turtle
type-unary
unix-time unix-time
unordered-containers unordered-containers
vector vector

View File

@@ -1,7 +1,5 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
let let
nixpkgs-unstable = import <nixpkgs-unstable> {};
zoteroStyle = { name, sha256 }: { zoteroStyle = { name, sha256 }: {
name = "${name}.csl"; name = "${name}.csl";
path = pkgs.fetchurl { path = pkgs.fetchurl {
@@ -64,14 +62,14 @@ in {
texlive.combined.scheme-full texlive.combined.scheme-full
latexrun latexrun
(aspellWithDicts (dict: [ dict.de dict.en dict.en-computers ])) (aspellWithDicts (dict: [ dict.de dict.en dict.en-computers ]))
haskellPackages.pandoc-citeproc # haskellPackages.pandoc-citeproc
nur.repos.kmein.text2pdf nur.repos.kmein.text2pdf
lowdown lowdown
glow # markdown to term glow # markdown to term
libreoffice libreoffice
# gnumeric # gnumeric
dia dia
nixpkgs-unstable.pandoc pandoc
# proselint # proselint
asciidoctor asciidoctor
wordnet wordnet

View File

@@ -1,7 +1,6 @@
{ lib, pkgs, config, ... }: { lib, pkgs, config, ... }:
let let
inherit (import <niveum/lib>) tmpfilesConfig; inherit (import <niveum/lib>) tmpfilesConfig;
nixpkgs-unstable = import <nixpkgs-unstable> {};
radioStore = "/var/lib/radio"; radioStore = "/var/lib/radio";
htgenPort = 8080; htgenPort = 8080;
@@ -98,7 +97,7 @@ in
${pkgs.youtube-dl}/bin/youtube-dl -j "https://www.youtube.com/watch?v=$video_id" \ ${pkgs.youtube-dl}/bin/youtube-dl -j "https://www.youtube.com/watch?v=$video_id" \
| ${pkgs.jq}/bin/jq -r '"% [\(.title)](\(.webpage_url))\n\n\(.description)"' \ | ${pkgs.jq}/bin/jq -r '"% [\(.title)](\(.webpage_url))\n\n\(.description)"' \
| sed 's/$/ /g' \ | sed 's/$/ /g' \
| ${nixpkgs-unstable.pandoc}/bin/pandoc -s | ${pandoc}/bin/pandoc -s
exit exit
;; ;;

View File

@@ -109,6 +109,7 @@ in
users.extraUsers.urlwatch = { users.extraUsers.urlwatch = {
home = urlwatchDir; home = urlwatchDir;
createHome = true; createHome = true;
isSystemUser = true;
}; };
systemd.services.urlwatch = { systemd.services.urlwatch = {

View File

@@ -7,6 +7,8 @@
url = "http://prism.r/realwallpaper-krebs-stars-berlin.png"; url = "http://prism.r/realwallpaper-krebs-stars-berlin.png";
}; };
users.users.fetchWallpaper.isSystemUser = true;
services.xserver = { services.xserver = {
display = lib.mkForce 0; # needed for fetchWallpaper to find the X display display = lib.mkForce 0; # needed for fetchWallpaper to find the X display
displayManager.sessionCommands = "${pkgs.xorg.xhost}/bin/xhost +LOCAL:"; displayManager.sessionCommands = "${pkgs.xorg.xhost}/bin/xhost +LOCAL:";

View File

@@ -1,7 +1,6 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
let let
inherit (import <niveum/lib>) kieran; inherit (import <niveum/lib>) kieran;
nixpkgs-unstable = import <nixpkgs-unstable> {};
relayPassword = lib.fileContents <system-secrets/weechat/relay>; relayPassword = lib.fileContents <system-secrets/weechat/relay>;
in { in {
systemd.services.weechat = systemd.services.weechat =
@@ -24,7 +23,7 @@ in {
''; '';
weechat = pkgs.weechat.override { weechat = pkgs.weechat.override {
configure = { ... }: { configure = { ... }: {
scripts = [ pkgs.weechatScripts.weechat-autosort nixpkgs-unstable.weechatScripts.colorize_nicks ]; scripts = [ pkgs.weechatScripts.weechat-autosort pkgs.weechatScripts.colorize_nicks ];
init = let init = let
coolColors = lib.lists.subtractLists (lib.range 52 69 ++ lib.range 231 248) (lib.range 31 254); coolColors = lib.lists.subtractLists (lib.range 52 69 ++ lib.range 231 248) (lib.range 31 254);
nick = "kmein"; nick = "kmein";

View File

@@ -51,6 +51,7 @@ in {
bat_three_quarters = " "; bat_three_quarters = " ";
cogs = "🚦 "; cogs = "🚦 ";
cpu = "🖥 "; cpu = "🖥 ";
disk_drive = "💽";
mail = "📧 "; mail = "📧 ";
memory_mem = "🧠 "; memory_mem = "🧠 ";
music = "🎵"; music = "🎵";
@@ -71,11 +72,11 @@ in {
volume_full = "🔊 "; volume_full = "🔊 ";
volume_half = "🔉 "; volume_half = "🔉 ";
volume_muted = "🔇"; volume_muted = "🔇";
weather_sun = "🌣";
weather_clouds = "🌥"; weather_clouds = "🌥";
weather_default = "🌡";
weather_rain = "🌧"; weather_rain = "🌧";
weather_snow = "🌨"; weather_snow = "🌨";
weather_default = "🌡"; weather_sun = "🌣";
weather_thunder = "🌩"; weather_thunder = "🌩";
}; };
}; };
@@ -83,7 +84,7 @@ in {
{ {
block = "weather"; block = "weather";
autolocate = true; autolocate = true;
format = "{location}: {temp}°C"; format = "{location}: {temp}C";
service = { service = {
name = "openweathermap"; name = "openweathermap";
api_key = lib.strings.fileContents <secrets/openweathermap.key>; api_key = lib.strings.fileContents <secrets/openweathermap.key>;
@@ -121,10 +122,7 @@ in {
{ {
block = "net"; block = "net";
device = wirelessInterface; device = wirelessInterface;
speed_up = false; format = "{ssid} {signal_strength}";
speed_down = false;
signal_strength = true;
ssid = true;
} }
{ {
block = "battery"; block = "battery";
@@ -136,12 +134,12 @@ in {
} }
{ {
block = "disk_space"; block = "disk_space";
alias = "💽"; format = "{icon} {available}";
} }
{ {
block = "memory"; block = "memory";
display_type = "memory"; display_type = "memory";
format_mem = "{Mug}G"; format_mem = "{mem_used;G}";
clickable = false; clickable = false;
} }
{ block = "load"; } { block = "load"; }

View File

@@ -1,4 +1,4 @@
{ stdenv, cmake, python3, fetchFromGitHub }: { lib, stdenv, cmake, python3, fetchFromGitHub }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2017.09.06"; version = "2017.09.06";
name = "iolanguage-${version}"; name = "iolanguage-${version}";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
cmake -DCMAKE_INSTALL_PREFIX=$out/ .. cmake -DCMAKE_INSTALL_PREFIX=$out/ ..
make all make all
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://iolanguage.org/"; homepage = "https://iolanguage.org/";
description = description =
"Io programming language. Inspired by Self, Smalltalk and LISP."; "Io programming language. Inspired by Self, Smalltalk and LISP.";

View File

@@ -13,7 +13,7 @@ stdenv.mkDerivation {
preConfigure = "./autogen.sh"; preConfigure = "./autogen.sh";
configureFlags = [ "--disable-documentation" "--disable-shared" ] configureFlags = [ "--disable-documentation" "--disable-shared" ]
++ lib.optional tls "--enable-dtls"; ++ lib.optional tls "--enable-dtls";
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://github.com/obgm/libcoap"; homepage = "https://github.com/obgm/libcoap";
description = "A CoAP (RFC 7252) implementation in C"; description = "A CoAP (RFC 7252) implementation in C";
platforms = platforms.linux; platforms = platforms.linux;

View File

@@ -1,4 +1,4 @@
{ stdenv, makeWrapper, pandoc, fetchFromGitHub }: { lib, stdenv, makeWrapper, pandoc, fetchFromGitHub }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "daybook"; name = "daybook";
src = fetchFromGitHub { src = fetchFromGitHub {
@@ -18,7 +18,7 @@ stdenv.mkDerivation {
install daybook $out/bin install daybook $out/bin
wrapProgram $out/bin/daybook --prefix PATH ":" ${pandoc}/bin ; wrapProgram $out/bin/daybook --prefix PATH ":" ${pandoc}/bin ;
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://github.com/kmein/daybook"; homepage = "https://github.com/kmein/daybook";
description = "A diary writing utility in sh"; description = "A diary writing utility in sh";
license = licenses.mit; license = licenses.mit;

View File

@@ -1,4 +1,4 @@
{ fetchFromGitHub, stdenv, fzf }: { lib, fetchFromGitHub, stdenv, fzf }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "nav"; name = "nav";
version = "8da22b1"; version = "8da22b1";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
''; '';
propagatedBuildInputs = [ fzf ]; propagatedBuildInputs = [ fzf ];
meta = { meta = {
maintainer = [ stdenv.lib.maintainers.kmein ]; maintainer = [ lib.maintainers.kmein ];
description = "JSON data structure navigator"; description = "JSON data structure navigator";
homepage = "https://github.com/huntrar/nav"; homepage = "https://github.com/huntrar/nav";
}; };

View File

@@ -16,7 +16,7 @@ let
${pkgs.nur.repos.mic92.untilport}/bin/untilport ${irc.host} ${toString irc.port} && \ ${pkgs.nur.repos.mic92.untilport}/bin/untilport ${irc.host} ${toString irc.port} && \
${pkgs.nur.repos.mic92.irc-announce}/bin/irc-announce \ ${pkgs.nur.repos.mic92.irc-announce}/bin/irc-announce \
${irc.host} ${toString irc.port} ${irc.nick} ${lib.escapeShellArg irc.channel} ${toString (if irc.tls then 1 else 0)} \ ${irc.host} ${toString irc.port} ${irc.nick} ${lib.escapeShellArg irc.channel} ${toString (if irc.tls then 1 else 0)} \
"$*" 2>/dev/null "$*"
''; '';
messages.good = [ messages.good = [

View File

@@ -1,5 +1,5 @@
{ pkgs ? import <nixpkgs> { } { pkgs ? import <nixpkgs> { }
, release ? "20.09" , release ? "21.05"
}: }:
let let
inherit (pkgs) lib; inherit (pkgs) lib;

View File

@@ -13,7 +13,7 @@ in {
<niveum/configs/wifi.nix> <niveum/configs/wifi.nix>
<niveum/configs/tmux.nix> <niveum/configs/tmux.nix>
<niveum/configs/version.nix> <niveum/configs/version.nix>
<niveum/configs/traadfri.nix> # <niveum/configs/traadfri.nix>
<niveum/modules/retiolum.nix> <niveum/modules/retiolum.nix>
]; ];
@@ -28,7 +28,7 @@ in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git vim htop wget reptyr git vim htop wget reptyr
raspberrypi-tools libraspberrypi
]; ];
users.mutableUsers = false; users.mutableUsers = false;

View File

@@ -7,7 +7,7 @@ in
<niveum/configs/default.nix> <niveum/configs/default.nix>
<niveum/configs/battery.nix> <niveum/configs/battery.nix>
./hardware-configuration.nix ./hardware-configuration.nix
<stockholm/krebs/2configs/hw/x220.nix> # <stockholm/krebs/2configs/hw/x220.nix>
]; ];
niveum = { niveum = {