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:
Gene Liverman 2023-09-08 16:49:45 -04:00 committed by Gene Liverman
parent 1fb4bf12c8
commit 6430f175b2
6 changed files with 584 additions and 0 deletions

View 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
];
};
}