added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
22
nyx/homes/notashelf/packages/gui/3dprint.nix
Normal file
22
nyx/homes/notashelf/packages/gui/3dprint.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
osConfig,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
sys = modules.system;
|
||||
prg = sys.programs;
|
||||
|
||||
dev = modules.device;
|
||||
acceptedTypes = ["laptop" "desktop" "hybrid" "lite"];
|
||||
in {
|
||||
config = mkIf ((prg.gui.enable && sys.printing."3d".enable) && (builtins.elem dev.type acceptedTypes)) {
|
||||
home.packages = with pkgs; [
|
||||
freecad
|
||||
prusa-slicer
|
||||
];
|
||||
};
|
||||
}
|
7
nyx/homes/notashelf/packages/gui/default.nix
Normal file
7
nyx/homes/notashelf/packages/gui/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./shared.nix
|
||||
./wayland.nix
|
||||
./3dprint.nix
|
||||
];
|
||||
}
|
70
nyx/homes/notashelf/packages/gui/shared.nix
Normal file
70
nyx/homes/notashelf/packages/gui/shared.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
sys = modules.system;
|
||||
prg = sys.programs;
|
||||
|
||||
dev = modules.device;
|
||||
acceptedTypes = ["laptop" "desktop" "hybrid" "lite"];
|
||||
in {
|
||||
config = mkIf ((prg.gui.enable && sys.video.enable) && (builtins.elem dev.type acceptedTypes)) {
|
||||
home.packages = with pkgs; [
|
||||
# zoom-us # may we never return to online education
|
||||
nextcloud-client
|
||||
easyeffects
|
||||
librewolf
|
||||
cinnamon.nemo
|
||||
qbittorrent
|
||||
hexchat
|
||||
netflix
|
||||
bitwarden
|
||||
helvum
|
||||
(symlinkJoin {
|
||||
# wrap obsidian with pandoc for the pandoc plugin dependency
|
||||
name = "Obsidian";
|
||||
paths = with pkgs; [
|
||||
obsidian
|
||||
pandoc # pandoc plugin uses pandoc to render alternative text formats
|
||||
];
|
||||
})
|
||||
|
||||
# plasma packages
|
||||
plasma5Packages.dolphin
|
||||
plasma5Packages.dolphin-plugins
|
||||
plasma5Packages.kio
|
||||
plasma5Packages.kio-extras
|
||||
plasma5Packages.kimageformats
|
||||
plasma5Packages.kdegraphics-thumbnailers
|
||||
plasma5Packages.okular
|
||||
|
||||
# gnome packages
|
||||
gnome.gnome-tweaks
|
||||
gnome.gnome-calendar
|
||||
komikku
|
||||
|
||||
# override gnome-control-center to trick it into thinking we're running gnome
|
||||
# <https://github.com/NixOS/nixpkgs/issues/230493>
|
||||
# <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/736>
|
||||
# get overriden idiot
|
||||
/*
|
||||
(gnome.gnome-control-center.overrideAttrs
|
||||
(old: {
|
||||
# gnome-control-center does not start without XDG_CURRENT_DESKTOP=gnome
|
||||
preFixup =
|
||||
''
|
||||
gappsWrapperArgs+=(
|
||||
--set XDG_CURRENT_DESKTOP "gnome"
|
||||
);
|
||||
''
|
||||
+ old.preFixup;
|
||||
}))
|
||||
*/
|
||||
];
|
||||
};
|
||||
}
|
19
nyx/homes/notashelf/packages/gui/wayland.nix
Normal file
19
nyx/homes/notashelf/packages/gui/wayland.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
env = osConfig.modules.usrEnv;
|
||||
sys = osConfig.modules.system;
|
||||
prg = sys.programs;
|
||||
in {
|
||||
config = mkIf (prg.gui.enable && (sys.video.enable && env.isWayland)) {
|
||||
home.packages = with pkgs; [
|
||||
wlogout
|
||||
swappy
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue