mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2026-02-06 11:15:47 -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 = [
|
imports = [
|
||||||
|
./nixpkgs-fmt.nix
|
||||||
./vscode.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