Commit Graph

1505 Commits

Author SHA1 Message Date
Silvan Mosberger
c8dec6df38
Merge pull request #322801 from eclairevoyant/discourage-mkpackageoptionmd
lib: deprecate mkPackageOptionMD
2024-06-27 20:15:08 +02:00
Masum Reza
891c75c86e
Merge pull request #322591 from JohnRTitor/hyprland-module
nixos/hyprland: set systemd environment PATH only for versions < 0.41.2
2024-06-27 16:34:04 +05:30
éclairevoyant
aeee4fc133
treewide: replace mkPackageOptionMD with mkPackageOption 2024-06-26 23:05:42 -04:00
Someone
cb69dc5b8d
Merge pull request #256230 from SomeoneSerge/feat/gpu-tests-py
GPU access in the sandbox
2024-06-26 19:16:53 +00:00
John Titor
ff0738b736
nixos/hyprland: set systemd environment PATH for versions < 0.41.2
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (https://github.com/hyprwm/Hyprland/pull/6640)
We soft deprecate this option here for versions >= 0.41.2.
2024-06-26 23:04:27 +05:30
Someone Serge
79a7186f1c cudaPackages: updated convention for gpu/runtime checks
Runtime tests (derivations asking for a relaxed sandbox) are now
expected at p.gpuCheck, p.gpuChecks.<name>, or at
p.tests.<name>.gpuCheck.
2024-06-26 16:00:29 +00:00
Someone Serge
ebeb6b9d1d nix-required-mounts: nixfmt 2024-06-26 00:35:45 +00:00
Someone Serge
927b15ed6d nixos/nix-required-mounts: allow passing extra arguments to the hook 2024-06-26 00:35:44 +00:00
Someone Serge
dd70727622 nixos/nix-required-mounts: mount the runtime closures 2024-06-26 00:35:44 +00:00
Someone Serge
3cf5bcfe49 nix-required-mounts: restore the followSymlinks option
This way pkgs.nix-required-mounts is "correct" even before
we override it in the NixOS module
2024-06-26 00:35:44 +00:00
Someone Serge
5560f6a514 nix-required-mounts: guest and host paths may differ 2024-06-26 00:35:43 +00:00
Someone Serge
7418e4fefd programs.nix-required-mounts: presets.cuda -> nvidia-gpu
This hopefully clarifies that the preset configures the hook to expose
"nvidia devices", which includse both the userspace driver and the
device nodes.

The derivations  still declare requiredSystemFeatures = [ "cuda" ] to
explicitly indicate they need to use the CUDA functionality and expect a
libcuda.so and a CUDA-capable device. Ideally, we'd also include the
specific CUDA architectures (sm_86, etc) in feature names.

Derivations that use a co-processor but do not care about the vendor or
even the particular interface may ask for the more generic "opengl",
"vulkan", or "gpu" features. It is then responsibility of the host
declaring the support for this feature to ensure the drivers and
hardware are appropriately set up.
2024-06-26 00:35:43 +00:00
Someone Serge
50d4382114 programs.nix-required-mounts: inherit defaults from the package 2024-06-26 00:35:43 +00:00
Someone Serge
b422dafc89 nix-required-mounts: init 2024-06-26 00:35:42 +00:00
Sandro
33f83c6252
Merge pull request #316977 from eclairevoyant/fix-mkEnableOption
treewide: fix mkEnableOption usage
2024-06-25 22:42:16 +02:00
Masum Reza
be54c7d931
Merge pull request #320737 from Reputable2772/path-priority
nixos/hyprland: set path order for systemd user services
2024-06-23 19:49:48 +05:30
Aleksana
34a82372fe
Merge pull request #314728 from SamLukeYes/xonsh
xonsh: 0.15.1 -> 0.17.0
2024-06-22 02:32:07 +08:00
K900
20b7b4f619
Merge pull request #320228 from K900/opengl-cleanups
treewide: big opengl cleanups
2024-06-20 12:37:59 +03:00
SamLukeYes
afc31073a3
xonsh: 0.15.1 -> 0.17.0
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>

Upstream changes: https://github.com/xonsh/xonsh/compare/0.15.1...0.17.0
2024-06-18 22:49:13 +08:00
Reputable2722
dc423d5c69
nixos/hyprland: set path order for systemd user services
Set PATH order correctly for systemd user services (see NixOS/nixpkgs#320734

Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
2024-06-18 15:15:51 +05:30
superherointj
da118800a9
Merge pull request #308341 from Stunkymonkey/nixos-kubeswitch-use-runCommand
nixos/kubeswitch: use 'runCommand' instead of 'phases'
2024-06-17 19:59:36 -03:00
K900
98cef4c273 treewide: big opengl cleanup
- rename hardware.opengl to hardware.graphics
- remove hardware.opengl.driSupport, which does nothing
- remove hardware.opengl.setLdLibraryPath, which should never be done
- rename hardware.opengl.driSupport32Bit to hardware.graphics.enable32Bit
- lost of small docs / formatting cleanups
2024-06-16 14:11:33 +03:00
Pol Dellaiera
22279cafcc
Merge pull request #317138 from l0b0/ydotool-group
nixos/ydotool: Make group configurable
2024-06-16 10:18:26 +02:00
Atemu
421fb34cad
Merge pull request #318759 from leon-erd/master
nixos/hyprland: enable xdg.portal by default + use lib.mkDefault for enableWlrPortal
2024-06-14 12:41:53 +02:00
éclairevoyant
7d8742da87
treewide: fix mkEnableOption usage 2024-06-14 02:41:42 -04:00
Victor Engmark
408406c2ff
nixos/ydotool: Make group configurable
Allows users to refer to `config.programs.ydotool.group` rather than
hard-coding "ydotool".

Allows users to override the group name for whatever reason.

This closes #317013.

Co-authored-by: Cosima Neidahl <opna2608@protonmail.com>
2024-06-14 10:07:28 +12:00
Victor Engmark
7203cf8e3d
nixos/ydotool: De-duplicate mentions of runtime directory 2024-06-14 10:05:17 +12:00
Leon
5b216845b6 nixos/hyprland: use lib.mkDefault for enableWlrPortal 2024-06-13 22:56:09 +02:00
Leon
9585e5d3aa nixos/hyprland: enable xdg.portal by default 2024-06-13 21:30:11 +02:00
Tom Fitzhenry
edd19efe4e nixos/shadow: clean up module 2024-06-11 19:28:32 +10:00
Tom Fitzhenry
725777250b nixos/shadow: introduce security.shadow.enable
Allow users to disable the shadow authentication suite.

My primary motivation is to reduce the attack surface via setuid
binaries, which shadow understandably introduces many. I realised,
however, that I don't use any of these.

The test demonstrates login working without needing the shadow suite.
2024-06-11 19:28:32 +10:00
Sandro
1acd99478c
Merge pull request #308539 from SuperSandro2000/gdk-pixbuf-xserver
nixos/gdk-pixbuf: move out of xserver
2024-06-09 02:08:30 +02:00
Sandro Jäckel
b939c54015
nixos/gdk-pixbuf: move out of xserver 2024-06-08 21:26:28 +02:00
Sandro Jäckel
1c60f0a9a0 nixos/bash-completion: move options to programs.bash.completion, add package option, drop with lib
This allows to easily test bash-completion updates without triggering a mass rebuild locally.
2024-06-06 02:51:06 +02:00
Jörg Thalheim
7d98bbfcd5
Merge pull request #315827 from JohnRTitor/hyprland-module
nixos/{hyprland, wayland-common}: disable wlr portal for hyprland, enable xdg autostart for all wayland compositors
2024-06-05 09:57:53 +02:00
John Titor
de77718887
nixos/wayland-session: cleanup
xwayland, wlr-portal ->
 enable-xwayland, enable-wlr-portal
2024-06-03 09:28:00 +05:30
John Titor
7b2a2824b3
nixos/wayland-session: force running xdg autostart for WM-only sessions 2024-06-01 22:30:19 +05:30
Francesco Gazzetta
3da336fc79 nixos/ladybird: init 2024-05-31 12:11:43 +00:00
taku0
49032a79e4
Merge pull request #311669 from Nydragon/add-thunderbird-policies 2024-05-31 18:20:59 +09:00
John Titor
98f9f9951a
nixos/hyprland: add fufexan as maintainer
Per https://github.com/NixOS/nixpkgs/pull/315827#issuecomment-2139073465
2024-05-30 14:25:36 +05:30
John Titor
0b0b7cefcc
nixos/hyprland: disable wlr-portal for Hyprland
This commit:
- Adds wlr-portal override of wayland-session module (enabled by default)
- Disable it for hyprland module
2024-05-30 13:30:41 +05:30
OPNA2608
07b369b5aa nixos/coolercontrol: Use user-preferred nvidia package 2024-05-29 15:21:41 +02:00
Lin Jian
ad57eef4ef
Merge pull request #315149 from Cryolitia/ghostscript
nixos/steam: fix evaluation failure when `fonts.packages` contains path
2024-05-29 10:06:23 +08:00
Jörg Thalheim
7475325763
Merge pull request #315040 from JohnRTitor/hyprlock-module
nixos/hyprlock, nixos/hypridle: init module
2024-05-28 09:03:48 +02:00
北雁 Cryolitia
1652a914fd
nixos/steam: fix evaluation failure when fonts.packages contains path 2024-05-28 12:05:43 +08:00
Tom Fitzhenry
25193bdc60 nixos/less: introduce programs.less.package
Allow users to set the package, e.g. to override withSecure to true.
2024-05-28 08:34:45 +10:00
John Titor
353aa12446
nixos/hypridle: init 2024-05-27 17:41:36 +05:30
John Titor
07a0b79ed1
nixos/hyprlock: init module 2024-05-27 17:32:22 +05:30
Jörg Thalheim
f33f71f6f6
Merge pull request #240989 from m-bdf/hyprland-wayland-session
nixos/{sway,river,hyprland}: improve common wayland-session module
2024-05-26 22:06:53 +02:00
北雁 Cryolitia
164f66169a
nixos/steam: add option fontPackages
fix #178121
2024-05-26 22:55:38 +08:00