add software and flatpak overrides
This commit is contained in:
parent
ed1b61b876
commit
576662b7e1
111
software.nix
111
software.nix
@ -1,8 +1,4 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
{
|
|
||||||
# Install firefox.
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
@ -10,10 +6,12 @@
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim wget git
|
vim wget git ncdu btop
|
||||||
|
gcc cmake valgrind clang-tools
|
||||||
vscodium
|
vscodium
|
||||||
gnome.nautilus
|
gnome.nautilus
|
||||||
libsForQt5.kalgebra
|
libsForQt5.kalgebra
|
||||||
|
texliveFull
|
||||||
];
|
];
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
@ -24,8 +22,13 @@
|
|||||||
services.flatpak.remotes = lib.mkOptionDefault [{
|
services.flatpak.remotes = lib.mkOptionDefault [{
|
||||||
name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||||
}];
|
}];
|
||||||
|
services.flatpak.update.auto = {
|
||||||
|
enable = true;
|
||||||
|
onCalendar = "weekly";
|
||||||
|
};
|
||||||
|
|
||||||
services.flatpak.packages = [
|
services.flatpak.packages = [
|
||||||
|
"org.mozilla.firefox"
|
||||||
"md.obsidian.Obsidian"
|
"md.obsidian.Obsidian"
|
||||||
"org.mozilla.Thunderbird"
|
"org.mozilla.Thunderbird"
|
||||||
"com.discordapp.Discord"
|
"com.discordapp.Discord"
|
||||||
@ -35,6 +38,7 @@
|
|||||||
"com.github.tchx84.Flatseal"
|
"com.github.tchx84.Flatseal"
|
||||||
"com.yubico.yubioath"
|
"com.yubico.yubioath"
|
||||||
"org.filezillaproject.Filezilla"
|
"org.filezillaproject.Filezilla"
|
||||||
|
"com.nextcloud.desktopclient.nextcloud"
|
||||||
"org.gnome.moserial"
|
"org.gnome.moserial"
|
||||||
"org.raspberrypi.rpi-imager"
|
"org.raspberrypi.rpi-imager"
|
||||||
"org.sdrangel.SDRangel"
|
"org.sdrangel.SDRangel"
|
||||||
@ -42,10 +46,105 @@
|
|||||||
"fr.handbrake.ghb"
|
"fr.handbrake.ghb"
|
||||||
"com.valvesoftware.Steam"
|
"com.valvesoftware.Steam"
|
||||||
"com.mojang.Minecraft"
|
"com.mojang.Minecraft"
|
||||||
|
"org.gimp.GIMP"
|
||||||
"org.inkscape.Inkscape"
|
"org.inkscape.Inkscape"
|
||||||
|
"org.videolan.VLC"
|
||||||
"org.gnome.Rhythmbox3"
|
"org.gnome.Rhythmbox3"
|
||||||
|
"org.audacityteam.Audacity"
|
||||||
"com.prusa3d.PrusaSlicer"
|
"com.prusa3d.PrusaSlicer"
|
||||||
"org.freecadweb.FreeCAD"
|
"org.freecadweb.FreeCAD"
|
||||||
"org.kicad.KiCad"
|
"org.kicad.KiCad"
|
||||||
];
|
];
|
||||||
|
services.flatpak.overrides = {
|
||||||
|
global = {
|
||||||
|
# Force Wayland by default
|
||||||
|
Context.sockets = [
|
||||||
|
"wayland" "!x11" "!fallback-x11"
|
||||||
|
];
|
||||||
|
filesystems = [
|
||||||
|
"!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 = [
|
||||||
|
"!host"
|
||||||
|
"xdg-documents:rw"
|
||||||
|
"xdg-downloads:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"com.nextcloud.desktopclient.nextcloud".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"!host"
|
||||||
|
"~/datatjes:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org.gimp.GIMP".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"!host"
|
||||||
|
"xdg-documents:rw"
|
||||||
|
"xdg-downloads:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org.inkscape.Inkscape".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"!host"
|
||||||
|
"xdg-documents:rw"
|
||||||
|
"xdg-downloads:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org.videolan.VLC".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"!host"
|
||||||
|
"xdg-videos"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org.audacityteam.Audacity".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"!host"
|
||||||
|
"xdg-documents:rw"
|
||||||
|
"xdg-downloads:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"com.prusa3d.PrusaSlicer".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"xdg-documents:rw"
|
||||||
|
"xdg-downloads:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org.freecadweb.FreeCAD".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"!host"
|
||||||
|
"xdg-documents:rw"
|
||||||
|
"xdg-downloads:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org.kicad.KiCad".Context = {
|
||||||
|
filesystems = [
|
||||||
|
"xdg-documents:rw"
|
||||||
|
"xdg-downloads:rw"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user