Skip to content

Commit 28cc8ea

Browse files
fixed unfree
1 parent bf827ff commit 28cc8ea

File tree

5 files changed

+80
-354
lines changed

5 files changed

+80
-354
lines changed

laptops/t/configuration.nix

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -247,20 +247,6 @@
247247
# Or disable the firewall altogether.
248248
# networking.firewall.enable = false;
249249

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-
264250
# # https://nixos.wiki/wiki/Podman
265251
# virtualisation.podman = {
266252
# enable = true;
@@ -282,11 +268,32 @@
282268
programs.virt-manager.enable = true;
283269
virtualisation.spiceUSBRedirection.enable = true;
284270

271+
virtualisation.containers = {
272+
ociSeccompBpfHook.enable = true;
273+
};
274+
285275
# guest
286276
# services.qemuGuest.enable = true;
287277
# services.spice-vdagentd.enable = true;
288278

289-
nixpkgs.config.allowUnfree = true;
290-
291279
# 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+
};
292299
}

laptops/t/configuration.nix.before

Lines changed: 0 additions & 314 deletions
This file was deleted.

0 commit comments

Comments
 (0)