Adding nerdfonts
This commit is contained in:
+65
-61
@@ -23,71 +23,75 @@
|
|||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{
|
inputs@{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
emacs-overlay,
|
emacs-overlay,
|
||||||
catppuccin,
|
catppuccin,
|
||||||
zen-browser,
|
zen-browser,
|
||||||
hyprland,
|
hyprland,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
user = import ./assets/flake/users/henrov.nix;
|
user = import ./assets/flake/users/henrov.nix;
|
||||||
machines = [
|
machines = [
|
||||||
"traveldroid"
|
"traveldroid"
|
||||||
"maindroid"
|
"maindroid"
|
||||||
];
|
];
|
||||||
flakeRoot = ./.; # Define flakeRoot here
|
flakeRoot = ./.; # Define flakeRoot here
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = lib.genAttrs machines (
|
nixosConfigurations = lib.genAttrs machines (
|
||||||
machine:
|
machine:
|
||||||
lib.nixosSystem {
|
lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
|
(
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
inputs.nerdfonts.overlays.default
|
||||||
|
];
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
# Import machine-specific configurations
|
||||||
inputs.nerdfonts.overlays.default
|
./assets/flake/machines/traveldroid/top.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 flakeRoot; };
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
specialArgs = { inherit user inputs flakeRoot; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
# Import machine-specific configurations
|
homeConfigurations = lib.genAttrs (map (machine: "${user.username}@${machine}") machines) (
|
||||||
./assets/flake/machines/traveldroid/top.nix
|
userMachine:
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit system;
|
||||||
|
configuration = import ./user.nix { inherit inputs user flakeRoot; };
|
||||||
|
extraSpecialArgs = { inherit user inputs flakeRoot; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
# Catppuccin theme module
|
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
inherit (nixpkgs.legacyPackages.${system}) mkShell;
|
||||||
|
};
|
||||||
# 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 flakeRoot; };
|
|
||||||
}
|
|
||||||
];
|
|
||||||
specialArgs = { inherit user inputs flakeRoot; };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
homeConfigurations = lib.genAttrs (map (machine: "${user.username}@${machine}") machines) (
|
|
||||||
userMachine:
|
|
||||||
home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit system;
|
|
||||||
configuration = import ./user.nix { inherit inputs user flakeRoot; };
|
|
||||||
extraSpecialArgs = { inherit user inputs flakeRoot; };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
|
||||||
inherit (nixpkgs.legacyPackages.${system}) mkShell;
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user