Adds system configuration for dnsc-air
This commit is contained in:
parent
c4c4282439
commit
f1d155e1c8
2 changed files with 173 additions and 91 deletions
173
hosts/dnsc-air/default.nix
Normal file
173
hosts/dnsc-air/default.nix
Normal file
|
|
@ -0,0 +1,173 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
];
|
||||
|
||||
# Setting the user
|
||||
networking.hostName = "dnsc-air";
|
||||
networking.computerName = "dnsc-air";
|
||||
|
||||
users.users."dennis"= {
|
||||
home = "/Users/dennis";
|
||||
description = "Dennis Schoepf";
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ "dennis" ];
|
||||
|
||||
# System Packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
btop
|
||||
fish
|
||||
ripgrep
|
||||
fzf
|
||||
fd
|
||||
fortune
|
||||
neofetch
|
||||
neovim
|
||||
];
|
||||
|
||||
# Homebrew
|
||||
homebrew = {
|
||||
enable = true;
|
||||
|
||||
onActivation = {
|
||||
autoUpdate = false;
|
||||
# 'zap': uninstalls all formulae(and related files) not listed here.
|
||||
# cleanup = "zap";
|
||||
};
|
||||
|
||||
taps = [
|
||||
"homebrew/services"
|
||||
];
|
||||
|
||||
brews = [
|
||||
"ffmpeg"
|
||||
"clojure"
|
||||
"babashka"
|
||||
"tree-sitter"
|
||||
"yt-dlp"
|
||||
"zoxide"
|
||||
"nuspell"
|
||||
"aspell"
|
||||
"enchant"
|
||||
"pinentry"
|
||||
"pinentry-mac"
|
||||
"shellcheck"
|
||||
"sqlite"
|
||||
"tinymist"
|
||||
"typst"
|
||||
"rsync"
|
||||
"fnm"
|
||||
];
|
||||
|
||||
casks = [
|
||||
"zen-browser"
|
||||
"aerospace"
|
||||
"font-victor-mono"
|
||||
"font-victor-mono-nerd-font"
|
||||
"mullvadvpn"
|
||||
"vlc"
|
||||
"alfred"
|
||||
"signal"
|
||||
"wezterm"
|
||||
"arc"
|
||||
"hiddenbar"
|
||||
"syncthing"
|
||||
"eurkey"
|
||||
"karabiner-elements"
|
||||
"vial"
|
||||
];
|
||||
};
|
||||
|
||||
# Shells
|
||||
environment.shells = [ pkgs.fish ];
|
||||
|
||||
# System settings
|
||||
system = {
|
||||
stateVersion = 5;
|
||||
activationScripts.postUserActivation.text = ''
|
||||
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
|
||||
'';
|
||||
|
||||
defaults = {
|
||||
smb.NetBIOSName = "dnsc-air";
|
||||
|
||||
dock = {
|
||||
autohide = true;
|
||||
autohide-delay = 0.01;
|
||||
autohide-time-modifier = 0.01;
|
||||
expose-group-apps = true;
|
||||
launchanim = false;
|
||||
minimize-to-application = true;
|
||||
orientation = "right";
|
||||
show-recents = false;
|
||||
persistent-apps = [
|
||||
"/Applications/Arc.app"
|
||||
"/Applications/Emacs.app"
|
||||
"/Applications/WezTerm.app"
|
||||
"/Applications/Photomator.app"
|
||||
"/System/Applications/System Settings.app/"
|
||||
];
|
||||
persistent-others = [
|
||||
"/Users/dennis/Downloads"
|
||||
];
|
||||
};
|
||||
|
||||
finder = {
|
||||
AppleShowAllExtensions = true;
|
||||
CreateDesktop = false;
|
||||
FXEnableExtensionChangeWarning = false;
|
||||
FXPreferredViewStyle = "clmv";
|
||||
ShowPathbar = true;
|
||||
ShowStatusBar = true;
|
||||
};
|
||||
|
||||
loginwindow = {
|
||||
LoginwindowText = "\\U03bb dnsc-air (powered by Nix)";
|
||||
};
|
||||
|
||||
menuExtraClock = {
|
||||
Show24Hour = true;
|
||||
ShowDate = 0;
|
||||
};
|
||||
|
||||
screencapture = {
|
||||
location = "/Users/dennis/Downloads";
|
||||
target = "file";
|
||||
};
|
||||
|
||||
spaces.spans-displays = false;
|
||||
};
|
||||
};
|
||||
|
||||
# Add ability to used TouchID for sudo authentication
|
||||
security.pam.enableSudoTouchIdAuth = true;
|
||||
|
||||
# Home Manager Setup
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
useGlobalPkgs = true;
|
||||
users = {
|
||||
dennis = import ../../home/darwin.nix;
|
||||
};
|
||||
};
|
||||
|
||||
# Nix settings
|
||||
# Enable new Nix CLI and flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
services.nix-daemon.enable = true;
|
||||
nix.package = pkgs.nix;
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 1w";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
{
|
||||
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