146 lines
3.2 KiB
Nix
146 lines
3.2 KiB
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
# Allow unfree packages
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
# $ nix search wget
|
|
environment.systemPackages = with pkgs; [
|
|
vim wget git ncdu btop
|
|
gcc cmake valgrind clang-tools
|
|
texliveFull
|
|
|
|
vscodium
|
|
gnome.nautilus
|
|
libsForQt5.kalgebra
|
|
];
|
|
|
|
services.flatpak.enable = true;
|
|
xdg.portal = {
|
|
enable = true;
|
|
config.common.default = [ "gtk" ];
|
|
};
|
|
services.flatpak.remotes = lib.mkOptionDefault [{
|
|
name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
|
}];
|
|
services.flatpak.update.auto = {
|
|
enable = true;
|
|
onCalendar = "weekly";
|
|
};
|
|
|
|
services.flatpak.packages = [
|
|
"org.mozilla.firefox"
|
|
"md.obsidian.Obsidian"
|
|
"org.mozilla.Thunderbird"
|
|
"com.discordapp.Discord"
|
|
"com.github.IsmaelMartinez.teams_for_linux"
|
|
"org.signal.Signal"
|
|
"org.telegram.desktop"
|
|
"com.github.tchx84.Flatseal"
|
|
"com.yubico.yubioath"
|
|
"org.filezillaproject.Filezilla"
|
|
"com.nextcloud.desktopclient.nextcloud"
|
|
"org.gnome.moserial"
|
|
"org.raspberrypi.rpi-imager"
|
|
"org.sdrangel.SDRangel"
|
|
"com.makemkv.MakeMKV"
|
|
"fr.handbrake.ghb"
|
|
"com.valvesoftware.Steam"
|
|
"com.mojang.Minecraft"
|
|
"org.gimp.GIMP"
|
|
"org.inkscape.Inkscape"
|
|
"org.videolan.VLC"
|
|
"org.gnome.Rhythmbox3"
|
|
"org.audacityteam.Audacity"
|
|
"com.prusa3d.PrusaSlicer"
|
|
"org.freecadweb.FreeCAD"
|
|
"org.kicad.KiCad"
|
|
];
|
|
services.flatpak.overrides = {
|
|
global = {
|
|
# Force Wayland by default
|
|
Context.sockets = [
|
|
"wayland" "!x11" "!fallback-x11"
|
|
];
|
|
Context.filesystems = [
|
|
"!host"
|
|
"!home"
|
|
];
|
|
Environment = {
|
|
XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons"; # Fix un-themed cursor in some Wayland apps
|
|
GTK_THEME = "Adwaita:dark"; # Force correct theme for some GTK apps
|
|
};
|
|
};
|
|
|
|
"md.obsidian.Obsidian".Context = {
|
|
filesystems = [
|
|
"~/.ssh:ro"
|
|
"xdg-config/git:ro"
|
|
"~/git/kladjes:rw"
|
|
"!/run/media" "!/media" "!/mnt"
|
|
];
|
|
};
|
|
|
|
"org.filezillaproject.Filezilla".Context = {
|
|
filesystems = [
|
|
"xdg-documents:rw"
|
|
"xdg-downloads:rw"
|
|
];
|
|
};
|
|
|
|
"com.nextcloud.desktopclient.nextcloud".Context = {
|
|
filesystems = [
|
|
"~/datatjes:rw"
|
|
];
|
|
};
|
|
|
|
"org.gimp.GIMP".Context = {
|
|
filesystems = [
|
|
"xdg-documents:rw"
|
|
"xdg-downloads:rw"
|
|
];
|
|
};
|
|
|
|
"org.inkscape.Inkscape".Context = {
|
|
filesystems = [
|
|
"xdg-documents:rw"
|
|
"xdg-downloads:rw"
|
|
];
|
|
};
|
|
|
|
"org.videolan.VLC".Context = {
|
|
filesystems = [
|
|
"xdg-videos"
|
|
];
|
|
};
|
|
|
|
"org.audacityteam.Audacity".Context = {
|
|
filesystems = [
|
|
"xdg-documents:rw"
|
|
"xdg-downloads:rw"
|
|
];
|
|
};
|
|
|
|
"com.prusa3d.PrusaSlicer".Context = {
|
|
filesystems = [
|
|
"xdg-documents:rw"
|
|
"xdg-downloads:rw"
|
|
];
|
|
};
|
|
|
|
"org.freecadweb.FreeCAD".Context = {
|
|
filesystems = [
|
|
"xdg-documents:rw"
|
|
"xdg-downloads:rw"
|
|
];
|
|
};
|
|
|
|
"org.kicad.KiCad".Context = {
|
|
filesystems = [
|
|
"xdg-documents:rw"
|
|
"xdg-downloads:rw"
|
|
];
|
|
};
|
|
};
|
|
}
|