Files
nixos-conf/flake.nix
2025-08-25 16:01:38 -06:00

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 = {
# useGlobalPkgs = true;
# useUserPackages = true;
# extraSpecialArgs = specialArgs;
# users.${user} = {
# # pkgs = nixpkgs.legacyPackages.${system};
# imports = [
# #./home-manager/${user}/home.nix
# ./home-manager/autumn/yukigekko-home.nix
# ];
# };
# };
# }
];
};
};
}