WIP
This commit is contained in:
parent
b68f8c664b
commit
da35394474
5 changed files with 116 additions and 1 deletions
91
hosts/dnsc-mac/default.nix
Normal file
91
hosts/dnsc-mac/default.nix
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
|
||||
# Setting the user
|
||||
networking.hostName = "dnsc-mac";
|
||||
networking.computerName = "dnsc-mac";
|
||||
system.defaults.smb.NetBIOSName = "dnsc-mac";
|
||||
|
||||
users.users."dennis"= {
|
||||
home = "/Users/dennis";
|
||||
description = username;
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ username ];
|
||||
|
||||
# System Packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
neovim
|
||||
];
|
||||
|
||||
# Homebrew
|
||||
homebrew = {
|
||||
enable = true;
|
||||
|
||||
onActivation = {
|
||||
autoUpdate = false;
|
||||
# 'zap': uninstalls all formulae(and related files) not listed here.
|
||||
# cleanup = "zap";
|
||||
};
|
||||
|
||||
taps = [
|
||||
"homebrew/services"
|
||||
];
|
||||
|
||||
# `brew install`
|
||||
# TODO Feel free to add your favorite apps here.
|
||||
brews = [
|
||||
# "aria2" # download tool
|
||||
];
|
||||
|
||||
# `brew install --cask`
|
||||
# TODO Feel free to add your favorite apps here.
|
||||
casks = [
|
||||
# "google-chrome"
|
||||
];
|
||||
};
|
||||
|
||||
# Programgs
|
||||
programs.fish.enable = true;
|
||||
|
||||
# System settings
|
||||
system = {
|
||||
stateVersion = 5;
|
||||
activationScripts.postUserActivation.text = ''
|
||||
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
|
||||
'';
|
||||
|
||||
defaults = {
|
||||
menuExtraClock.Show24Hour = true; # show 24 hour clock
|
||||
};
|
||||
};
|
||||
|
||||
# Add ability to used TouchID for sudo authentication
|
||||
security.pam.enableSudoTouchIdAuth = true;
|
||||
|
||||
# Home Manager Setup
|
||||
# Home Manager Setup
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
users = {
|
||||
dennis = import ../../home/server;
|
||||
};
|
||||
};
|
||||
|
||||
# Nix settings
|
||||
services.nix-daemon.enable = true;
|
||||
nix.package = pkgs.nix;
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 1w";
|
||||
};
|
||||
nix.settings.auto-optimise-store = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue