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 = { |
inputs = { |
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
||||||
home-manager = { |
darwin.url = "github:lnl7/nix-darwin"; |
||||||
url = "github:nix-community/home-manager"; |
darwin.inputs.nixpkgs.follows = "nixpkgs"; |
||||||
inputs.nixpkgs.follows = "nixpkgs"; |
home-manager.url = "github:nix-community/home-manager"; |
||||||
}; |
home-manager.inputs.nixpkgs.follows = "nixpkgs"; |
||||||
}; |
}; |
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }: |
outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: { |
||||||
let |
darwinConfigurations = { |
||||||
system = "aarch64-darwin"; |
exa = darwin.lib.darwinSystem { |
||||||
pkgs = nixpkgs.legacyPackages.${system}; |
system = "aarch64-darwin"; |
||||||
in { |
modules = [ |
||||||
homeConfigurations.elal = home-manager.lib.homeManagerConfiguration { |
./configuration.nix |
||||||
inherit pkgs; |
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