Recreated flake files
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
flakeRoot,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@@ -11,11 +10,13 @@ let
|
|||||||
user = import ./henrov.nix;
|
user = import ./henrov.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
home-manager.users.${user.username} = {
|
||||||
# User-specific configurations
|
home.stateVersion = "25.11";
|
||||||
home-manager.users.${user.username} = {
|
home.username = user.username;
|
||||||
enable = true;
|
home.homeDirectory = user.homeDirectory;
|
||||||
homeDirectory = user.homeDirectory;
|
home.packages = with pkgs; [
|
||||||
};
|
direnv
|
||||||
|
git-extras
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+13
-20
@@ -49,39 +49,32 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
# Import machine-specific configurations
|
# Import machine-specific configurations
|
||||||
./assets/flake/machines/traveldroid/top.nix
|
./machine.nix
|
||||||
|
|
||||||
# Catppuccin theme module
|
# Catppuccin theme module
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
|
||||||
# Anchoring all the other nixes
|
# Anchoring all the other nixes
|
||||||
./generated/top.nix
|
./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 = {
|
specialArgs = { inherit user inputs; };
|
||||||
inherit user inputs;
|
|
||||||
flakeRoot = ./.;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
# 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:
|
userMachine:
|
||||||
let
|
|
||||||
parts = lib.splitString "@" userMachine;
|
|
||||||
username = builtins.elemAt parts 0;
|
|
||||||
machine = builtins.elemAt parts 1;
|
|
||||||
in
|
|
||||||
home-manager.lib.homeManagerConfiguration {
|
home-manager.lib.homeManagerConfiguration {
|
||||||
inherit system;
|
inherit system;
|
||||||
configuration = import ./user.nix {
|
configuration = import ./user.nix { inherit inputs user; };
|
||||||
inherit inputs user;
|
extraSpecialArgs = { inherit user inputs; };
|
||||||
pkgs = import nixpkgs { inherit system; };
|
|
||||||
};
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit user inputs;
|
|
||||||
flakeRoot = ./.;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user