diff --git a/configuration.nix b/configuration.nix index 12f80b0..08dd3fe 100644 --- a/configuration.nix +++ b/configuration.nix @@ -105,7 +105,13 @@ pavucontrol ]; - services.flatpak.enable = true; + services.flatpak = { + enable = true; + update.onActivation = true; + packages = [ + "com.heroicgameslauncher.hgl" + ]; + }; programs.firefox.enable = true; diff --git a/flake.lock b/flake.lock index 2c40b66..c1df546 100644 --- a/flake.lock +++ b/flake.lock @@ -42,6 +42,22 @@ "type": "github" } }, + "nix-flatpak": { + "locked": { + "lastModified": 1739444422, + "narHash": "sha256-iAVVHi7X3kWORftY+LVbRiStRnQEob2TULWyjMS6dWg=", + "owner": "gmodena", + "repo": "nix-flatpak", + "rev": "5e54c3ca05a7c7d968ae1ddeabe01d2a9bc1e177", + "type": "github" + }, + "original": { + "owner": "gmodena", + "ref": "latest", + "repo": "nix-flatpak", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1749794982, @@ -62,6 +78,7 @@ "inputs": { "firefox-addons": "firefox-addons", "home-manager": "home-manager", + "nix-flatpak": "nix-flatpak", "nixpkgs": "nixpkgs" } } diff --git a/flake.nix b/flake.nix index bef62ac..a6df498 100644 --- a/flake.nix +++ b/flake.nix @@ -12,9 +12,11 @@ url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest"; }; - outputs = { nixpkgs, ... } @ inputs: + outputs = { self, nixpkgs, nix-flatpak, ... } @ inputs: let system = "x86_64-linux"; in @@ -25,6 +27,7 @@ specialArgs = { inherit inputs system; }; modules = [ ./configuration.nix + nix-flatpak.nixosModules.nix-flatpak ]; };