prepare for multiple home-manager configs

This commit is contained in:
2025-01-16 10:43:56 -06:00
parent ee5e3ae9b0
commit 945e3765e8
65 changed files with 59 additions and 36 deletions

View File

@@ -59,7 +59,7 @@
};
outputs = { self, nixpkgs, ... } @ inputs: {
outputs = { self, nixpkgs, home-manager, ... } @ inputs: {
tokyo-night-sddm-theme = { pkgs }: pkgs.stdenv.mkDerivation {
@@ -88,43 +88,57 @@
};
nixosConfigurations.homebox = nixpkgs.lib.nixosSystem {
specialArgs = {
inputs = inputs // {
nathan-home-manager = import ./home-manager/default.nix;
tokyo-night-sddm-theme = self.tokyo-night-sddm-theme;
};
nixosConfigurations = {
homebox = nixpkgs.lib.nixosSystem {
specialArgs = {
inputs = inputs // {
nathan-home-manager = import ./home-manager/nathan;
tokyo-night-sddm-theme = self.tokyo-night-sddm-theme;
};
};
modules = [
./system-config/configuration/homebox
./system-config
];
};
laptop = nixpkgs.lib.nixosSystem {
specialArgs = {
inputs = inputs // {
nathan-home-manager = import ./home-manager/nathan;
tokyo-night-sddm-theme = self.tokyo-night-sddm-theme;
};
};
modules = [
./system-config/configuration/laptop
./system-config
];
};
live = nixpkgs.lib.nixosSystem {
specialArgs = {
inputs = inputs // {
nathan-home-manager = import ./home-manager/nathan;
tokyo-night-sddm-theme = self.tokyo-night-sddm-theme;
};
};
modules = [
./system-config/configuration/live
./system-config
];
};
modules = [
./system-config/configuration/homebox
./system-config
];
};
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
specialArgs = {
inputs = inputs // {
nathan-home-manager = import ./home-manager/default.nix;
tokyo-night-sddm-theme = self.tokyo-night-sddm-theme;
};
};
modules = [
./system-config/configuration/laptop
./system-config
];
};
nixosConfigurations.live = nixpkgs.lib.nixosSystem {
specialArgs = {
inputs = inputs // {
nathan-home-manager = import ./home-manager/default.nix;
tokyo-night-sddm-theme = self.tokyo-night-sddm-theme;
};
homeConfigurations = {
"nix-on-droid" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = "arm64-linux"; };
modules = [ ./home-manager/nathan ];
};
modules = [
./system-config/configuration/live
./system-config
];
};
};
}

View File

@@ -8,9 +8,16 @@
./impermanence
];
options.homeconfig.host = lib.options.mkOption {
type = lib.types.str;
default = null;
options.homeconfig = {
host = lib.options.mkOption {
type = lib.types.str;
default = null;
};
home-manager.enable = lib.options.mkOption {
type = lib.types.bool;
default = false;
};
};
config = {
@@ -40,5 +47,7 @@
programs.ssh.enable = true;
programs.home-manager.enable = config.homeconfig.home-manager.enable;
};
}

View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

Before

Width:  |  Height:  |  Size: 1007 KiB

After

Width:  |  Height:  |  Size: 1007 KiB

View File

Before

Width:  |  Height:  |  Size: 110 MiB

After

Width:  |  Height:  |  Size: 110 MiB

View File

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 191 KiB

View File

Before

Width:  |  Height:  |  Size: 874 KiB

After

Width:  |  Height:  |  Size: 874 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

Before

Width:  |  Height:  |  Size: 48 MiB

After

Width:  |  Height:  |  Size: 48 MiB

View File

Before

Width:  |  Height:  |  Size: 203 MiB

After

Width:  |  Height:  |  Size: 203 MiB

View File

Before

Width:  |  Height:  |  Size: 670 KiB

After

Width:  |  Height:  |  Size: 670 KiB

View File

Before

Width:  |  Height:  |  Size: 273 KiB

After

Width:  |  Height:  |  Size: 273 KiB

View File

Before

Width:  |  Height:  |  Size: 140 MiB

After

Width:  |  Height:  |  Size: 140 MiB

View File

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

View File

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

Before

Width:  |  Height:  |  Size: 36 MiB

After

Width:  |  Height:  |  Size: 36 MiB