refactor(homebrew): move homebrew config to module
This commit is contained in:
parent
e3ad7a2528
commit
b0c6785f64
2 changed files with 11 additions and 7 deletions
|
@ -1,12 +1,5 @@
|
||||||
{ config, ... }:
|
|
||||||
let
|
|
||||||
inherit (config.manifest) admin;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
flake.modules.darwin.graphical.homebrew = {
|
flake.modules.darwin.graphical.homebrew = {
|
||||||
enable = true;
|
|
||||||
user = admin.username;
|
|
||||||
onActivation.cleanup = "uninstall";
|
|
||||||
brews = [
|
brews = [
|
||||||
"mise"
|
"mise"
|
||||||
"docker"
|
"docker"
|
||||||
|
|
11
nix/modules/system/homebrew.nix
Normal file
11
nix/modules/system/homebrew.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
inherit (config.manifest) admin;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.modules.darwin.graphical.homebrew = {
|
||||||
|
enable = true;
|
||||||
|
user = admin.username;
|
||||||
|
onActivation.cleanup = "uninstall";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue