Tried nix-flatpak but couldn't get hmModule to work

This commit is contained in:
Emmet 2023-12-21 21:09:44 -06:00
parent bbb51e0286
commit 073782130e
3 changed files with 14 additions and 1 deletions

View file

@ -55,7 +55,9 @@
homeConfigurations = { homeConfigurations = {
user = home-manager.lib.homeManagerConfiguration { user = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
modules = [ (./. + "/profiles"+("/"+profile)+"/home.nix") ]; # load home.nix from selected PROFILE modules = [ (./. + "/profiles"+("/"+profile)+"/home.nix") # load home.nix from selected PROFILE
# inputs.nix-flatpak.homeManagerModules.nix-flatpak # Declarative flatpaks
];
extraSpecialArgs = { extraSpecialArgs = {
# pass config variables from above # pass config variables from above
inherit username; inherit username;
@ -75,6 +77,7 @@
inherit term; inherit term;
inherit spawnEditor; inherit spawnEditor;
inherit (inputs) nix-doom-emacs; inherit (inputs) nix-doom-emacs;
#inherit (inputs) nix-flatpak;
inherit (inputs) stylix; inherit (inputs) stylix;
inherit (inputs) eaf; inherit (inputs) eaf;
inherit (inputs) eaf-browser; inherit (inputs) eaf-browser;
@ -116,6 +119,7 @@
nix-doom-emacs.url = "github:librephoenix/nix-doom-emacs?ref=pgtk-patch"; nix-doom-emacs.url = "github:librephoenix/nix-doom-emacs?ref=pgtk-patch";
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
rust-overlay.url = "github:oxalica/rust-overlay"; rust-overlay.url = "github:oxalica/rust-overlay";
#nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.2.0";
eaf = { eaf = {
url = "github:emacs-eaf/emacs-application-framework"; url = "github:emacs-eaf/emacs-application-framework";
flake = false; flake = false;

View file

@ -5,4 +5,8 @@
home.sessionVariables = { home.sessionVariables = {
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"; # lets flatpak work XDG_DATA_DIRS = "$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"; # lets flatpak work
}; };
#services.flatpak.enable = true;
#services.flatpak.packages = [ { appId = "com.kde.kdenlive"; origin = "flathub"; } ];
#services.flatpak.update.onActivation = true;
} }

View file

@ -37,4 +37,9 @@ in
}; };
# To get steam to import into gamehub, first install it as a flatpak, then # To get steam to import into gamehub, first install it as a flatpak, then
# Set steam directory to ~/.var/app/com.valvesoftware.Steam/.steam # Set steam directory to ~/.var/app/com.valvesoftware.Steam/.steam
#services.flatpak.packages = [
# "com.discordapp.Discord"
# "com.jaquadro.NBTExplorer"
#];
} }