60 lines
1.5 KiB
Nix
60 lines
1.5 KiB
Nix
{
|
|
description = "Cyperpunk nix-darwin system flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
nix-darwin = {
|
|
url = "github:nix-darwin/nix-darwin/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Editor
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim/nixos-24.11";
|
|
# If using a stable channel you can use `url = "github:nix-community/nixvim/nixos-<version>"`
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
|
|
catppuccin.url = "github:catppuccin/nix";
|
|
};
|
|
|
|
outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, catppuccin, nixvim, ... }:
|
|
let
|
|
system = "x86_64-darwin";
|
|
specialArgs = { inherit inputs system; };
|
|
in
|
|
{
|
|
darwinConfigurations = {
|
|
"Phil-Mac" = nix-darwin.lib.darwinSystem {
|
|
inherit system specialArgs;
|
|
|
|
modules = [
|
|
# Main Config
|
|
./configuration.nix
|
|
|
|
# home manager integration
|
|
home-manager.darwinModules.home-manager {
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.dergrumpf = import ./home.nix;
|
|
backupFileExtension = "backup";
|
|
extraSpecialArgs = specialArgs;
|
|
sharedModules = [
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|