Compare commits

...

5 commits

8 changed files with 44 additions and 12 deletions

View file

@ -273,6 +273,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"
}
},
"nix-minecraft": { "nix-minecraft": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
@ -408,6 +423,7 @@
"crowdsec": "crowdsec", "crowdsec": "crowdsec",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"impermanence": "impermanence", "impermanence": "impermanence",
"nix-flatpak": "nix-flatpak",
"nix-minecraft": "nix-minecraft", "nix-minecraft": "nix-minecraft",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_3",
"nixpkgs-unstable": "nixpkgs-unstable" "nixpkgs-unstable": "nixpkgs-unstable"

View file

@ -28,6 +28,7 @@
# Add any other flake you might need. # Add any other flake you might need.
nix-minecraft.url = "github:Infinidoge/nix-minecraft"; nix-minecraft.url = "github:Infinidoge/nix-minecraft";
nix-flatpak.url = "github:gmodena/nix-flatpak";
}; };
outputs = { self, nixpkgs, home-manager, ... }@inputs: outputs = { self, nixpkgs, home-manager, ... }@inputs:

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
./mangohud.nix ./mangohud.nix
./runescape.nix
]; ];
home = { home = {
@ -10,12 +11,6 @@
gamemode gamemode
protonup-ng protonup-ng
prismlauncher prismlauncher
runelite
]; ];
persistence."/persist/home/sajenim" = {
directories = [
".runelite"
];
};
}; };
} }

View file

@ -0,0 +1,20 @@
{ inputs, lib, ... }:
{
imports = [
inputs.nix-flatpak.homeManagerModules.nix-flatpak
];
services.flatpak.remotes = lib.mkOptionDefault [
{ name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; }
{ name = "JagexLauncher"; location = "https://jagexlauncher.flatpak.mcswain.dev/JagexLauncher.flatpakrepo"; }
];
services.flatpak.packages = [
{ appId = "org.freedesktop.Platform.Compat.i386/x86_64/23.08"; origin = "flathub"; }
{ appId = "org.freedesktop.Platform.GL32.default/x86_64/23.08"; origin = "flathub"; }
{ appId = "com.jagex.Launcher"; origin = "JagexLauncher"; }
{ appId = "com.jagex.Launcher.ThirdParty.RuneLite"; origin = "JagexLauncher"; }
];
}

View file

@ -17,11 +17,6 @@
gimp gimp
inkscape inkscape
krita krita
# Games
gamemode
protonup-ng
prismlauncher
runelite
# Hardware # Hardware
openrgb openrgb
libratbag libratbag

View file

@ -32,6 +32,7 @@
".ssh" ".ssh"
".local/bin" ".local/bin"
".local/share/flatpak"
".local/share/nix" ".local/share/nix"
".local/share/direnv" ".local/share/direnv"
]; ];

View file

@ -12,6 +12,7 @@
"/var/log" "/var/log"
"/var/lib/bluetooth" "/var/lib/bluetooth"
"/var/lib/docker" "/var/lib/docker"
"/var/lib/flatpak"
"/var/lib/nixos" "/var/lib/nixos"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"

View file

@ -8,5 +8,8 @@
extraPortals = [ pkgs.xdg-desktop-portal-wlr ]; extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
}; };
services.flatpak.enable = true; services.flatpak = {
enable = true;
onCalender = "weekly";
};
} }