mirror of https://github.com/E-Almqvist/dotfiles
Compare commits
No commits in common. 'c1405dc3e96989661bf76d3b8a060cbe64aaa26b' and '422109d68d50f33aeaace5af65ea1735f50cc93d' have entirely different histories.
c1405dc3e9
...
422109d68d
@ -1,42 +0,0 @@ |
|||||||
{ 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,31 +1,23 @@ |
|||||||
{ |
{ |
||||||
description = "Epsilons Darwin configuration"; |
description = "Home Manager configuration"; |
||||||
|
|
||||||
inputs = { |
inputs = { |
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
||||||
darwin.url = "github:lnl7/nix-darwin"; |
home-manager = { |
||||||
darwin.inputs.nixpkgs.follows = "nixpkgs"; |
url = "github:nix-community/home-manager"; |
||||||
home-manager.url = "github:nix-community/home-manager"; |
inputs.nixpkgs.follows = "nixpkgs"; |
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs"; |
}; |
||||||
}; |
}; |
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: { |
outputs = { nixpkgs, home-manager, ... }: |
||||||
darwinConfigurations = { |
let |
||||||
exa = darwin.lib.darwinSystem { |
system = "aarch64-darwin"; |
||||||
system = "aarch64-darwin"; |
pkgs = nixpkgs.legacyPackages.${system}; |
||||||
modules = [ |
in { |
||||||
./configuration.nix |
homeConfigurations.elal = home-manager.lib.homeManagerConfiguration { |
||||||
home-manager.darwinModules.home-manager |
inherit pkgs; |
||||||
{ |
|
||||||
home-manager.useGlobalPkgs = true; |
|
||||||
home-manager.useUserPackages = true; |
|
||||||
home-manager.users.elal = import ./home.nix; |
|
||||||
|
|
||||||
# Optionally, use home-manager.extraSpecialArgs to pass |
modules = [ ./home.nix ]; |
||||||
# arguments to home.nix |
|
||||||
} |
|
||||||
]; |
|
||||||
}; |
}; |
||||||
}; |
}; |
||||||
}; |
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue