Autoupdate homebrew and add simple config
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
outputs = inputs@{ self, nix-darwin, nixpkgs, nix-homebrew }:
|
outputs = inputs@{ self, nix-darwin, nixpkgs, nix-homebrew }:
|
||||||
let
|
let
|
||||||
configuration = { pkgs, config, ... }: {
|
configuration = { pkgs, config, ... }: {
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# List packages installed in system profile. To search by name, run:
|
# List packages installed in system profile. To search by name, run:
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
pkgs.rectangle
|
pkgs.rectangle
|
||||||
pkgs.vscode
|
pkgs.vscode
|
||||||
];
|
];
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
casks = [
|
casks = [
|
||||||
@@ -75,6 +75,8 @@
|
|||||||
"WireGuard" = 1451685025;
|
"WireGuard" = 1451685025;
|
||||||
};
|
};
|
||||||
onActivation.cleanup = "zap";
|
onActivation.cleanup = "zap";
|
||||||
|
onActivation.autoUpdate = true;
|
||||||
|
onActivation.upgrade = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Auto upgrade nix package and the daemon service.
|
# Auto upgrade nix package and the daemon service.
|
||||||
@@ -104,6 +106,12 @@
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
system.defaults = {
|
||||||
|
dock.autohide = true;
|
||||||
|
trackpad.Clicking = true;
|
||||||
|
trackpad.TrackpadThreeFingerDrag = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Set Git commit hash for darwin-version.
|
# Set Git commit hash for darwin-version.
|
||||||
system.configurationRevision = self.rev or self.dirtyRev or null;
|
system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user