mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
First pass at a Nix flake for my laptop
Heavily inspired by these: - https://github.com/zmre/mac-nix-simple-example - https://github.com/dustinlyons/nixos-config
This commit is contained in:
parent
1fb4bf12c8
commit
6430f175b2
6 changed files with 584 additions and 0 deletions
61
modules/darwin/default.nix
Normal file
61
modules/darwin/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ pkgs, ... }: {
|
||||
nix.extraOptions = ''
|
||||
# Generated by https://github.com/DeterminateSystems/nix-installer, version 0.11.0.
|
||||
extra-nix-path = nixpkgs=flake:nixpkgs
|
||||
experimental-features = nix-command flakes auto-allocate-uids
|
||||
build-users-group = nixbld
|
||||
bash-prompt-prefix = (nix:$name)\040
|
||||
'';
|
||||
|
||||
fonts.fontDir.enable = false; # True will uninstall other fonts, false installs, but doesn't uninstall
|
||||
fonts.fonts = [ (pkgs.nerdfonts.override { fonts = [
|
||||
"Hack"
|
||||
"SourceCodePro"
|
||||
]; }) ];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
services.nix-daemon.enable = true;
|
||||
system.stateVersion = 4;
|
||||
users.users."gene.liverman".home = "/Users/gene.liverman";
|
||||
environment = {
|
||||
shells = with pkgs; [ bash zsh ];
|
||||
loginShell = pkgs.zsh;
|
||||
pathsToLink = [
|
||||
"/Applications"
|
||||
"/share/zsh"
|
||||
];
|
||||
systemPackages = with pkgs; [
|
||||
coreutils
|
||||
#adr-tools
|
||||
chart-testing
|
||||
colordiff
|
||||
dog
|
||||
dos2unix
|
||||
# dust
|
||||
|
||||
subversion
|
||||
# git-svn
|
||||
|
||||
gotop
|
||||
# helm
|
||||
hub
|
||||
hugo
|
||||
|
||||
kopia
|
||||
# kubernetes-cli
|
||||
kubectx
|
||||
mas
|
||||
mtr
|
||||
nmap
|
||||
# node
|
||||
openjdk
|
||||
rename
|
||||
tree
|
||||
watch
|
||||
wget
|
||||
yq
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue