mirror of
https://git.sr.ht/~neverness/ultima
synced 2024-12-29 01:13:53 +00:00
72 lines
1.2 KiB
Nix
72 lines
1.2 KiB
Nix
{
|
|
inputs,
|
|
lib,
|
|
# VARIABLES
|
|
disk ? null,
|
|
hostName ? "sus",
|
|
userName ? "amogus",
|
|
flakeDir ? null,
|
|
is ? null,
|
|
theme ? "horizon-dark",
|
|
image ? "train",
|
|
# SYSINFO
|
|
plfrm ? "x86_64-linux",
|
|
ver ? "24.05",
|
|
dev,
|
|
...
|
|
}:
|
|
let
|
|
# OTHER
|
|
inherit (inputs.nixpkgs.lib) nixosSystem;
|
|
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
|
pkgs = inputs.nixpkgs.legacyPackages.${plfrm};
|
|
# NEEDS
|
|
sec = import ./secrets.nix;
|
|
x =
|
|
import ./options.nix {
|
|
inherit
|
|
inputs
|
|
pkgs
|
|
lib
|
|
;
|
|
}
|
|
// {
|
|
inherit
|
|
# VARIABLES
|
|
disk
|
|
hostName
|
|
userName
|
|
flakeDir
|
|
is
|
|
# CUSTOMIZE
|
|
theme
|
|
image
|
|
# SYSINFA
|
|
plfrm
|
|
ver
|
|
dev
|
|
sec # SECRETS
|
|
;
|
|
};
|
|
# ARGS
|
|
args = { inherit x inputs; };
|
|
in
|
|
{
|
|
# CONFIGURATION
|
|
nixosConfigurations.${hostName} = nixosSystem {
|
|
modules = [
|
|
../modules/nixos
|
|
../${hostName}/host
|
|
];
|
|
specialArgs = args;
|
|
};
|
|
homeConfigurations.${userName} = homeManagerConfiguration {
|
|
modules = [
|
|
../modules/home
|
|
../${hostName}/home
|
|
];
|
|
extraSpecialArgs = args;
|
|
inherit pkgs;
|
|
};
|
|
}
|