Experimenting with flatpak-nix hm module

This commit is contained in:
Zonsopkomst 2023-10-25 10:52:20 -05:00
parent 24a8c817d9
commit 75d637388c
2 changed files with 18 additions and 0 deletions

View File

@ -6,12 +6,14 @@
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
nix-flatpak.url = "github:gmodena/nix-flatpak/main"; # Added 10/25
}; };
outputs = inputs@{ outputs = inputs@{
home-manager, home-manager,
hyprland, hyprland,
nixpkgs, nixpkgs,
nix-flatpak, # Added 10/25
... ...
}: { }: {
@ -128,6 +130,11 @@
home-manager.users.leeuwarden = import ./hosts/local/tyr/home.nix; home-manager.users.leeuwarden = import ./hosts/local/tyr/home.nix;
} }
]; ];
# Experimenting with nix-flatpak module
# Source: https://github.com/gmodena/nix-flatpak
nix-flatpak.nixosModules.nix-flatpak # Added 10/25
}; };
weda = nixpkgs.lib.nixosSystem { weda = nixpkgs.lib.nixosSystem {

View File

@ -0,0 +1,11 @@
# Added 10/25
{ config, pkgs, ... }:
{
services.flatpak.packages = [
# { appId = "com.brave.Browser"; origin = "flathub"; }
# "com.obsproject.Studio"
# "im.riot.Riot"
"net.nokyan.Resources" # System Resource Monitor
];
}