From 66927e9ebfd3e2054041a3a4d557f3834e3e3c4f Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Fri, 8 Sep 2023 18:23:01 +0200 Subject: [PATCH] Add minimal flake --- .config/nix/flake.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .config/nix/flake.nix diff --git a/.config/nix/flake.nix b/.config/nix/flake.nix new file mode 100644 index 0000000..9d0f463 --- /dev/null +++ b/.config/nix/flake.nix @@ -0,0 +1,34 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + home-manager.url = "github:nix-community/home-manager/master"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + darwin.url = "github:lnl7/nix-darwin"; + darwin.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = inputs: { + darwinConfigurations.TobAir = inputs.darwin.lib.darwinSystem { + system = "aarch64-darwin"; + pkgs = import inputs.nixpkgs { system = "aarch64-darwin"; }; + modules = [ + ({ pkgs, ... }: { + programs.zhs.enable = true; + programs.fish.enable = true; + environment.shells = [ pkgs.bash pkgs.zsh pkgs.fish ]; + environment.loginShell = pkgs.fish; + nix-extraOptions = '' + experimental-features = nix-command flakes + ''; + systemPackages = [ pkgs.coreutils ]; + services.nix-daemon.enable = true; + system.defaults.finder.AppleShowAllExtensions = true; + system.defaults.finder.FXShowPosixPathInTitle = true; + system.defaults.dock.autohide = true; + system.defaults.NSGlobalDomain.InitialKeyRepeat = 14; + system.defaults.NSGlobalDomain.KeyRepeat = 1; + }) + ]; + }; + }; +}