From 5e2ef0224998de4b29a71f28a70ccb934a9e82e4 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Fri, 31 Aug 2018 22:39:28 +0200 Subject: [PATCH 1/4] Installation programmes --- systems/ASUS-G46VW/configuration.nix | 30 +++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 7cb4753..19b4476 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -25,6 +25,8 @@ hardware.opengl.driSupport32Bit = true; hardware.pulseaudio.support32Bit = true; + hardware.u2f.enable = true; + networking.hostName = "rog-paul"; # Define your hostname. networking.networkmanager.enable = true; # Enables wireless support via wpa_supplicant. @@ -43,6 +45,7 @@ nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ gitFull + tig neovim usbutils filezilla @@ -54,6 +57,15 @@ nix-zsh-completions python3Full openvpn + qbittorrent + transmission-remote-gtk + yarn2nix + file + binutils + patchelf + gcc + nix-index + appimage-run gopass xclip @@ -80,6 +92,10 @@ gwenview kcalc spectacle + + gnome-breeze + arc-theme + materia-theme libreoffice gimp @@ -88,9 +104,17 @@ steam_primus sc-controller + steam-run + minecraft - electrum - electron-cash + glxinfo + i7z + lshw + nmap + nox + obs-studio + sassc + telnet ]; programs.tmux.enable = true; @@ -168,7 +192,7 @@ users.defaultUserShell = pkgs.zsh; programs.zsh.enable = true; - programs.zsh.enableAutosuggestions = true; + programs.zsh.autosuggestions.enable = true; programs.zsh.enableCompletion = true; programs.zsh.syntaxHighlighting.enable = true; programs.zsh.ohMyZsh.enable = true; From 60d338476975939dc52c8aea061e781844b5ac80 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Fri, 31 Aug 2018 22:47:06 +0200 Subject: [PATCH 2/4] Package steam controller udev --- overlays/steamcontroller-udev-rules.nix | 2 +- systems/ASUS-G46VW/configuration.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/overlays/steamcontroller-udev-rules.nix b/overlays/steamcontroller-udev-rules.nix index 74ff7ba..c2ab68d 100644 --- a/overlays/steamcontroller-udev-rules.nix +++ b/overlays/steamcontroller-udev-rules.nix @@ -1,7 +1,7 @@ self: super: { - steamcontroller-udev-rules = pkgs.writeTextFile { + steamcontroller-udev-rules = super.writeTextFile { name = "steamcontroller-udev-rules"; text = '' # This rule is needed for basic functionality of the controller in Steam and keyboard/mouse emulation diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 19b4476..a981536 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -14,6 +14,7 @@ (import ../../overlays/sudo.nix) (import ../../overlays/neovim.nix) (import ../../overlays/steam.nix) + (import ../../overlays/steamcontroller-udev-rules.nix) ]; # Use the systemd-boot EFI boot loader. @@ -27,6 +28,8 @@ hardware.u2f.enable = true; + services.udev.packages = [pkgs.steamcontroller-udev-rules]; + networking.hostName = "rog-paul"; # Define your hostname. networking.networkmanager.enable = true; # Enables wireless support via wpa_supplicant. From 11695af32ba860f7239e74e4740338daf8373a9e Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Fri, 31 Aug 2018 22:57:18 +0200 Subject: [PATCH 3/4] =?UTF-8?q?R=C3=A8gles=20udev=20Ledger=20packag=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- overlays/ledger-udev-rules.nix | 18 ++++++++++++++++++ systems/ASUS-G46VW/configuration.nix | 21 ++++++--------------- 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 overlays/ledger-udev-rules.nix diff --git a/overlays/ledger-udev-rules.nix b/overlays/ledger-udev-rules.nix new file mode 100644 index 0000000..495e460 --- /dev/null +++ b/overlays/ledger-udev-rules.nix @@ -0,0 +1,18 @@ +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/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index a981536..1415a03 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -15,6 +15,7 @@ (import ../../overlays/neovim.nix) (import ../../overlays/steam.nix) (import ../../overlays/steamcontroller-udev-rules.nix) + (import ../../overlays/ledger-udev-rules.nix) ]; # Use the systemd-boot EFI boot loader. @@ -28,7 +29,10 @@ hardware.u2f.enable = true; - services.udev.packages = [pkgs.steamcontroller-udev-rules]; + services.udev.packages = with pkgs; [ + steamcontroller-udev-rules + ledger-udev-rules + ]; networking.hostName = "rog-paul"; # Define your hostname. networking.networkmanager.enable = true; # Enables wireless support via wpa_supplicant. @@ -142,18 +146,6 @@ ) ]; - # Ledger udev rules - services.udev.extraRules = '' - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="ledger" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="2b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="ledger" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="3b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="ledger" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="4b7c", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="ledger" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1807", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="ledger" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1808", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="ledger" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0000", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="ledger" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="ledger" - ''; - # List services that you want to enable: # Enable the OpenSSH daemon. @@ -189,9 +181,8 @@ users.extraUsers.paul = { isNormalUser = true; uid = 1000; - extraGroups = [ "wheel" "networkmanager" "ledger" "wireshark" ]; + extraGroups = [ "wheel" "networkmanager" "wireshark" ]; }; - users.extraGroups.ledger = { }; users.defaultUserShell = pkgs.zsh; programs.zsh.enable = true; From 3792a3a19efadb4e47af22c1b580f4a4f56d5be8 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Fri, 31 Aug 2018 22:59:05 +0200 Subject: [PATCH 4/4] Splashscreen au boot --- systems/ASUS-G46VW/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 1415a03..0868f22 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -21,6 +21,7 @@ # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.plymouth.enable = true; hardware.bumblebee.enable = true; # For Steam