forked from aylac.top/nixcfg
this repo has no description

flatpaks!

Changed files
+130 -47
homes
hosts
morgana
modules
home
programs
nixos
desktop
gnome
services
+17
flake.lock
···
"type": "github"
}
},
+
"nix-flatpak": {
+
"locked": {
+
"lastModified": 1739444422,
+
"narHash": "sha256-iAVVHi7X3kWORftY+LVbRiStRnQEob2TULWyjMS6dWg=",
+
"owner": "gmodena",
+
"repo": "nix-flatpak",
+
"rev": "5e54c3ca05a7c7d968ae1ddeabe01d2a9bc1e177",
+
"type": "github"
+
},
+
"original": {
+
"owner": "gmodena",
+
"ref": "latest",
+
"repo": "nix-flatpak",
+
"type": "github"
+
}
+
},
"nixpkgs": {
"locked": {
"lastModified": 1748162331,
···
"git-hooks-nix": "git-hooks-nix_2",
"home-manager": "home-manager_3",
"lanzaboote": "lanzaboote",
+
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs_3",
"nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur",
+2
flake.nix
···
flake-parts.url = "github:hercules-ci/flake-parts";
+
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
+
fontix = {
url = "github:alyraffauf/fontix";
inputs.nixpkgs.follows = "nixpkgs";
+49 -30
homes/ayla/default.nix
···
}: {
imports = [
self.homeModules.default
+
self.inputs.nix-flatpak.homeManagerModules.nix-flatpak
self.inputs.fontix.homeModules.default
];
···
# applications
aseprite
-
bitwarden
-
blender
-
calibre
-
freac
-
gimp3
-
inkscape
-
jellyfin-media-player
-
kdePackages.kdenlive
-
krita
-
lmms
-
nicotine-plus
-
picard
-
qbittorrent
rclone
rclone-browser
-
tenacity
yt-dlp
-
obsidian
-
-
# gaming
-
melonDS
-
mgba
-
mindustry
-
openttd
-
prismlauncher
];
username = "ayla";
···
};
programs = {
-
anki.enable = true;
chromium.enable = true;
fastfetch.enable = true;
firefox = {
···
helix.enable = true;
micro.enable = true;
mpv.enable = true;
-
obs-studio.enable = true;
ssh.enable = true;
zed-editor.enable = true;
zen-browser.enable = false;
···
steam-run
lutris
-
keepassxc
-
fractal
-
flare-signal
-
audacious
-
audacious-plugins
-
zip
xz
unzip
p7zip
];
+
};
+
+
services.flatpak = {
+
packages = [
+
# creative
+
"io.lmms.LMMS"
+
"org.blender.Blender"
+
"org.gimp.GIMP"
+
"org.inkscape.Inkscape"
+
"org.kde.kdenlive"
+
"org.kde.krita"
+
+
# gaming
+
"com.github.Anuken.Mindustry"
+
"io.mgba.mGBA"
+
"net.kuribo64.melonDS"
+
"org.openttd.OpenTTD"
+
"org.prismlauncher.PrismLauncher"
+
+
# internet
+
"org.nicotine_plus.Nicotine"
+
"org.qbittorrent.qBittorrent"
+
+
# media
+
"com.github.iwalton3.jellyfin-media-player"
+
"org.atheme.audacious"
+
"org.freac.freac"
+
"org.musicbrainz.Picard"
+
"org.tenacityaudio.Tenacity"
+
+
# productivity
+
"com.calibre_ebook.calibre"
+
"md.obsidian.Obsidian"
+
"net.ankiweb.Anki"
+
+
# social
+
"de.schmidhuberj.Flare"
+
"org.gnome.Fractal"
+
+
# utilities
+
"com.bitwarden.desktop"
+
"com.github.tchx84.Flatseal"
+
"org.keepassxc.KeePassXC"
+
];
+
update.auto = {
+
enable = true;
+
onCalendar = "weekly";
+
};
};
})
];
+1
hosts/morgana/default.nix
···
enable = true;
longCaches = false;
};
+
flatpak.enable = true;
tailscale = {
enable = true;
enableCaddy = true;
-1
modules/home/programs/default.nix
···
./git
./micro
./mpv
-
./obs-studio
./ssh
./zed-editor
./zen-browser
-13
modules/home/programs/obs-studio/default.nix
···
-
{
-
lib,
-
config,
-
...
-
}: {
-
options.myHome.programs.obs-studio.enable = lib.mkEnableOption "obs studio";
-
-
config = lib.mkIf config.myHome.programs.obs-studio.enable {
-
programs.obs-studio = {
-
enable = true;
-
};
-
};
-
}
+6 -3
modules/nixos/desktop/gnome/default.nix
···
};
environment.gnome.excludePackages = with pkgs; [
+
decibels
+
epiphany
geary # email reader
gedit # text editor
gnome-characters
+
gnome-console # in case im using something else
gnome-music
+
gnome-software # i like the idea but i really hate how much resources it uses
+
gnome-tour
gnome-user-docs
-
gnome-tour
-
gnome-console
-
decibels
+
simple-scan
];
i18n.inputMethod.type = "ibus";
+1
modules/nixos/services/default.nix
···
./caddy
./dnsmasq
./fail2ban
+
./flatpak
./forgejo
./gdm
./glance
+54
modules/nixos/services/flatpak/default.nix
···
+
{
+
config,
+
lib,
+
pkgs,
+
...
+
}: {
+
options.myNixOS.services.flatpak.enable = lib.mkEnableOption "flatpak package manager";
+
config = lib.mkIf config.myNixOS.services.flatpak.enable {
+
fileSystems = let
+
mkRoSymBind = path: {
+
device = path;
+
fsType = "fuse.bindfs";
+
options = ["ro" "resolve-symlinks" "x-gvfs-hide"];
+
};
+
+
aggregatedIcons = pkgs.buildEnv {
+
name = "system-icons";
+
paths = with pkgs; [
+
adwaita-icon-theme
+
morewaita-icon-theme
+
gnome-themes-extra
+
];
+
+
pathsToLink = ["/share/icons"];
+
};
+
+
aggregatedFonts = pkgs.buildEnv {
+
name = "system-fonts";
+
paths = config.fonts.packages;
+
pathsToLink = ["/share/fonts"];
+
};
+
in {
+
"/usr/share/icons" = mkRoSymBind "${aggregatedIcons}/share/icons";
+
"/usr/local/share/fonts" = mkRoSymBind "${aggregatedFonts}/share/fonts";
+
};
+
+
fonts = {
+
fontDir.enable = true;
+
packages = with pkgs; [
+
adwaita-fonts
+
nerd-fonts.jetbrains-mono
+
noto-fonts
+
noto-fonts-cjk-sans
+
noto-fonts-emoji
+
source-code-pro
+
source-sans-pro
+
];
+
};
+
+
services.flatpak.enable = true;
+
system.fsPackages = [pkgs.bindfs];
+
xdg.portal.enable = true;
+
};
+
}