[tarro] Adds new config for tarro-mbp
This commit is contained in:
29
system/hosts/tarro-mbp/configuration.nix
Normal file
29
system/hosts/tarro-mbp/configuration.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
# List packages installed in system profile. To search by name, run:
|
||||
# $ nix-env -qaP | grep wget
|
||||
environment.systemPackages =
|
||||
[ pkgs.vim
|
||||
];
|
||||
|
||||
# Necessary for using flakes on this system.
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
# Enable alternative shell support in nix-darwin.
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# Set Git commit hash for darwin-version.
|
||||
system.configurationRevision = inputs.self.rev or inputs.self.dirtyRev or null;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 6;
|
||||
|
||||
# The platform the configuration will be used on.
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
|
||||
users.users.drew = {
|
||||
name = "drew";
|
||||
home = "/Users/drew";
|
||||
};
|
||||
}
|
||||
16
system/hosts/tarro-mbp/default.nix
Normal file
16
system/hosts/tarro-mbp/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ inputs, self, ... }:
|
||||
inputs.nix-darwin.lib.darwinSystem {
|
||||
modules = [
|
||||
./configuration.nix
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.users.drew = import ./drew.nix;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
}
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit self;
|
||||
};
|
||||
}
|
||||
18
system/hosts/tarro-mbp/drew.nix
Normal file
18
system/hosts/tarro-mbp/drew.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ pkgs, self, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../../home-manager/features/shell.nix
|
||||
../../../home-manager/features/terminal.nix
|
||||
../../../home-manager/features/neovim.nix
|
||||
];
|
||||
|
||||
home.username = "drew";
|
||||
home.homeDirectory = "/Users/drew";
|
||||
|
||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
Reference in New Issue
Block a user