feat: setup flaypak.
This commit is contained in:
parent
760eac66a2
commit
54d372fbd9
17
flake.lock
generated
17
flake.lock
generated
@ -481,6 +481,22 @@
|
|||||||
"type": "github"
|
"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"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-formatter-pack": {
|
"nix-formatter-pack": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -740,6 +756,7 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"iamb": "iamb",
|
"iamb": "iamb",
|
||||||
"nbfc-linux": "nbfc-linux",
|
"nbfc-linux": "nbfc-linux",
|
||||||
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nix-on-droid": "nix-on-droid",
|
"nix-on-droid": "nix-on-droid",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
@ -53,11 +53,15 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Support for android
|
||||||
nix-on-droid = {
|
nix-on-droid = {
|
||||||
url = "github:nix-community/nix-on-droid/release-24.05";
|
url = "github:nix-community/nix-on-droid/release-24.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.home-manager.follows = "home-manager";
|
inputs.home-manager.follows = "home-manager";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Declare flatpak easilly
|
||||||
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
@ -70,6 +70,9 @@
|
|||||||
# Enable seatd
|
# Enable seatd
|
||||||
services.seatd.enable = true;
|
services.seatd.enable = true;
|
||||||
|
|
||||||
|
# Enable flatpak
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
# Enable ratbagd to customize mouse options
|
# Enable ratbagd to customize mouse options
|
||||||
services.ratbagd.enable = true;
|
services.ratbagd.enable = true;
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
inputs.nvf.homeManagerModules.default
|
inputs.nvf.homeManagerModules.default
|
||||||
inputs.nix-index-database.hmModules.nix-index
|
inputs.nix-index-database.hmModules.nix-index
|
||||||
|
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some info
|
# Some info
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
./obs-studio.nix
|
./obs-studio.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./shell-additions.nix
|
./shell-additions.nix
|
||||||
|
./flatpak.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
crony.mangohud.enable = lib.mkDefault true;
|
crony.mangohud.enable = lib.mkDefault true;
|
||||||
@ -24,4 +25,5 @@
|
|||||||
crony.desktop.enable = lib.mkDefault true;
|
crony.desktop.enable = lib.mkDefault true;
|
||||||
crony.gaming.enable = lib.mkDefault true;
|
crony.gaming.enable = lib.mkDefault true;
|
||||||
crony.shell-additions.enable = lib.mkDefault true;
|
crony.shell-additions.enable = lib.mkDefault true;
|
||||||
|
crony.flatpak.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
25
modules/linux/home-manager/flatpak.nix
Normal file
25
modules/linux/home-manager/flatpak.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
crony.flatpak.enable = lib.mkEnableOption "Enable flatpak and install my packages";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.crony.flatpak.enable {
|
||||||
|
services.flatpak = {
|
||||||
|
enable = true;
|
||||||
|
packages = [
|
||||||
|
"com.albiononline.AlbionOnline"
|
||||||
|
"app.zen_browser.zen"
|
||||||
|
"com.usebottles.bottles"
|
||||||
|
];
|
||||||
|
|
||||||
|
update.auto = {
|
||||||
|
enable = true;
|
||||||
|
onCalendar = "weekly";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user