1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-01 15:53:52 +00:00
ultima/wyswort/default.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2024-11-21 09:24:15 +00:00
{ inputs, ... }:
let
hostName = "wyswort";
userName = "megamozg";
in
{
flake =
let
args = rec {
# IMPORTS LET_IN FROM HOSTS TO ALL SYSTEM
# DIRECTORIES
flakeDir = "/persist/flake";
homeDir = "${flakeDir}/modules/home";
nixosDir = "${flakeDir}/modules/nixos";
# OTHER
True = {
enable = true;
};
False = {
enable = false;
};
wm = {
sh = "Hyprland";
bar = "hyprland";
};
# SYSINFO
stateVersion = "24.05"; # IDK
platform = "x86_64-linux";
inherit inputs hostName userName;
2024-11-21 09:24:15 +00:00
};
in
with inputs;
{
nixosConfigurations = {
${hostName} = nixpkgs.lib.nixosSystem {
modules = [ ./host ];
specialArgs = args;
};
2024-11-21 09:24:15 +00:00
};
homeConfigurations = {
${userName} = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${platform};
modules = [ ./home ];
extraSpecialArgs = args;
};
2024-11-21 09:24:15 +00:00
};
};
}