Skip to content

Commit

Permalink
Merge pull request #10 from michaelvanstraten/add-crude-work-machine-…
Browse files Browse the repository at this point in the history
…config

Add crude host configuration for work machine
  • Loading branch information
michaelvanstraten authored Sep 2, 2024
2 parents 46fbe6f + b7fdddd commit 713ae35
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
32 changes: 32 additions & 0 deletions darwin/hosts/mozilla-macbook-pro.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ pkgs, ... }:
{
imports = [
../modules/nix.nix
../modules/skhd.nix
../modules/system.nix
../modules/yabai.nix
../modules/shells.nix
../modules/home-manager.nix
../modules/packages.nix
];

nixpkgs = {
config.allowUnfree = true;
};

users.users.mozilla = {
createHome = true;
description = "Michael van Straten";
home = "/Users/mozilla/";
name = "mozilla";
shell = pkgs.fish;
};

system.stateVersion = 4;

security.pam.enableSudoTouchIdAuth = true;

home-manager.users.mozilla = import ../../dotfiles/mozilla;

environment.systemPackages = with pkgs; [ darwin.trash ];
}
52 changes: 52 additions & 0 deletions dotfiles/mozilla/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ inputs, pkgs, ... }:
{
imports = [
./../michael/tmux
./../michael/vscode.nix
./../michael/starship.nix
./../michael/poetry.nix
./../michael/lazygit.nix
./../michael/git.nix
./../michael/alacritty.nix
./../michael/sesh.nix
./../michael/shells
];

xdg.enable = true;

home.packages = with pkgs; [
wget
inputs.neovim-nightly-overlay.packages.${pkgs.system}.default
nil
stylua
lua-language-server
podman
podman-compose
];

home.sessionVariables = {
EDITOR = "nvim";
};

programs.home-manager.enable = true;

home.stateVersion = "24.05";

programs.git = {
userName = "Michael van Straten";
userEmail = "[email protected]";
};

programs.eza.enable = true;

programs.bat.enable = true;

programs.zoxide.enable = true;
programs.zoxide.options = [ "--cmd cd" ];

programs.thefuck.enable = true;

programs.jq.enable = true;

programs.sesh.enable = true;
}
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
inherit inputs;
};
};
"N7R221P6V5" = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
home-manager.darwinModule
./darwin/hosts/mozilla-macbook-pro.nix
];
specialArgs = {
inherit inputs;
};
};
};

nixosConfigurations =
Expand Down

0 comments on commit 713ae35

Please sign in to comment.