WIP: Update to 21.05 #52
16
flake.lock
16
flake.lock
|
@ -91,16 +91,16 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1617824794,
|
||||
"narHash": "sha256-UGkvzx0nIXHhNq/KwJLjXvKAQRE2V33MuX+UirvqrkQ=",
|
||||
"lastModified": 1621794721,
|
||||
"narHash": "sha256-JXfTSZUu9EVbT9D/MFsx0cXfa8bw1NFCzIxZ7gO73Uo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "2aa20ae969f2597c4df10a094440a66e9d7f8c86",
|
||||
"rev": "90493027e33ba9eb3f50dc1da365d0e4ca31bf14",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-20.09",
|
||||
"ref": "release-21.05",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -187,16 +187,16 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1621718065,
|
||||
"narHash": "sha256-2xw+iyUzV3blVq0EQjL2Qhzpp3r9uCLzYQns4nW7m7Y=",
|
||||
"lastModified": 1622104865,
|
||||
"narHash": "sha256-TY2wQE1m8nhjHTJ0lDL8ZUb9lA7Pw2WD2+bOiIhSqcE=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ac60476ed94fd5424d9f3410c438825f793a8cbb",
|
||||
"rev": "676ddafd3dbdc8dd95471df84bc5198d2d37d241",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-20.09",
|
||||
"ref": "release-21.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
inputs = {
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-20.09";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/release-21.05"; # FIXME: nixos-
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager/release-20.09";
|
||||
home-manager.url = "github:nix-community/home-manager/release-21.05";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
krops.url = "github:Mic92/krops";
|
||||
|
|
|
@ -70,7 +70,7 @@ in
|
|||
systemd.services.nar-serve =
|
||||
let
|
||||
# TODO: remove once new version is released and in nixpkgs
|
||||
nar-serve = pkgs.unstable.nar-serve.overrideAttrs (o: o // {
|
||||
nar-serve = pkgs.nar-serve.overrideAttrs (o: o // {
|
||||
version = "unstable-2021-04-08";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
|
|
|
@ -47,7 +47,7 @@ in
|
|||
"/etc/static"
|
||||
"/nix"
|
||||
];
|
||||
ExecStart = "${pkgs.unstable.drone-runner-exec}/bin/drone-runner-exec";
|
||||
ExecStart = "${pkgs.drone-runner-exec}/bin/drone-runner-exec";
|
||||
User = user;
|
||||
Group = group;
|
||||
};
|
||||
|
|
|
@ -28,7 +28,7 @@ in
|
|||
drone-rpc-environment.path
|
||||
drone-server-environment.path
|
||||
];
|
||||
ExecStart = "${pkgs.unstable.drone}/bin/drone-server";
|
||||
ExecStart = "${pkgs.drone}/bin/drone-server";
|
||||
Restart = "on-failure";
|
||||
User = user;
|
||||
Group = group;
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
enable = true;
|
||||
client.enable = true;
|
||||
};
|
||||
services.privoxy = {
|
||||
enable = true;
|
||||
enableTor = true;
|
||||
};
|
||||
|
||||
networking.hostName = "nunotaba";
|
||||
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/8937d1ac-23cb-456f-9c16-e348acc66bb7";
|
||||
fsType = "ext4";
|
||||
options = [ "discard" "noatime" ];
|
||||
device = "/dev/disk/by-uuid/c3ab2182-18b3-4cc6-a5b3-3fef32222aef";
|
||||
fsType = "btrfs";
|
||||
options = [ "discard=async" "noatime" "compress=zstd" ];
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
|
@ -40,7 +40,7 @@
|
|||
{ device = "/dev/disk/by-uuid/b9ad2d56-fee0-49df-98c1-00d93d991b9f"; }
|
||||
];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||||
|
||||
# Most of the time I want to use both screens at the same time and suspend it
|
||||
# regularily by closing the lid
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
enable = true;
|
||||
client.enable = true;
|
||||
};
|
||||
services.privoxy = {
|
||||
enable = true;
|
||||
enableTor = true;
|
||||
};
|
||||
|
||||
networking.hostName = "sayuri";
|
||||
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
];
|
||||
|
||||
boot = {
|
||||
# async trim on btrfs requires kernel 5.6+
|
||||
# TODO: Remove with kernel 5.6+ in stable
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ ];
|
||||
loader.grub.device = "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_250GB_S4EUNJ0N412342P";
|
||||
|
@ -78,7 +75,7 @@
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
clinfo
|
||||
unstable.radeontop
|
||||
radeontop
|
||||
rocm-smi
|
||||
];
|
||||
}
|
||||
|
|
|
@ -18,17 +18,6 @@ in
|
|||
# version that works in my setup
|
||||
prometheus-fritzbox-exporter = callPackage ./prometheus-fritzbox-exporter { };
|
||||
|
||||
# FIXME: 21.05: Move to home-manager module package attribute
|
||||
mpv-unwrapped = prev.mpv-unwrapped.overrideAttrs (o: o // {
|
||||
patches = [
|
||||
# FIXME: 21.05: Remove since it has mpv 0.33
|
||||
(prev.fetchpatch {
|
||||
url = "https://github.com/mpv-player/mpv/commit/43c13e5ea23230edca38426d4a9eed049a70890e.patch";
|
||||
sha256 = "0g73ws36cs2hfzqck6xiaimj5yd5hz68b4wf3qayyv4nrf5sz02c";
|
||||
})
|
||||
];
|
||||
});
|
||||
|
||||
# TODO: Remove when pavucontrol > 4.0 is released
|
||||
pavucontrol = prev.pavucontrol.overrideAttrs (o: o // {
|
||||
patches = [
|
||||
|
|
|
@ -7,7 +7,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
|
|||
enable = true;
|
||||
musicDirectory = "~/Music";
|
||||
network.listenAddress = "${config.services.mpd.dataDir}/socket";
|
||||
package = pkgs.unstable.mpd;
|
||||
extraConfig = ''
|
||||
zeroconf_enabled "no"
|
||||
|
||||
|
|
|
@ -35,8 +35,8 @@ let
|
|||
gallery-view = pkgs.fetchFromGitHub {
|
||||
owner = "occivink";
|
||||
repo = "mpv-gallery-view";
|
||||
rev = "5139d346de67e8dbee8c8983777026502d6bc627";
|
||||
sha256 = "1xcl31rpb6kp479kil4srkclw9ly565zavr65ary9s8795ygfcrs";
|
||||
rev = "eca93f9ff2b8716ac750824c9980f6eb766756cf";
|
||||
sha256 = "01ys2nd166lvcppnrch8ls5n6jhrha2z0jcn9hnfip63gvv2c5gn";
|
||||
|
||||
meta.license = lib.licenses.gpl2;
|
||||
};
|
||||
|
@ -220,7 +220,7 @@ in
|
|||
xdg.configFile."mpv/scripts/gallery-thumbgen-1.lua".source = "${gallery-view}/scripts/gallery-thumbgen.lua";
|
||||
xdg.configFile."mpv/scripts/gallery-thumbgen-2.lua".source = "${gallery-view}/scripts/gallery-thumbgen.lua";
|
||||
xdg.configFile."mpv/scripts/gallery-thumbgen-3.lua".source = "${gallery-view}/scripts/gallery-thumbgen.lua";
|
||||
xdg.configFile."mpv/scripts/lib/gallery.lua".source = "${gallery-view}/scripts/lib/gallery.lua";
|
||||
xdg.configFile."mpv/scripts/lib.disable/gallery.lua".source = "${gallery-view}/scripts/lib.disable/gallery.lua";
|
||||
xdg.configFile."mpv/scripts/playlist-view.lua".source = "${gallery-view}/scripts/playlist-view.lua";
|
||||
xdg.configFile."mpv/script-opts/playlist_view.conf".text = ''
|
||||
thumbs_dir=${config.xdg.cacheHome}/thumbnails/mpv
|
||||
|
|
|
@ -19,7 +19,7 @@ let
|
|||
};
|
||||
# waifu2x-converter-cpp wrapper for real life images
|
||||
waifu2x-photo = pkgs.writeShellScriptBin "waifu2x-photo" ''
|
||||
${pkgs.unstable.waifu2x-converter-cpp}/bin/waifu2x-converter-cpp \
|
||||
${pkgs.waifu2x-converter-cpp}/bin/waifu2x-converter-cpp \
|
||||
--model-dir ${waifu2x-photo-models} \
|
||||
$@
|
||||
'';
|
||||
|
@ -57,7 +57,7 @@ in
|
|||
|
||||
# network tools
|
||||
dnsutils # dig
|
||||
unstable.dogdns # better dig
|
||||
dogdns # better dig
|
||||
gatling # high performance web server
|
||||
sshfs # mount remote host
|
||||
vnstat # client for vnstatd
|
||||
|
@ -77,7 +77,7 @@ in
|
|||
|
||||
# end user programs
|
||||
apacheHttpd # for htpasswd
|
||||
unstable.libqalculate # flexible calculator for humans
|
||||
libqalculate # flexible calculator for humans
|
||||
taskwarrior # todo list manager
|
||||
|
||||
# passwords
|
||||
|
@ -113,8 +113,8 @@ in
|
|||
ffmpeg-full # A/V multitool
|
||||
mediainfo # show information about media files
|
||||
mkvtoolnix-cli # matroska (de-)muxing
|
||||
unstable.streamlink # video stream downloader
|
||||
unstable.waifu2x-converter-cpp # super-resolution for anime-style images
|
||||
streamlink # video stream downloader
|
||||
waifu2x-converter-cpp # super-resolution for anime-style images
|
||||
waifu2x-photo # waifu2x-converter-cpp for real life photos
|
||||
|
||||
# audio
|
||||
|
@ -176,7 +176,7 @@ in
|
|||
antimicroX # gamepad to keyboard/mouse mapping
|
||||
filezilla # ftp client
|
||||
gparted # gui for parted
|
||||
unstable.qalculate-gtk # flexible calculator
|
||||
qalculate-gtk # flexible calculator
|
||||
scrcpy # stream/control android phones over adb
|
||||
wev # wayland event monitor
|
||||
wl-clipboard # not really gui, but cli tool to manage wayland clipboard
|
||||
|
|
|
@ -29,10 +29,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
|
|||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
|
||||
# TODO: remove with 21.05
|
||||
package = pkgs.unstable.sway;
|
||||
xwayland = false;
|
||||
|
||||
config = {
|
||||
modifier = "Mod4";
|
||||
|
||||
|
@ -202,7 +198,11 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
|
|||
urgent = rec { border = "#073642"; background = "#dc322f"; text = "#073642"; indicator = "#2aa198"; childBorder = background; };
|
||||
};
|
||||
|
||||
fonts = [ "monospace 10" ];
|
||||
fonts = {
|
||||
names = [ "monospace" ];
|
||||
style = "Regular";
|
||||
size = 10.0;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
|
@ -282,7 +282,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
|
|||
brightnessctl # control screen brightness
|
||||
sway-contrib.grimshot # screenshots
|
||||
wdisplays # graphical output manager
|
||||
pkgs.unstable.xwayland # TODO: remove with 21.05
|
||||
];
|
||||
|
||||
xdg.configFile."swaynag/config".text =
|
||||
|
@ -517,8 +516,7 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
|
|||
Service = {
|
||||
# ensure sway is already started, otherwise workspaces will not work
|
||||
ExecStartPre = "${config.wayland.windowManager.sway.package}/bin/swaymsg";
|
||||
# FIXME: Remove override with 21.05 (https://github.com/NixOS/nixpkgs/pull/98490)
|
||||
ExecStart = "${pkgs.waybar.override { pulseSupport = true; }}/bin/waybar";
|
||||
ExecStart = "${pkgs.waybar}/bin/waybar";
|
||||
ExecReload = "${pkgs.utillinux}/bin/kill -SIGUSR2 $MAINPID";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "1s";
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{ lib, pkgs, ... }:
|
||||
let
|
||||
formats = (lib.flatten
|
||||
(lib.crossLists (x: y: [ "${x}+${y}" ])
|
||||
[
|
||||
[ "bestvideo[vcodec^=av01]" "bestvideo[vcodec^=vp9]" "bestvideo[vcodec^=avc1]" "bestvideo" ]
|
||||
[ "bestaudio[acodec^=opus]" "bestaudio[acodec^=mp4a]" "bestaudio" ]
|
||||
])) ++ [
|
||||
"best"
|
||||
];
|
||||
# zAudioFormat because a better video format is preferred and
|
||||
# cartesianProductOfSets cycles through the attributes in lexicographic order
|
||||
formats = (map
|
||||
({ videoFormat, zAudioFormat }: "${videoFormat}+${zAudioFormat}")
|
||||
(lib.cartesianProductOfSets {
|
||||
videoFormat = [ "bestvideo[vcodec^=av01]" "bestvideo[vcodec^=vp9]" "bestvideo[vcodec^=avc1]" "bestvideo" ];
|
||||
zAudioFormat = [ "bestaudio[acodec^=opus]" "bestaudio[acodec^=mp4a]" "bestaudio" ];
|
||||
})) ++ [ "best" ];
|
||||
|
||||
options = {
|
||||
format = lib.concatStringsSep "/" formats;
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ unstable.ytcc ];
|
||||
home.packages = with pkgs; [ ytcc ];
|
||||
}
|
||||
|
|
|
@ -64,17 +64,22 @@ in
|
|||
envExtra = ''
|
||||
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"
|
||||
'';
|
||||
initExtra = lib.mkAfter ''
|
||||
eval $(${pkgs.coreutils}/bin/dircolors -b ${dircolors-solarized}/dircolors.ansi-universal)
|
||||
initExtra = lib.mkMerge [
|
||||
(lib.mkBefore ''
|
||||
prompt off # collides with starship
|
||||
'')
|
||||
(lib.mkAfter ''
|
||||
eval $(${pkgs.coreutils}/bin/dircolors -b ${dircolors-solarized}/dircolors.ansi-universal)
|
||||
|
||||
# no sad smiley (starship shows exit status)
|
||||
zstyle ':prompt:grml:right:setup' items
|
||||
# no sad smiley (starship shows exit status)
|
||||
zstyle ':prompt:grml:right:setup' items
|
||||
|
||||
# do not glob # (conflicts with nix flakes)
|
||||
disable -p '#'
|
||||
# do not glob # (conflicts with nix flakes)
|
||||
disable -p '#'
|
||||
|
||||
source ${../files/zsh/pass-wrappers.zsh}
|
||||
'';
|
||||
source ${../files/zsh/pass-wrappers.zsh}
|
||||
'')
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue