From 9a0b1f679ce20543b00fefdd609858c1f12e4743 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 7 May 2020 12:13:35 +0200 Subject: [PATCH] PC-Fixe: update config --- overlays/ledger-udev-rules.nix | 18 ------------ systems/PC-Fixe/configuration.nix | 32 +++++++--------------- systems/PC-Fixe/hardware-configuration.nix | 6 ---- systems/common-gui.nix | 14 ++++------ 4 files changed, 16 insertions(+), 54 deletions(-) delete mode 100644 overlays/ledger-udev-rules.nix diff --git a/overlays/ledger-udev-rules.nix b/overlays/ledger-udev-rules.nix deleted file mode 100644 index 495e46064..000000000 --- a/overlays/ledger-udev-rules.nix +++ /dev/null @@ -1,18 +0,0 @@ -self: super: - -{ - ledger-udev-rules = super.writeTextFile { - name = "ledger-udev-rules"; - text = '' - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="users" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="2b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="users" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="3b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="users" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="4b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="users" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1807", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="users" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1808", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="users" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0000", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="users" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="users" - ''; - destination = "/etc/udev/rules.d/99-ledger.rules"; - }; -} diff --git a/systems/PC-Fixe/configuration.nix b/systems/PC-Fixe/configuration.nix index d3a6f5183..dd66d0182 100644 --- a/systems/PC-Fixe/configuration.nix +++ b/systems/PC-Fixe/configuration.nix @@ -23,6 +23,15 @@ boot.tmpOnTmpfs = true; boot.supportedFilesystems = [ "zfs" ]; + boot.kernelPatches = [ + { name = "dirt_rally_2_ffb_fix"; + patch = pkgs.fetchpatch { + url = "https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/patch/?id=09264098ff153f60866039d60b31d39b66f55a31"; + sha256 = "17g7zvn46b9252qk4sqd3j73989lr0hkd86zz4bq1c4dhziy219w"; + }; + } + ]; + services.zfs = { trim.enable = true; autoSnapshot = { @@ -41,9 +50,7 @@ usb-modeswitch-data # Logitech G920 ]; - # Corsair K70 services.udev.extraRules = '' - SUBSYSTEM=="usb", ATTR{bInterfaceNumber}=="00", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="1b09", RUN+="${pkgs.bash}/bin/sh -c '${pkgs.coreutils}/bin/echo -n %k > /sys''${DEVPATH}/driver/unbind'" ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="dialout" ''; @@ -54,7 +61,6 @@ environment.systemPackages = with pkgs; [ usb_modeswitch - virtmanager ]; programs.wireshark.enable = true; @@ -83,28 +89,10 @@ services.netdata.enable = true; - services.tor.enable = true; - services.tor.client.enable = true; - - virtualisation.libvirtd.enable = true; - services.openssh.enable = true; services.openssh.passwordAuthentication = false; + services.openssh.forwardX11 = true; - systemd.services.iscsid = { - description = "iscsid daemon"; - wantedBy = [ "network-online.target" ]; - preStart = "${pkgs.kmod}/bin/modprobe iscsi_tcp"; - postStart = '' - ${pkgs.openiscsi}/bin/iscsiadm -m discovery -t st -p 10.30.0.1 - ${pkgs.openiscsi}/bin/iscsiadm -m node -T iqn.2019-11.nyanlout.re:steam -l - ''; - serviceConfig = { - ExecStart = "${pkgs.openiscsi}/bin/iscsid -f -c ${pkgs.openiscsi}/etc/iscsi/iscsid.conf -i ${pkgs.openiscsi}/etc/iscsi/initiatorname.iscsi"; - KillMode = "process"; - Restart = "on-success"; - }; - }; system.stateVersion = "20.03"; } diff --git a/systems/PC-Fixe/hardware-configuration.nix b/systems/PC-Fixe/hardware-configuration.nix index eb8e3572b..82d25920b 100644 --- a/systems/PC-Fixe/hardware-configuration.nix +++ b/systems/PC-Fixe/hardware-configuration.nix @@ -61,12 +61,6 @@ options = [ "bind" ]; }; - fileSystems."/mnt/steam-lun" = - { device = "/dev/disk/by-path/ip-10.30.0.1:3260-iscsi-iqn.2019-11.nyanlout.re:steam-lun-1"; - fsType = "ext4"; - options = ["x-systemd.automount" "noauto"]; - }; - fileSystems."/mnt/medias" = { device = "10.30.0.1:/mnt/medias"; fsType = "nfs"; diff --git a/systems/common-gui.nix b/systems/common-gui.nix index 3ef475a12..4c90469cb 100644 --- a/systems/common-gui.nix +++ b/systems/common-gui.nix @@ -1,10 +1,6 @@ { config, pkgs, ... }: { - nixpkgs.overlays = [ - (import ../overlays/ledger-udev-rules.nix) - ]; - nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ @@ -21,6 +17,7 @@ steam-run minecraft multimc + lutris betaflight-configurator @@ -59,17 +56,17 @@ }) gnome-breeze - arc-theme - materia-theme libreoffice gimp + inkscape imagemagick obs-studio vlc - kodiPlain mpv + jftui + calibre glxinfo i7z @@ -77,10 +74,11 @@ ]; i18n = { - consoleKeyMap = "fr"; defaultLocale = "fr_FR.UTF-8"; }; + console.keyMap = "fr"; + hardware = { opengl.driSupport32Bit = true; pulseaudio.support32Bit = true;