dotfiles/flake.nix

69 lines
1.6 KiB
Nix
Raw Normal View History

2023-02-07 11:42:25 +01:00
{
description = "nekowinston's hm flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
darwin = {
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/NUR/master";
sops.url = "github:Mic92/sops-nix/master";
2023-02-07 11:42:25 +01:00
};
outputs = {
self,
darwin,
home-manager,
nixpkgs,
nixpkgs-unstable,
nur,
sops,
...
}:
let
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
system = prev.system;
config.allowUnfree = true;
};
};
in {
2023-02-07 11:42:25 +01:00
darwinConfigurations = {
"sashimi-slicer" = darwin.lib.darwinSystem rec {
system = "aarch64-darwin";
2023-02-07 11:42:25 +01:00
modules = [
home-manager.darwinModules.home-manager
2023-02-07 11:42:25 +01:00
./darwin.nix
({ config, ... }: {
config = {
nixpkgs.overlays = [ overlay-unstable ];
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
users.winston.imports = [ ./home.nix ];
extraSpecialArgs = {
nur = nur.nixosModules.nur;
sops = sops.homeManagerModules.sops;
2023-02-10 06:34:05 +01:00
flakePath = "/Users/winston/.config/nixpkgs";
machine.personal = true;
};
};
};
2023-02-07 11:42:25 +01:00
})
];
};
};
};
}