Update to 20.09

MPV is disabled since the override options no longer work.
This also applies updated formatting.
restic-rest-server
Simon Bruder 2020-09-25 18:31:43 +02:00
parent d93165edf6
commit db1348014e
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
16 changed files with 40 additions and 43 deletions

View File

@ -9,7 +9,7 @@
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = []; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ {

View File

@ -7,7 +7,7 @@
git-crypt # used to store secrets in configuration git-crypt # used to store secrets in configuration
git-lfs # not so essential, but required to clone config git-lfs # not so essential, but required to clone config
htop htop
(unstable.neovim.override { vimAlias = true; }) # FIXME unstable is for python-msgpack 1.0; use stable once python-msgpack 1.0 is in stable (neovim.override { vimAlias = true; })
tmux tmux
]; ];

View File

@ -79,7 +79,7 @@
(pass-wayland.withExtensions (es: with es; [ pass-otp ])) # password manager (pass-wayland.withExtensions (es: with es; [ pass-otp ])) # password manager
pwgen pwgen
pwgen-secure # password generator pwgen-secure # password generator
unstable.xkcdpass # memorable password generator xkcdpass # memorable password generator
# misc # misc
toilet # free figlet toilet # free figlet
@ -94,7 +94,7 @@
nix-direnv # per-directory environment for nix nix-direnv # per-directory environment for nix
# git # git
unstable.gitAndTools.git-annex gitAndTools.git-annex
gitAndTools.git-annex-remote-rclone # git for non source files gitAndTools.git-annex-remote-rclone # git for non source files
gitAndTools.pre-commit # pre-commit hook for git gitAndTools.pre-commit # pre-commit hook for git
]; ];

View File

@ -8,6 +8,6 @@
gimpPlugins.gmic # bitmap editor gimpPlugins.gmic # bitmap editor
krita # drawing krita # drawing
openscad # parametric/procedural 3d modelling openscad # parametric/procedural 3d modelling
unstable.inkscape # vector graphics editor inkscape # vector graphics editor
]; ];
} }

View File

@ -6,27 +6,29 @@
docker-ls docker-ls
]; ];
virtualisation.docker = { virtualisation = {
enable = true; docker = {
logDriver = "journald"; enable = true;
extraOptions = builtins.concatStringsSep " " [ logDriver = "journald";
"--ipv6" extraOptions = builtins.concatStringsSep " " [
"--fixed-cidr-v6=fd00:d0ce:d0ce:d0ce::/64" "--ipv6"
]; "--fixed-cidr-v6=fd00:d0ce:d0ce:d0ce::/64"
}; ];
};
docker-containers.ipv6nat = { oci-containers.containers.ipv6nat = {
image = "robbertkl/ipv6nat"; image = "robbertkl/ipv6nat";
volumes = [ volumes = [
"/var/run/docker.sock:/var/run/docker.sock:ro" "/var/run/docker.sock:/var/run/docker.sock:ro"
]; ];
extraDockerOptions = [ extraOptions = [
"--network=host" "--network=host"
"--cap-drop=ALL" "--cap-drop=ALL"
"--cap-add=NET_ADMIN" "--cap-add=NET_ADMIN"
"--cap-add=NET_RAW" "--cap-add=NET_RAW"
"--cap-add=SYS_MODULE" "--cap-add=SYS_MODULE"
]; ];
};
}; };
environment.etc."modules-load.d/ipv6nat.conf".text = "ip6_tables\n"; environment.etc."modules-load.d/ipv6nat.conf".text = "ip6_tables\n";

View File

@ -5,10 +5,10 @@
fonts = with pkgs; [ fonts = with pkgs; [
corefonts # good ol microsoft fonts corefonts # good ol microsoft fonts
google-fonts # google font collection (free) google-fonts # google font collection (free)
(unstable.nerdfonts.override { fonts = [ "Iosevka" ]; }) (nerdfonts.override { fonts = [ "Iosevka" ]; })
#roboto # standalone roboto has awful kerning #roboto # standalone roboto has awful kerning
unstable.source-han-sans source-han-sans
unstable.source-han-serif # CJK fonts source-han-serif # CJK fonts
vistafonts # newer microsoft fonts vistafonts # newer microsoft fonts
]; ];

View File

@ -6,7 +6,7 @@
filezilla # ftp client filezilla # ftp client
gparted # gui for parted gparted # gui for parted
qalculate-gtk # flexible calculator qalculate-gtk # flexible calculator
unstable.antimicroX # gamepad to keyboard/mouse mapping antimicroX # gamepad to keyboard/mouse mapping
wl-clipboard # not really gui, but cli tool to manage wayland clipboard wl-clipboard # not really gui, but cli tool to manage wayland clipboard
wxhexeditor # hex editor wxhexeditor # hex editor
xfce.thunar # graphical file manager xfce.thunar # graphical file manager

View File

@ -3,5 +3,5 @@
{ {
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
environment.systemPackages = if gui then [ pkgs.virt-manager ] else []; environment.systemPackages = if gui then [ pkgs.virt-manager ] else [ ];
} }

View File

@ -32,7 +32,7 @@
# Audio + Video # Audio + Video
ffmpeg-full # A/V multitool ffmpeg-full # A/V multitool
mkvtoolnix # matroska (de-)muxing mkvtoolnix # matroska (de-)muxing
(mpv.override { archiveSupport = true; vapoursynthSupport = true; }) # media player #(mpv.override { archiveSupport = true; vapoursynthSupport = true; }) # media player
# Literature # Literature
calibre # ebook library calibre # ebook library
@ -45,5 +45,5 @@
hardware.opengl.extraPackages = with pkgs; if gui then [ hardware.opengl.extraPackages = with pkgs; if gui then [
pkgs.vaapiIntel pkgs.vaapiIntel
] else []; ] else [ ];
} }

View File

@ -1,5 +1,4 @@
{ pkgs, ... }: { pkgs, ... }:
let let
mpdConf = pkgs.writeText "mpd.conf" '' mpdConf = pkgs.writeText "mpd.conf" ''
music_directory "~/Music" music_directory "~/Music"

View File

@ -1,5 +1,4 @@
{ config, ... }: { config, ... }:
let let
vpnNetRanges = config.networking.wireguard.interfaces.wg-home.ips; vpnNetRanges = config.networking.wireguard.interfaces.wg-home.ips;
vpnNetRange = builtins.elemAt vpnNetRanges 0; vpnNetRange = builtins.elemAt vpnNetRanges 0;

View File

@ -1,5 +1,4 @@
{ pkgs, config, lib, ... }: { pkgs, config, lib, ... }:
let let
excludes = [ excludes = [
# General # General
@ -47,7 +46,7 @@ in
s3CredentialsFile = toString ../secrets/s3_credentials; s3CredentialsFile = toString ../secrets/s3_credentials;
repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic"; repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic";
paths = lib.mkDefault ( paths = lib.mkDefault (
[] [ ]
++ maybePath /data ++ maybePath /data
++ maybePath /home ++ maybePath /home
++ maybePath /srv ++ maybePath /srv

View File

@ -1,5 +1,4 @@
{ ... }: { ... }:
let let
pubkeys = import ./pubkeys.nix; pubkeys = import ./pubkeys.nix;
in in

View File

@ -10,11 +10,11 @@
(waybar.override { pulseSupport = true; }) # better status bar (waybar.override { pulseSupport = true; }) # better status bar
mako # notification daemon mako # notification daemon
#kanshi # autorandr #kanshi # autorandr
unstable.alacritty # temrinal alacritty # temrinal
unstable.dmenu-wayland # launcher dmenu-wayland # launcher
brightnessctl # control screen brightness brightnessctl # control screen brightness
#redshift-wlr # natural color temperature #redshift-wlr # natural color temperature
unstable.sway-contrib.grimshot # screenshots sway-contrib.grimshot # screenshots
]; ];
extraSessionCommands = '' extraSessionCommands = ''
export CLUTTER_BACKEND=wayland export CLUTTER_BACKEND=wayland

View File

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {} }: { pkgs ? import <nixpkgs> { } }:
pkgs.mkShell { pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [

View File

@ -1,11 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
let let
pubkeys = import ../../modules/pubkeys.nix; pubkeys = import ../../modules/pubkeys.nix;
in in
{ {
imports = [ imports = [
(import "${builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos") # FIXME: pin to release (import "${builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz"}/nixos") # FIXME: pin to 20.09
]; ];
users.users.simon = { users.users.simon = {