1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2024-11-27 20:21:11 +00:00
This commit is contained in:
neverness 2024-11-22 20:26:29 +09:00
parent daf6a83c3c
commit 11dd462059
2 changed files with 12 additions and 13 deletions

View file

@ -41,8 +41,9 @@
};
};
outputs = inputs: # THIS IS SEPARATES OUTPUTS FROM FLAKE
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
outputs = inputs:
with inputs;
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
imports = [ ./workst ];
};

View file

@ -4,6 +4,7 @@ let
userName = "nixzoid";
in {
flake = let
lp = inputs.nixpkgs.legacyPackages.x86_64-linux;
args = rec { # IMPORTS LET_IN FROM HOSTS TO ALL SYSTEM
# DIRECTORIES
flakeDir = "/persist/flake";
@ -22,18 +23,15 @@ in {
inherit inputs hostName userName;
};
in with inputs; {
nixosConfigurations = {
${hostName} = nixpkgs.lib.nixosSystem {
modules = [ ./host ];
specialArgs = args;
};
formatter = { x86_64-linux = lp.nixfmt; };
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
modules = [ ./host ];
specialArgs = args;
};
homeConfigurations = {
${userName} = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
modules = [ ./home ];
extraSpecialArgs = args;
};
homeConfigurations.${userName} = home-manager.lib.homeManagerConfiguration {
modules = [ ./home ];
extraSpecialArgs = args;
pkgs = lp;
};
};
}