feat(flatpak): add flatpak

This commit is contained in:
Ahurac 2024-10-01 00:10:51 +02:00
parent 030e97279d
commit 8473465d46
3 changed files with 35 additions and 1 deletions

View file

@ -38,6 +38,21 @@
services.udisks2.enable = true; services.udisks2.enable = true;
services.libinput.enable = true; services.libinput.enable = true;
services.flatpak = {
enable = true;
packages = [ "dev.aunetx.deezer" "im.riot.Riot" ];
update.onActivation = true;
overrides = {
global = {
Context.sockets = [ "wayland" "!x11" "!fallback-x11" ];
Environment = {
XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons";
GTK_THEME = "Adwaita:dark";
};
};
};
};
programs.hyprland.enable = true; programs.hyprland.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;

View file

@ -21,6 +21,21 @@
"type": "github" "type": "github"
} }
}, },
"nix-flatpak": {
"locked": {
"lastModified": 1721549352,
"narHash": "sha256-nlXJa8RSOX0kykrIYW33ukoHYq+FOSNztHLLgqKwOp8=",
"owner": "gmodena",
"repo": "nix-flatpak",
"rev": "dbce39ea8664820ba9037caaf1e2fad365ed6b4b",
"type": "github"
},
"original": {
"owner": "gmodena",
"repo": "nix-flatpak",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1727348695, "lastModified": 1727348695,
@ -40,6 +55,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }

View file

@ -5,12 +5,14 @@
url = "github:nix-community/home-manager/master"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-flatpak.url = "github:gmodena/nix-flatpak";
}; };
outputs = inputs@{ self, nixpkgs, home-manager, ... }: { outputs = { self, nixpkgs, home-manager, nix-flatpak, ... }: {
nixosConfigurations.ahrc-pc = nixpkgs.lib.nixosSystem { nixosConfigurations.ahrc-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
nix-flatpak.nixosModules.nix-flatpak
./ahrc-pc/configuration.nix ./ahrc-pc/configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
@ -24,6 +26,7 @@
nixosConfigurations.ahrc-laptop = nixpkgs.lib.nixosSystem { nixosConfigurations.ahrc-laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
nix-flatpak.nixosModules.nix-flatpak
./ahrc-laptop/configuration.nix ./ahrc-laptop/configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {