aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2026-03-21 18:43:01 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2026-03-21 18:43:01 +0100
commite08f800b6dc1bc6a6a6127c12b7df72bd219d50b (patch)
treed8946586bdda098983322316d02421c57ffb885d /modules/nixos
parent1fd92fcaf3aadea1e9509f859340f57100218c41 (diff)
downloaddotfiles-e08f800b6dc1bc6a6a6127c12b7df72bd219d50b.tar.gz
dotfiles-e08f800b6dc1bc6a6a6127c12b7df72bd219d50b.zip
use nix
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix
index 155601a..f005dbd 100644
--- a/modules/nixos/default.nix
+++ b/modules/nixos/default.nix
@@ -1,9 +1,7 @@
-{ pkgs, ... }:
+{ pkgs, lib, ... }:
{
- imports = [
- ./hardware-configuration.nix
- ];
+ imports = [ ] ++ lib.optional (builtins.pathExists ./hardware-configuration.nix) ./hardware-configuration.nix;
# Enable experimental Nix features
nix.settings.experimental-features = "nix-command flakes";