58 lines
1.6 KiB
Nix
58 lines
1.6 KiB
Nix
{
|
|
|
|
description = "Autumn's multi-system configs";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager }@inputs:
|
|
|
|
let
|
|
user = "autumn";
|
|
system = "x86_64-linux";
|
|
timezone = "America/Denver";
|
|
locale = "en_US.UTF-8";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
inherit user;
|
|
inherit system;
|
|
inherit timezone;
|
|
inherit locale;
|
|
};
|
|
in {
|
|
|
|
homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {
|
|
extraSpecialArgs = specialArgs;
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
modules = [
|
|
./home-manager/${user}/home.nix
|
|
./home-manager/${user}/yukigekko-home.nix
|
|
];
|
|
};
|
|
|
|
nixosConfigurations."yukigekko" = nixpkgs.lib.nixosSystem{
|
|
specialArgs = specialArgs;
|
|
modules = [
|
|
./system/nixos/configuration.nix
|
|
# home-manager.nixosModules.home-manager{
|
|
# home-manager = {
|
|
# #pkgs = nixpkgs.legacyPackages.${system};
|
|
# useGlobalPkgs = true;
|
|
# useUserPackages = true;
|
|
# extraSpecialArgs = specialArgs;
|
|
# users.${user} = {
|
|
# imports = [
|
|
# ./home-manager/${user}/home.nix
|
|
# ./home-manager/${user}/yukigekko-home.nix
|
|
# ];
|
|
# };
|
|
# };
|
|
# }
|
|
];
|
|
};
|
|
};
|
|
}
|