mirror of https://github.com/E-Almqvist/dotfiles
parent
83b3cf1574
commit
9e1669337b
@ -0,0 +1,25 @@ |
|||||||
|
{ pkgs, ... }: |
||||||
|
|
||||||
|
{ |
||||||
|
# List packages installed in system profile. To search by name, run: |
||||||
|
# $ nix-env -qaP | grep wget |
||||||
|
environment.systemPackages = |
||||||
|
[ pkgs.vim |
||||||
|
]; |
||||||
|
|
||||||
|
# Necessary for using flakes on this system. |
||||||
|
nix.settings.experimental-features = "nix-command flakes"; |
||||||
|
|
||||||
|
# Enable alternative shell support in nix-darwin. |
||||||
|
# programs.fish.enable = true; |
||||||
|
|
||||||
|
# Set Git commit hash for darwin-version. |
||||||
|
system.configurationRevision = self.rev or self.dirtyRev or null; |
||||||
|
|
||||||
|
# Used for backwards compatibility, please read the changelog before changing. |
||||||
|
# $ darwin-rebuild changelog |
||||||
|
system.stateVersion = 6; |
||||||
|
|
||||||
|
# The platform the configuration will be used on. |
||||||
|
nixpkgs.hostPlatform = "aarch64-darwin"; |
||||||
|
} |
@ -1,23 +1,29 @@ |
|||||||
{ |
{ |
||||||
description = "Home Manager configuration"; |
description = "Epsilons darwin configuration"; |
||||||
|
|
||||||
inputs = { |
inputs = { |
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-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, ... }: |
|
||||||
let |
|
||||||
system = "aarch64-darwin"; |
|
||||||
pkgs = nixpkgs.legacyPackages.${system}; |
|
||||||
in { |
|
||||||
homeConfigurations.elal = home-manager.lib.homeManagerConfiguration { |
|
||||||
inherit pkgs; |
|
||||||
|
|
||||||
modules = [ ./home.nix ]; |
outputs = inputs: { |
||||||
|
darwinConfigurations = { |
||||||
|
"exa" = inputs.darwin.lib.darwinSystem { |
||||||
|
system = "aarch64-darwin"; # or "x86_64-darwin" for Intel Macs |
||||||
|
modules = [ |
||||||
|
./configuration.nix |
||||||
|
# This module integrates Home Manager: |
||||||
|
inputs.home-manager.darwinModules.home-manager { |
||||||
|
home-manager.useGlobalPkgs = true; |
||||||
|
home-manager.useUserPackages = true; |
||||||
|
home-manager.users.elal = import ./home.nix; |
||||||
|
} |
||||||
|
]; |
||||||
|
}; |
||||||
}; |
}; |
||||||
}; |
}; |
||||||
} |
} |
||||||
|
|
||||||
|
@ -0,0 +1,18 @@ |
|||||||
|
{ |
||||||
|
description = "Home Manager configuration"; |
||||||
|
|
||||||
|
inputs = { |
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; |
||||||
|
home-manager = { |
||||||
|
url = "github:nix-community/home-manager"; |
||||||
|
inputs.nixpkgs.follows = "nixpkgs"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
outputs = { self, nixpkgs, home-manager }: { |
||||||
|
homeConfigurations."elal" = home-manager.lib.homeConfiguration { |
||||||
|
pkgs = nixpkgs.legacyPackages.aarch64-darwin; |
||||||
|
modules = [ ./home.nix ]; |
||||||
|
}; |
||||||
|
}; |
||||||
|
} |
@ -0,0 +1 @@ |
|||||||
|
experimental-features = nix-command flakes |
Loading…
Reference in new issue