This commit is contained in:
Daniel Ziltener 2024-10-03 18:26:14 +02:00
parent 94b74abdd8
commit ffec00d89d
Signed by: zilti
GPG key ID: B38976E82C9DAE42
3 changed files with 41 additions and 18 deletions

View file

@ -45,6 +45,6 @@ install:
touch ~/.vw-session-key
touch ~/.config/hypr/monitors.conf
sudo nix-collect-garbage --delete-old
sudo env NIXPKGS_ALLOW_BROKEN=1 nixos-rebuild switch --flake .#ziltis-desktop --impure --show-trace
sudo env NIXPKGS_ALLOW_BROKEN=1 nixos-rebuild switch --recreate-lock-file --flake .#ziltis-desktop --impure --show-trace
# end

View file

@ -23,15 +23,16 @@
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
flatpaks.url = "github:GermanBread/declarative-flatpak/stable-v3";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&ref=refs/tags/v0.42.0";
# flatpaks.url = "github:GermanBread/declarative-flatpak/stable-v3";
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&ref=refs/tags/v0.43.0";
hyprsplit = {
url = "github:shezdy/hyprsplit";
inputs.hyprland.follows = "hyprland";
};
};
outputs = inputs@{ nixpkgs, home-manager, flatpaks, ... }: {
outputs = inputs@{ nixpkgs, home-manager, nix-flatpak, ... }: {
nixosConfigurations = {
"ziltis-desktop" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@ -45,7 +46,8 @@
home-manager.users.zilti = import ./home.nix;
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.sharedModules = [
flatpaks.homeManagerModules.default
# flatpaks.homeManagerModules.default
nix-flatpak.homeManagerModules.nix-flatpak
];
}
];

View file

@ -1,4 +1,4 @@
args@{ config, pkgs, split-monitor-workspaces, flatpaks, ... }:
args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
{
home.username = "zilti";
@ -217,20 +217,42 @@ args@{ config, pkgs, split-monitor-workspaces, flatpaks, ... }:
};
};
# services.flatpak = {
# enableModule = true;
# remotes = {
# "flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
# "flathub-beta" =
# "https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo";
# };
# packages = [
# "flathub:app/com.github.tchx84.Flatseal//stable"
# "flathub:app/com.usebottles.bottles//stable"
# "flathub:app/info.beyondallreason.bar//stable"
# "flathub:app/com.valvesoftware.Steam//stable"
# "flathub:app/net.lutris.Lutris//stable"
# "flathub:runtime/org.freedesktop.Platform.VulkanLayer.gamescope//stable"
# ];
# };
services.flatpak = {
enableModule = true;
remotes = {
"flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
"flathub-beta" =
"https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo";
update = {
onActivation = true;
auto = {
enable = true;
onCalendar = "weekly";
};
};
remotes = [
{ name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; }
{ name = "flathub-beta"; location = "https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo"; }
];
packages = [
"flathub:app/com.github.tchx84.Flatseal//stable"
"flathub:app/com.usebottles.bottles//stable"
"flathub:app/info.beyondallreason.bar//stable"
"flathub:app/com.valvesoftware.Steam//stable"
"flathub:app/net.lutris.Lutris//stable"
"flathub:runtime/org.freedesktop.Platform.VulkanLayer.gamescope//stable"
"com.github.tchx84.Flatseal"
"com.usebottles.bottles"
"infor.beyondallreason.bar"
"com.valvesoftware.Steam"
"net.lutris.Lutris"
"org.freedesktop.Platform.VulkanLayer.gamescope"
];
};
@ -265,7 +287,6 @@ args@{ config, pkgs, split-monitor-workspaces, flatpaks, ... }:
name = "VictorMono Nerd Font Mono";
size = 10;
};
theme = "Catppuccin-Frappe";
};
programs.bash = {