rework home-manager file structure; add simple hyprland conf

This commit is contained in:
insects 2024-08-09 13:13:23 +02:00
parent c40c333078
commit b688a738d0
15 changed files with 144 additions and 100 deletions

View file

@ -24,20 +24,21 @@
"x86_64-linux"
"aarch64-darwin"
];
forEachSystem = f: lib.genAttrs systems (system: import nixpkgs {
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
pkgsFor = lib.genAttrs systems (system: import nixpkgs {
inherit system;
config.allowUnfree = true;
});
username = "lu";
in
{
inherit lib;
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
devShells = forEachSystem (pkgs: import ./shell.nix { inherit pkgs; });
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
overlays = import ./overlays { inherit inputs outputs; };
nixosModules = import ./modules/nixos;
homeManagerModules = import ./modules/home;
homeManagerModules = import ./modules/home-manager;
nixosConfigurations = {
enoko = lib.nixosSystem {
@ -49,19 +50,19 @@
};
homeConfigurations = {
"${username}@yukari" = lib.homeManagerConfiguration {
"lu@yukari" = lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs username; };
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./home/home.nix
./home/yukari.nix
];
};
"${username}@enoko" = lib.homeManagerConfiguration {
"lu@enoko" = lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs username; };
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./home/home.nix
./home/enoko.nix
];
};
};