Files
nixos-conf/flake.nix
2025-08-25 17:51:28 -06:00

56 lines
1.5 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
system = "x86_64-linux";
timezone = "America/Denver";
locale = "en_US.UTF-8";
specialArgs = {
inherit inputs;
inherit system;
inherit timezone;
inherit locale;
};
in {
homeConfigurations.ruby= home-manager.lib.homeManagerConfiguration {
extraSpecialArgs = specialArgs;
pkgs = nixpkgs.legacyPackages.${system};
modules = [
# ./home-manager/${user}/home.nix
./home-manager/ruby/home.nix
];
};
nixosConfigurations."yukigekko" = nixpkgs.lib.nixosSystem{
specialArgs = specialArgs;
modules = [
./system/yukigekko/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
# ];
# };
# };
# }
];
};
};
}