From d5db1b513e3a8239081482d17024e6b5ebd4c9ff Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 16 May 2023 21:22:51 -0400 Subject: [PATCH] Make srb2 a module This makes it easier to add and remove srb2 from machines by simply importing its module. --- configuration.nix | 1 + modules/srb2/default.nix | 7 +++++++ pkgs/srb2.nix => modules/srb2/package/default.nix | 0 3 files changed, 8 insertions(+) create mode 100644 modules/srb2/default.nix rename pkgs/srb2.nix => modules/srb2/package/default.nix (100%) diff --git a/configuration.nix b/configuration.nix index 0d89d5ac..4e69eacf 100644 --- a/configuration.nix +++ b/configuration.nix @@ -11,6 +11,7 @@ ./modules/dual-function-keys.nix ./modules/tlp.nix ./modules/osu + ./modules/srb2 ]; boot.loader.systemd-boot.enable = true; diff --git a/modules/srb2/default.nix b/modules/srb2/default.nix new file mode 100644 index 00000000..8a02169c --- /dev/null +++ b/modules/srb2/default.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + (pkgs.callPackage ./package {}) + ]; +} diff --git a/pkgs/srb2.nix b/modules/srb2/package/default.nix similarity index 100% rename from pkgs/srb2.nix rename to modules/srb2/package/default.nix