Recreated flake files
This commit is contained in:
+13
-20
@@ -49,39 +49,32 @@
|
||||
inherit system;
|
||||
modules = [
|
||||
# Import machine-specific configurations
|
||||
./assets/flake/machines/traveldroid/top.nix
|
||||
./machine.nix
|
||||
|
||||
# Catppuccin theme module
|
||||
inputs.catppuccin.nixosModules.catppuccin
|
||||
|
||||
# Anchoring all the other nixes
|
||||
./generated/top.nix
|
||||
|
||||
# Home Manager module
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit user inputs; };
|
||||
}
|
||||
];
|
||||
specialArgs = {
|
||||
inherit user inputs;
|
||||
flakeRoot = ./.;
|
||||
};
|
||||
specialArgs = { inherit user inputs; };
|
||||
}
|
||||
);
|
||||
|
||||
# Home Manager configurations for each user/machine
|
||||
homeConfigurations = lib.genAttrs (map (machine: user.username + "@" + machine) machines) (
|
||||
homeConfigurations = lib.genAttrs (map (machine: "${user.username}@${machine}") machines) (
|
||||
userMachine:
|
||||
let
|
||||
parts = lib.splitString "@" userMachine;
|
||||
username = builtins.elemAt parts 0;
|
||||
machine = builtins.elemAt parts 1;
|
||||
in
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
inherit system;
|
||||
configuration = import ./user.nix {
|
||||
inherit inputs user;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit user inputs;
|
||||
flakeRoot = ./.;
|
||||
};
|
||||
configuration = import ./user.nix { inherit inputs user; };
|
||||
extraSpecialArgs = { inherit user inputs; };
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user