Add minimal flake
This commit is contained in:
parent
e9fcc8b1f2
commit
66927e9ebf
1 changed files with 34 additions and 0 deletions
34
.config/nix/flake.nix
Normal file
34
.config/nix/flake.nix
Normal file
|
|
@ -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;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue