feat(terminal,flatpak): enable flatpak for apps just in flatpak

This commit is contained in:
Guz
2026-03-25 19:16:10 -03:00
parent a8485eca57
commit 05bb934532
5 changed files with 31 additions and 0 deletions

16
flake.lock generated
View File

@@ -254,6 +254,21 @@
"url": "https://code.capytal.cc/dot013/nvim"
}
},
"nix-flatpak": {
"locked": {
"lastModified": 1768656715,
"narHash": "sha256-Sbh037scxKFm7xL0ahgSCw+X2/5ZKeOwI2clqrYr9j4=",
"owner": "gmodena",
"repo": "nix-flatpak",
"rev": "123fe29340a5b8671367055b75a6e7c320d6f89a",
"type": "github"
},
"original": {
"owner": "gmodena",
"repo": "nix-flatpak",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1767892417,
@@ -403,6 +418,7 @@
"home-manager": "home-manager",
"impermanence": "impermanence",
"neovim": "neovim",
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs_3",
"nixpkgs-unstable": "nixpkgs-unstable",
"sops-nix": "sops-nix",

View File

@@ -44,6 +44,10 @@
# url = "git+file:///home/guz/.projects/dot013-nvim";
};
nix-flatpak = {
url = "github:gmodena/nix-flatpak";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs-unstable";

View File

@@ -28,6 +28,8 @@
};
users.groups."guz" = {};
services.flatpak.enable = true;
# Shell
programs.zsh.enable = true;

View File

@@ -1,4 +1,5 @@
{
inputs,
lib,
osConfig,
pkgs,
@@ -6,6 +7,7 @@
...
}: {
imports = [
inputs.nix-flatpak.homeManagerModules.nix-flatpak
self.homeManagerModules.devkit
./browser.nix
@@ -13,6 +15,11 @@
./impermanence.nix
];
services.flatpak.enable = true;
services.flatpak.packages = [
"org.vinegarhq.Sober"
];
home.packages =
# Programs
(with pkgs; [

View File

@@ -24,6 +24,7 @@ with lib; {
["0755" ".steam"]
["0755" ".cache/Audacity"]
["0755" ".cache/blender"]
["0755" ".cache/flatpak"]
["0755" ".cache/go-build"]
["0755" ".cache/godot"]
["0700" ".cache/gopls"]
@@ -46,6 +47,7 @@ with lib; {
["0755" ".local/share/Audacity"]
["0755" ".local/share/audacity4"]
["0755" ".local/share/direnv"]
["0755" ".local/share/flatpak"]
["0700" ".local/share/keyrings"]
["0700" ".local/share/Steam"]
];