about summary refs log tree commit diff
path: root/nixosConfigurations/melian
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nixosConfigurations/melian/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/nixosConfigurations/melian/default.nix b/nixosConfigurations/melian/default.nix
index f4178e2..64dd152 100644
--- a/nixosConfigurations/melian/default.nix
+++ b/nixosConfigurations/melian/default.nix
@@ -1,4 +1,9 @@
-{pkgs, ...}: {
+{
+  lib,
+  pkgs,
+  ...
+}:
+with lib; {
   nixfiles.modules = {
     wireguard.client.enable = true;
 
@@ -18,7 +23,7 @@
   };
 
   powerManagement = let
-    modprobe = "${pkgs.kmod}/bin/modprobe";
+    modprobe = getExe' pkgs.kmod "modprobe";
   in {
     enable = true;
 

Consider giving Nix/NixOS a try! <3