2023-10-20 23:41:27 +00:00
|
|
|
{
|
|
|
|
description = "tacocat's nix configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
helix = {
|
|
|
|
url = "github:helix-editor/helix/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# pass in the urls defined above
|
|
|
|
# the @ syntax stores the arguments in the inputs variable
|
|
|
|
outputs = inputs @ {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
2023-10-21 00:06:56 +00:00
|
|
|
helix,
|
2023-10-20 23:41:27 +00:00
|
|
|
}: let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
# nixosConfigurations: define options for different systems
|
|
|
|
# desktop
|
|
|
|
nixosConfigurations."BICEP" = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
|
|
./hosts/BICEP/configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.users."tacocat" = ./users/tacocat/home.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# laptop
|
|
|
|
nixosConfigurations."JWST" = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
|
|
./hosts/JWST/configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.users."tacocat" = ./users/tacocat/home.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
#homeConfigurations: define options for different users
|
|
|
|
homeConfigurations."tacocat" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
2023-10-21 01:13:32 +00:00
|
|
|
extraSpecialArgs = {inherit inputs;}; # Pass flake inputs to our config
|
2023-10-20 23:41:27 +00:00
|
|
|
modules = [
|
2023-10-21 00:06:56 +00:00
|
|
|
./users/tacocat/home.nix
|
2023-10-20 23:41:27 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
#outputs home-manager activation package for use on non-NixOS, i think?
|
|
|
|
packages.${system}."tacocat" = self.homeConfigurations."tacocat".activationPackage;
|
|
|
|
};
|
|
|
|
}
|