[nix-darwin] Updates

This commit is contained in:
Kat Huang 2024-08-13 21:32:27 -06:00
parent a931c1be6a
commit bbb1c76500
2 changed files with 39 additions and 10 deletions

View File

@ -3,7 +3,7 @@
"agenix": { "agenix": {
"inputs": { "inputs": {
"darwin": "darwin", "darwin": "darwin",
"home-manager": "home-manager", "home-manager": "home-manager_2",
"nixpkgs": [ "nixpkgs": [
"railbird-secrets", "railbird-secrets",
"nixpkgs" "nixpkgs"
@ -101,6 +101,26 @@
} }
}, },
"home-manager": { "home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1723399884,
"narHash": "sha256-97wn0ihhGqfMb8WcUgzzkM/TuAxce2Gd20A8oiruju4=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "086f619dd991a4d355c07837448244029fc2d9ab",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"home-manager_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"railbird-secrets", "railbird-secrets",
@ -296,6 +316,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager",
"homebrew-cask": "homebrew-cask", "homebrew-cask": "homebrew-cask",
"homebrew-core": "homebrew-core", "homebrew-core": "homebrew-core",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",

View File

@ -19,22 +19,26 @@
url = "github:homebrew/homebrew-cask"; url = "github:homebrew/homebrew-cask";
flake = false; flake = false;
}; };
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = inputs@{ self, nix-darwin, nixpkgs, ... }: outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, ... }:
let let
configuration = { pkgs, config, ... }: { configuration = { pkgs, config, ... }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
emacs emacs
slack alejandra
gitFull
ripgrep
yarn
nodePackages.prettier
vim
just
cocoapods cocoapods
gitFull
just
nodePackages.prettier
nodejs
ripgrep
slack
typescript
vim
yarn
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -62,6 +66,9 @@
# The platform the configuration will be used on. # The platform the configuration will be used on.
nixpkgs.hostPlatform = "aarch64-darwin"; nixpkgs.hostPlatform = "aarch64-darwin";
users.users.kat.openssh.authorizedKeys.keys = inputs.railbird-secrets.keys.kanivanKeys; users.users.kat.openssh.authorizedKeys.keys = inputs.railbird-secrets.keys.kanivanKeys;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}; };
in in
{ {
@ -69,6 +76,7 @@
# $ darwin-rebuild build --flake .#Kats-Mac-mini # $ darwin-rebuild build --flake .#Kats-Mac-mini
darwinConfigurations."Kats-Mac-mini" = nix-darwin.lib.darwinSystem { darwinConfigurations."Kats-Mac-mini" = nix-darwin.lib.darwinSystem {
modules = [ modules = [
home-manager.darwinModules.home-manager
configuration configuration
]; ];
}; };