darwin: PoC config for mac. Yet to be tested.

The hostname is just a placeholder since I do not control hostname at
work.
This commit is contained in:
Payas Relekar 2023-10-20 23:08:09 +05:30
parent b7e01c1d08
commit b87d6fa7eb
2 changed files with 39 additions and 0 deletions

View file

@ -36,6 +36,7 @@
./modules/common.nix
./modules/fish.nix
];
darwinpkgs = nixpkgs.legacyPacakges."x86_64-darwin";
in
{
overlay = final: prev: {
@ -43,6 +44,15 @@
pihole pihole-ftl pihole-adminlte;
};
homeConfigurations."payas" = home-manager.lib.homeManagerConfiguration {
inherit darwinpkgs;
modules = [ ./hosts/charles/home.nix ];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
nixosConfigurations = {
# The Workhorse: WSL2 edition

29
hosts/charles/home.nix Normal file
View file

@ -0,0 +1,29 @@
{ pkgs, ... }:
{
imports = [
../../modules/neovim/nvim.nix
];
home.packages = with pkgs; [
# security
keepassxc # password management
rage
libreoffice # thoroughly average grown up stuff
];
programs = {
ssh = {
enable = true;
matchBlocks = {
"ssh.bhankas.org" = {
user = "gitea";
hostname = "ssh.bhankas.org";
identityFile = [ "~/.ssh/id_ed25519" ];
proxyCommand = "${pkgs.cloudflared}/bin/cloudflared access ssh --hostname %h";
};
};
};
};
}