|
247 | 247 | # Or disable the firewall altogether. |
248 | 248 | # networking.firewall.enable = false; |
249 | 249 |
|
250 | | - # This value determines the NixOS release from which the default |
251 | | - # settings for stateful data, like file locations and database versions |
252 | | - # on your system were taken. It‘s perfectly fine and recommended to leave |
253 | | - # this value at the release version of the first install of this system. |
254 | | - # Before changing this value read the documentation for this option |
255 | | - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
256 | | - #system.stateVersion = "23.11"; |
257 | | - |
258 | | - system.stateVersion = "24.11"; |
259 | | - |
260 | | - virtualisation.containers = { |
261 | | - ociSeccompBpfHook.enable = true; |
262 | | - }; |
263 | | - |
264 | 250 | # # https://nixos.wiki/wiki/Podman |
265 | 251 | # virtualisation.podman = { |
266 | 252 | # enable = true; |
|
282 | 268 | programs.virt-manager.enable = true; |
283 | 269 | virtualisation.spiceUSBRedirection.enable = true; |
284 | 270 |
|
| 271 | + virtualisation.containers = { |
| 272 | + ociSeccompBpfHook.enable = true; |
| 273 | + }; |
| 274 | + |
285 | 275 | # guest |
286 | 276 | # services.qemuGuest.enable = true; |
287 | 277 | # services.spice-vdagentd.enable = true; |
288 | 278 |
|
289 | | - nixpkgs.config.allowUnfree = true; |
290 | | - |
291 | 279 | # https://wiki.nixos.org/wiki/Laptop |
| 280 | + |
| 281 | + # This value determines the NixOS release from which the default |
| 282 | + # settings for stateful data, like file locations and database versions |
| 283 | + # on your system were taken. It‘s perfectly fine and recommended to leave |
| 284 | + # this value at the release version of the first install of this system. |
| 285 | + # Before changing this value read the documentation for this option |
| 286 | + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
| 287 | + #system.stateVersion = "23.11"; |
| 288 | + |
| 289 | + system.stateVersion = "24.11"; |
| 290 | + |
| 291 | + nixpkgs.config = { |
| 292 | + allowUnfree = true; |
| 293 | + allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ |
| 294 | + "nvidia-x11" |
| 295 | + "nvidia-settings" |
| 296 | + "nvidia-persistenced" |
| 297 | + ]; |
| 298 | + }; |
292 | 299 | } |
0 commit comments