This commit is contained in:
autumn
2025-08-25 12:49:50 -06:00
parent 7cea231a80
commit 39450f3b3c
2 changed files with 27 additions and 15 deletions

View File

@@ -11,28 +11,39 @@
outputs = { self, nixpkgs, home-manager }@inputs: outputs = { self, nixpkgs, home-manager }@inputs:
let let
username = "autumn"; user = "autumn";
system = "x86_64-linux"; system = "x86_64-linux";
timezone = "America/Denver"; timezone = "America/Denver";
locale = "en_US.UTF-8"; locale = "en_US.UTF-8";
in {
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
extraSpecialArgs = {inherit inputs;};
};
nixosConfigurations."yukigekko" = nixpkgs.lib.nixosSystem{
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
inherit user;
inherit system; inherit system;
inherit username;
inherit timezone; inherit timezone;
inherit locale; inherit locale;
}; };
in {
homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
};
nixosConfigurations."yukigekko" = nixpkgs.lib.nixosSystem{
specialArgs = specialArgs;
modules = [ modules = [
./system/nixos/configuration.nix ./home-manager/autumn/yukigekko-home.nix ./system/nixos/configuration.nix home-manager.nixosModules.home-manager{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = specialArgs;
users.${user} = {
home.stateVersion = "25.11";
imports = [
./home-manager/${user}/yukigekko-home.nix
];
};
};
}
]; ];
}; };
}; };

View File

@@ -1,14 +1,15 @@
{ config, lib, pkgs, ... }: { pkgs, ... }:
{ {
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
home.username = "autumn"; home.username = "autumn";
home.homeDirectory = "/home/autumn"; home.homeDirectory = "/home/autumn";
# home.stateVersion = "25.05"; # Please read the comment before changing.
programs.home-manager.enable = true; programs.home-manager.enable = true;
home.stateVersion = "25.05"; # Please read the comment before changing.
nixpkgs.config = { nixpkgs.config = {
alowUnfree = true; alowUnfree = true;