Skip to content

Commit

Permalink
vm
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Oct 22, 2024
1 parent 7c9f50d commit 40f157f
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 19 deletions.
5 changes: 5 additions & 0 deletions darwin-modules/homebrew-packages/work.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@
"intune-company-portal"
"microsoft-teams"
"tunnelblick"
"postman"
"dbvisualizer"
"activitywatch"
"wireshark"
];

brews = lib.mkIf (config.context == "work") [
"azure-cli"
"protobuf"
];
};
}
12 changes: 11 additions & 1 deletion darwin-modules/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
use-case-hack = false
'';

settings.trusted-users = [ "@admin" ];
settings = {
trusted-users = [ "@admin" ];
substituters = [
"https://esselius.cachix.org"
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"esselius.cachix.org-1:h6FQzpdflxdZfnnL0caV88xt5K5sNzgO0VIHQthTymA="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};

gc = {
automatic = true;
Expand Down
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions home-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
ezModules.context
ezModules.agenix
ezModules.terminal
ezModules.nix
];

home = {
Expand Down
17 changes: 17 additions & 0 deletions home-modules/nix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
nix = {
settings = {
substituters = [
"https://cache.nixos.org"
"https://esselius.cachix.org"
"https://nix-community.cachix.org"
"https://devenv.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"esselius.cachix.org-1:h6FQzpdflxdZfnnL0caV88xt5K5sNzgO0VIHQthTymA="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
};
}
4 changes: 4 additions & 0 deletions home-modules/profiles/tools/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@
yq
zstd
nixd
duckdb
tree
attic-server
attic-client
];
}
8 changes: 8 additions & 0 deletions nixos-configurations/vm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
nixpkgs.hostPlatform = "aarch64-linux";

system.stateVersion = "24.05";

context = "work";
formfactor = "vm";
}

0 comments on commit 40f157f

Please sign in to comment.