diff options
| -rw-r--r-- | flake.lock | 61 | ||||
| -rw-r--r-- | flake.nix | 3 | ||||
| -rw-r--r-- | nix.conf | 1 | ||||
| -rw-r--r-- | system/desktop.nix | 14 |
4 files changed, 74 insertions, 5 deletions
@@ -115,7 +115,25 @@ }, "flake-utils": { "inputs": { - "systems": "systems_3" + "systems": "systems_2" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_2": { + "inputs": { + "systems": "systems_4" }, "locked": { "lastModified": 1731533236, @@ -614,6 +632,27 @@ "type": "github" } }, + "preload-ng": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1765741297, + "narHash": "sha256-RY1qkoCD+E9mjhhrOKsISQXSUZHPx2/cEQj94OXlgWQ=", + "owner": "miguel-b-p", + "repo": "preload-ng", + "rev": "6e3d89bd09c07d221a8b54b1cc60a99c975652ec", + "type": "github" + }, + "original": { + "owner": "miguel-b-p", + "repo": "preload-ng", + "type": "github" + } + }, "root": { "inputs": { "apple-fonts": "apple-fonts", @@ -624,6 +663,7 @@ "hyprland-plugins": "hyprland-plugins", "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs", + "preload-ng": "preload-ng", "rose-pine-hyprcursor": "rose-pine-hyprcursor", "sops-nix": "sops-nix", "talc": "talc", @@ -804,9 +844,24 @@ "type": "github" } }, + "systems_4": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "talc": { "inputs": { - "flake-utils": "flake-utils", + "flake-utils": "flake-utils_2", "nixpkgs": [ "nixpkgs" ] @@ -827,7 +882,7 @@ }, "utils": { "inputs": { - "systems": "systems_2" + "systems": "systems_3" }, "locked": { "lastModified": 1710146030, @@ -39,6 +39,9 @@ zen-browser.url = "github:0xc000022070/zen-browser-flake"; zen-browser.inputs.nixpkgs.follows = "nixpkgs"; zen-browser.inputs.home-manager.follows = "home-manager"; + # preload-ng + preload-ng.url = "github:miguel-b-p/preload-ng"; + preload-ng.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { @@ -1,2 +1 @@ experimental-features = nix-command flakes -use-xdg-base-directories = true diff --git a/system/desktop.nix b/system/desktop.nix index 5b4f4d9..307d0b9 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -1,10 +1,16 @@ { lib, config, + inputs, + system, ... }: let - inherit (lib) mkIf; + inherit (lib) mkIf optionals; in { + imports = [ + inputs.preload-ng.nixosModules.default + ]; + config = mkIf config.desktops.enable { # nix-ld programs.nix-ld.enable = true; @@ -43,5 +49,11 @@ in { openFirewall = true; }; users.groups.lp.members = [config.user]; + + # preload-ng + services.preload-ng = { + enable = true; + package = inputs.preload-ng.packages.${system}.preload-ng-src; + }; }; } |