Setup nixnuc, rework home manager files

This commit is contained in:
Gene Liverman 2023-12-16 20:17:41 -05:00 committed by Gene Liverman
parent ce3edc74b5
commit 493ac02c33
18 changed files with 273 additions and 100 deletions

View file

@ -0,0 +1,96 @@
{ pkgs, hostname, username, ... }: {
environment = {
shells = with pkgs; [ bash zsh ];
loginShell = pkgs.zsh;
pathsToLink = [
"/Applications"
"/share/zsh"
];
systemPackages = with pkgs; [
coreutils
hugo
mas
nmap
nodejs
nodePackages.npm
openjdk
];
};
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
cleanup = "zap";
upgrade = true;
};
taps = [
"homebrew/cask-fonts"
"null-dev/firefox-profile-switcher"
];
brews = [
"ffmpeg"
"firefox-profile-switcher-connector"
];
casks = [
"1password"
"1password-cli"
"amethyst"
"angry-ip-scanner"
"audacity"
"balenaetcher"
"firefox"
"font-hack-nerd-font"
"font-inconsolata-g-for-powerline"
"font-source-code-pro-for-powerline"
"iterm2"
"keepingyouawake"
"libreoffice"
"logseq"
"meld"
"nextcloud"
"onlyoffice"
"raycast"
"signal"
"slack"
"tailscale"
"vivaldi"
"vlc"
"zoom"
];
masApps = {
"1Password for Safari" = 1569813296;
"BetterSnapTool" = 417375580;
"Home Assistant" = 1099568401;
"MQTT Explorer" = 1455214828;
};
};
networking.hostName = "${hostname}";
nix = {
settings = {
bash-prompt-prefix = "(nix:$name)\040";
build-users-group = "nixbld";
experimental-features = [
"auto-allocate-uids"
"flakes"
"nix-command"
];
trusted-users = [ "@admin" "${username}" ];
};
extraOptions = ''
# Generated by https://github.com/DeterminateSystems/nix-installer, version 0.11.0.
extra-nix-path = nixpkgs=flake:nixpkgs
'';
};
programs.zsh.enable = true;
services.nix-daemon.enable = true;
users.users.${username} = {
home = "/Users/${username}";
shell = pkgs.zsh;
};
}

View file

@ -0,0 +1,54 @@
{ config, pkgs, hostname, username, ... }: {
imports = [
./linux/internationalisation.nix
];
environment = {
shells = with pkgs; [ bash zsh ];
systemPackages = with pkgs; [
dconf2nix
file
neofetch
python3
tailscale
unzip
wget
];
};
fonts.fontDir.enable = false;
fonts.packages = with pkgs; [
font-awesome
(nerdfonts.override {
fonts = [
"Hack"
"SourceCodePro"
];
})
];
networking.hostName = "${hostname}";
nix.settings = {
allowed-users = [ "${username}" ];
experimental-features = [
"flakes"
"nix-command"
];
trusted-users = [ "${username}" ];
};
programs = {
zsh.enable = true;
};
security.sudo.wheelNeedsPassword = false;
services.tailscale = {
enable = true;
};
time.timeZone = "America/New_York";
users.defaultUserShell = pkgs.zsh;
}

View file

@ -0,0 +1,17 @@
{ config, pkgs, ... }: {
# Select internationalisation properties.
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
}