mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2026-02-04 07:39:00 -05:00
Trying A Package This Time
This commit is contained in:
parent
b078cbe245
commit
4bef221ac3
2 changed files with 19 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixpkgs-fmt.nix
|
||||
./vscode.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
18
modules/common/programming/nixpkgs-fmt.nix
Normal file
18
modules/common/programming/nixpkgs-fmt.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue