From c9cd1711bf4c20a9c967dd5671eb4606d6bc0c6a Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 25 Feb 2024 19:18:50 +0300 Subject: [PATCH] Mangohud : Enable globally. --- .config/linux/system/flake.lock | 16 ---------------- .config/linux/system/flake.nix | 2 +- .config/linux/system/module/Desktop.nix | 6 +++++- .config/linux/system/module/common/Dotfiles.nix | 2 +- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/.config/linux/system/flake.lock b/.config/linux/system/flake.lock index 508b107..6f44a12 100644 --- a/.config/linux/system/flake.lock +++ b/.config/linux/system/flake.lock @@ -1,20 +1,5 @@ { "nodes": { - "applefonts": { - "inputs": { - "nixpkgs": "nixpkgs" - }, - "locked": { - "lastModified": 1, - "narHash": "sha256-KbrC/id7KX3UsnL0jRu6WuKujzYvo5uDhLCpJhWgnRk=", - "path": "derivation/apple_font", - "type": "path" - }, - "original": { - "path": "derivation/apple_font", - "type": "path" - } - }, "dotfiles": { "flake": false, "locked": { @@ -369,7 +354,6 @@ }, "root": { "inputs": { - "applefonts": "applefonts", "dotfiles": "dotfiles", "nixpkgs": "nixpkgs_2", "nvimAlign": "nvimAlign", diff --git a/.config/linux/system/flake.nix b/.config/linux/system/flake.nix index a2ff664..ab78ec1 100644 --- a/.config/linux/system/flake.nix +++ b/.config/linux/system/flake.nix @@ -6,7 +6,7 @@ url = "git+https://git.voronind.com/voronind/linux.git"; flake = false; }; - applefonts.url = "path:derivation/apple_font"; + applefonts.url = "git+file:.?dir=./.config/linux/system/derivation/apple_font"; # Nvim plugins. nvimAlign = { diff --git a/.config/linux/system/module/Desktop.nix b/.config/linux/system/module/Desktop.nix index fc1eb41..9024575 100644 --- a/.config/linux/system/module/Desktop.nix +++ b/.config/linux/system/module/Desktop.nix @@ -7,12 +7,16 @@ gradience jellyfin jetbrains.idea-community - mangohud obs-studio onlyoffice-bin tor-browser ]; + hardware.opengl = { + extraPackages = with pkgs; [ mangohud ]; + extraPackages32 = with pkgs; [ mangohud ]; + }; + # Special packages. programs.steam.enable = true; } diff --git a/.config/linux/system/module/common/Dotfiles.nix b/.config/linux/system/module/common/Dotfiles.nix index d9e52e2..748afd9 100644 --- a/.config/linux/system/module/common/Dotfiles.nix +++ b/.config/linux/system/module/common/Dotfiles.nix @@ -1,7 +1,7 @@ { pkgs, inputs, ... }: let unit = { description = "Install/update dotfiles on startup."; - wantedBy = [ "multi-user.target" ]; + wantedBy = [ "multi-user.target" "default.target" ]; wants = [ "NetworkManager-wait-online.service" ]; after = [ "NetworkManager-wait-online.service" ]; serviceConfig.Type = "oneshot";