nix-flatpak to get declarative flatpaks

This commit is contained in:
smayzy 2025-06-22 10:39:14 +02:00
parent 9793aeec87
commit 514fd873db
3 changed files with 28 additions and 2 deletions

View File

@ -105,7 +105,13 @@
pavucontrol
];
services.flatpak.enable = true;
services.flatpak = {
enable = true;
update.onActivation = true;
packages = [
"com.heroicgameslauncher.hgl"
];
};
programs.firefox.enable = true;

17
flake.lock generated
View File

@ -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"
}
}

View File

@ -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
];
};