upload af nix configs

This commit is contained in:
2026-07-12 14:39:07 +02:00
commit f4382c7a97
8 changed files with 189 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
{ pkgs, ... }: {
imports = [
./native.nix
./flatpak.nix
];
}
+33
View File
@@ -0,0 +1,33 @@
{ pkgs, ... }: {
services.flatpak.enable = true;
# Auto-install flatpak-apps ved rebuild
system.activationScripts.flatpak = {
text = ''
FLATPAK="${pkgs.flatpak}/bin/flatpak"
# Tilføj flathub remote
$FLATPAK remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# Installer apps (--or-update opdaterer hvis allerede installeret)
apps="
io.github.Faugus.faugus-launcher
com.adamcake.Bolt
com.notesnook.Notesnook
com.saivert.pwvucontrol
com.github.tchx84.Flatseal
org.kde.kdenlive
it.mijorus.gearlever
com.github.Matoking.protontricks
com.vysp3r.ProtonPlus
org.musicbrainz.Picard
io.github.radiolamp.mangojuice
"
for app in $apps; do
$FLATPAK install --noninteractive --or-update flathub "$app" 2>/dev/null || true
done
'';
description = "Install flatpak apps";
};
}
+41
View File
@@ -0,0 +1,41 @@
{ pkgs, ... }: {
# Native system packages — fra din Ansible DNF-liste
environment.systemPackages = with pkgs; [
# Terminal / shell
kitty
fish
fastfetch
lsd
glow
btop
tldr
neovim
# Git
git
gh
# Gaming
steam
gamemode
gamescope
# Utility
stow
tailscale
];
# Fish som default shell for glennigen
programs.fish.enable = true;
# Steam
programs.steam.enable = true;
# Tailscale (service, ikke package)
services.tailscale.enable = true;
# 1Password — PolKit integration (system-level)
security.polkit.enable = true;
programs._1password.enable = true;
programs._1password-gui.enable = true;
}