feat: ⬆️ Upgrade nix deps
This commit is contained in:
24
flake.nix
24
flake.nix
@ -1,13 +1,11 @@
|
||||
{
|
||||
description = "Louis Darwin system flake";
|
||||
|
||||
inputs = {
|
||||
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
nix-darwin.url = "github:LnL7/nix-darwin";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nix-darwin, nixpkgs, nix-homebrew, ... }:
|
||||
let
|
||||
configuration = { pkgs, ... }: {
|
||||
@ -42,7 +40,6 @@
|
||||
pkgs.bitwarden-desktop
|
||||
pkgs.jetbrains-toolbox
|
||||
];
|
||||
|
||||
# HomeBrew configuration
|
||||
homebrew = {
|
||||
enable = true;
|
||||
@ -58,12 +55,11 @@
|
||||
"swish"
|
||||
"termius"
|
||||
"mattermost"
|
||||
"aldente"
|
||||
"aldente"
|
||||
"logi-options+"
|
||||
"adobe-creative-cloud"
|
||||
"qbittorrent"
|
||||
"zoom"
|
||||
"tailscale"
|
||||
"zed"
|
||||
"whisky"
|
||||
"visual-studio-code"
|
||||
@ -78,6 +74,7 @@
|
||||
"privileges"
|
||||
"jdownloader"
|
||||
"raspberry-pi-imager"
|
||||
"tailscale-app"
|
||||
];
|
||||
brews = [
|
||||
"wget"
|
||||
@ -99,7 +96,7 @@
|
||||
"wget"
|
||||
"zsh"
|
||||
"yubikey-agent"
|
||||
"pkg-config"
|
||||
"pkg-config"
|
||||
"serve"
|
||||
];
|
||||
taps = [
|
||||
@ -110,10 +107,7 @@
|
||||
onActivation.cleanup = "uninstall";
|
||||
onActivation.autoUpdate = true;
|
||||
onActivation.upgrade = true;
|
||||
|
||||
};
|
||||
|
||||
# System configuration
|
||||
}; # System configuration
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
system.defaults = {
|
||||
dock = {
|
||||
@ -141,7 +135,6 @@
|
||||
finder.FXPreferredViewStyle = "Nlsv";
|
||||
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
|
||||
};
|
||||
|
||||
# Allow broken packages
|
||||
nixpkgs.config.allowBroken = true;
|
||||
# allow unfree packages
|
||||
@ -149,22 +142,17 @@
|
||||
# Auto upgrade nix package and the daemon service.
|
||||
# services.nix-daemon.enable = true;
|
||||
# nix.package = pkgs.nix;
|
||||
|
||||
# Necessary for using flakes on this system.
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||
programs.zsh.enable = true; # default shell on catalina
|
||||
# programs.fish.enable = true;
|
||||
|
||||
# Set Git commit hash for darwin-version.
|
||||
system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 5;
|
||||
system.primaryUser = "louisgallet";
|
||||
|
||||
# The platform the configuration will be used on.
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
};
|
||||
@ -180,20 +168,16 @@
|
||||
nix-homebrew = {
|
||||
# Install Homebrew under the default prefix
|
||||
enable = true;
|
||||
|
||||
# Apple Silicon Only: Also install Homebrew under the default Intel prefix for Rosetta 2
|
||||
enableRosetta = true;
|
||||
|
||||
# User owning the Homebrew prefix
|
||||
user = "louisgallet";
|
||||
|
||||
# Automatically migrate existing Homebrew installations
|
||||
autoMigrate = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Expose the package set, including overlays, for convenience.
|
||||
darwinPackages = self.darwinConfigurations."MBP-Louis".pkgs;
|
||||
};
|
||||
|
Reference in New Issue
Block a user