Trying A Package This Time

This commit is contained in:
Annika Merris 2024-05-18 21:13:41 -04:00
parent b078cbe245
commit 4bef221ac3
2 changed files with 19 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./nixpkgs-fmt.nix
./vscode.nix
];
}

View file

@ -0,0 +1,18 @@
{ coinfig, pkgs, lib, ...}:
{
options = {
nixpkgs-fmt = {
enable = lib.mkEnableOption {
description = "Enable nixpkgs-fmt"
default = false;
};
};
};
config = lib.mkIf (config.nixpkgs-fmt.enable) {
home-manager.users.${config.user} = {
home.packages = [
pkgs.nixpkgs-fmt
];
};
};
}