mirror of https://github.com/E-Almqvist/dotfiles
Compare commits
7 Commits
422109d68d
...
c1405dc3e9
Author | SHA1 | Date |
---|---|---|
|
c1405dc3e9 | 2 months ago |
|
9800c22730 | 2 months ago |
|
1fc09ed6b5 | 2 months ago |
|
d83cadad4f | 2 months ago |
|
21ea5d1661 | 2 months ago |
|
9e1669337b | 2 months ago |
|
83b3cf1574 | 2 months ago |
@ -0,0 +1,42 @@ |
||||
{ pkgs, ... }: |
||||
|
||||
{ |
||||
# List packages installed in system profile. To search by name, run: |
||||
# $ nix-env -qaP | grep wget |
||||
environment.systemPackages = with pkgs; [ |
||||
git |
||||
]; |
||||
|
||||
# Necessary for using flakes on this system. |
||||
nix.settings.experimental-features = "nix-command flakes"; |
||||
|
||||
# Auto upgrade nix package and the daemon service. |
||||
services.nix-daemon.enable = true; |
||||
|
||||
# Enable zsh |
||||
programs.zsh.enable = true; |
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing. |
||||
# $ darwin-rebuild changelog |
||||
system.stateVersion = 6; |
||||
|
||||
# Fix dumb MacOS features that no one asked for |
||||
system.defaults.NSGlobalDomain = { |
||||
ApplePressAndHoldEnabled = false; |
||||
}; |
||||
|
||||
# Allow unfree (and optionally broken) packages |
||||
nixpkgs.config = { |
||||
allowUnfree = true; |
||||
# If needed, you can also allow broken packages: |
||||
# allowBroken = true; |
||||
}; |
||||
|
||||
# The platform the configuration will be used on. |
||||
nixpkgs.hostPlatform = "aarch64-darwin"; |
||||
|
||||
users.users.elal = { |
||||
name = "elal"; |
||||
home = "/Users/elal"; |
||||
}; |
||||
} |
@ -1,23 +1,31 @@ |
||||
{ |
||||
description = "Home Manager configuration"; |
||||
description = "Epsilons Darwin configuration"; |
||||
|
||||
inputs = { |
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
||||
home-manager = { |
||||
url = "github:nix-community/home-manager"; |
||||
inputs.nixpkgs.follows = "nixpkgs"; |
||||
}; |
||||
darwin.url = "github:lnl7/nix-darwin"; |
||||
darwin.inputs.nixpkgs.follows = "nixpkgs"; |
||||
home-manager.url = "github:nix-community/home-manager"; |
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs"; |
||||
}; |
||||
|
||||
outputs = { nixpkgs, home-manager, ... }: |
||||
let |
||||
system = "aarch64-darwin"; |
||||
pkgs = nixpkgs.legacyPackages.${system}; |
||||
in { |
||||
homeConfigurations.elal = home-manager.lib.homeManagerConfiguration { |
||||
inherit pkgs; |
||||
outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: { |
||||
darwinConfigurations = { |
||||
exa = darwin.lib.darwinSystem { |
||||
system = "aarch64-darwin"; |
||||
modules = [ |
||||
./configuration.nix |
||||
home-manager.darwinModules.home-manager |
||||
{ |
||||
home-manager.useGlobalPkgs = true; |
||||
home-manager.useUserPackages = true; |
||||
home-manager.users.elal = import ./home.nix; |
||||
|
||||
modules = [ ./home.nix ]; |
||||
# Optionally, use home-manager.extraSpecialArgs to pass |
||||
# arguments to home.nix |
||||
} |
||||
]; |
||||
}; |
||||
}; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue