mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
80 lines
2.3 KiB
Nix
80 lines
2.3 KiB
Nix
{
|
|
description = "A flake for all my stuff";
|
|
inputs = {
|
|
# Where we get most of our software. Giant mono repo with recipes
|
|
# called derivations that say how to build software.
|
|
nixpkgs.url = "github:nixos/nixpkgs";
|
|
|
|
# Controls system level software and settings including fonts
|
|
nix-darwin = {
|
|
url = "github:lnl7/nix-darwin";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Manages things in home directory
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Manage Homebrew itself
|
|
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
|
|
|
|
}; # end inputs
|
|
outputs = { self, nixpkgs, nix-darwin, home-manager, nix-homebrew, ... }: {
|
|
nixosConfigurations.rainbow-planet = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./modules/nixos/configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users."gene".imports = [
|
|
./modules/home-manager
|
|
./modules/nixos/dconf.nix
|
|
];
|
|
};
|
|
}
|
|
];
|
|
}; # end nixosConfigurations
|
|
|
|
# This is only set to work with x86 macOS right now... that will need to be updated
|
|
darwinConfigurations.Blue-Rock = nix-darwin.lib.darwinSystem {
|
|
system = "x86_64-darwin";
|
|
pkgs = import nixpkgs {
|
|
system = "x86_64-darwin";
|
|
config.allowUnfree = true;
|
|
};
|
|
modules = [
|
|
nix-homebrew.darwinModules.nix-homebrew
|
|
{
|
|
nix-homebrew = {
|
|
# Install Homebrew under the default prefix
|
|
enable = true;
|
|
|
|
# User owning the Homebrew prefix
|
|
user = "gene.liverman";
|
|
|
|
# Automatically migrate existing Homebrew installations
|
|
autoMigrate = true;
|
|
};
|
|
}
|
|
|
|
./modules/darwin
|
|
|
|
home-manager.darwinModules.home-manager
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users."gene.liverman".imports = [
|
|
./modules/home-manager
|
|
];
|
|
};
|
|
}
|
|
]; # end modules
|
|
}; # end of darwinConfigurations.Blue-Rock
|
|
};
|
|
}
|