s/color/theme

This commit is contained in:
iFargle 2024-01-06 21:48:55 +09:00
parent 8d217624df
commit a7833f9c6c

View file

@ -22,11 +22,11 @@
username ? "albert", username ? "albert",
desktop ? null, desktop ? null,
platform ? "x86_64-linux", platform ? "x86_64-linux",
color ? "default", theme ? "default",
type ? "default" type ? "default"
}: inputs.home-manager.lib.homeManagerConfiguration { }: inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.${platform}; pkgs = inputs.nixpkgs.legacyPackages.${platform};
extraSpecialArgs = { inherit inputs outputs desktop hostname platform username hmStateVersion color; }; extraSpecialArgs = { inherit inputs outputs desktop hostname platform username hmStateVersion theme; };
modules = [ modules = [
../home-manager/${type}.nix ../home-manager/${type}.nix
]; ];
@ -39,10 +39,10 @@
desktop ? null, desktop ? null,
gpu ? null, gpu ? null,
platform ? "x86_64-linux", platform ? "x86_64-linux",
color ? "default", theme ? "default",
type ? "default" type ? "default"
}: inputs.nixpkgs.lib.nixosSystem { }: inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform color; }; specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme; };
modules = [ modules = [
# Types are 'default', 'small', and 'minimal' # Types are 'default', 'small', and 'minimal'
../nixos/${type}.nix ../nixos/${type}.nix
@ -58,10 +58,10 @@
desktop ? null, desktop ? null,
platform ? "x86_64-linux", platform ? "x86_64-linux",
gpu ? null, gpu ? null,
color ? "default", theme ? "default",
format format
}: inputs.nixos-generators.nixosGenerate { }: inputs.nixos-generators.nixosGenerate {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu platform color format; }; specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu platform theme format; };
system = platform; system = platform;
format = format; format = format;
@ -71,7 +71,7 @@
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote inputs.lanzaboote.nixosModules.lanzaboote
inputs.home-manager.nixosModules.home-manager { inputs.home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu platform color format; }; home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu platform theme format; };
home-manager.users."${username}" = import ../home-manager; home-manager.users."${username}" = import ../home-manager;
} }
]; ];
@ -84,11 +84,11 @@
desktop ? null, desktop ? null,
platform ? "x86_64-linux", platform ? "x86_64-linux",
gpu ? null, gpu ? null,
color ? "default", theme ? "default",
format format
}: }:
inputs.nixos-generators.nixosGenerate { inputs.nixos-generators.nixosGenerate {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu platform color format; }; specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu platform theme format; };
system = platform; system = platform;
format = format; format = format;