formatted the code with alejandra

This commit is contained in:
2024-03-03 02:11:14 +05:30
parent 0528e06873
commit ef89207879
34 changed files with 1035 additions and 976 deletions

179
flake.nix
View File

@ -16,100 +16,103 @@
nur.url = "github:nix-community/nur";
};
outputs = { self, nixpkgs, home-manager, ... } @ inputs:
let
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
];
username = "tux";
in
{
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: let
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
];
username = "tux";
in {
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
# Custom packages and modifications, exported as overlays
overlays = import ./overlays { inherit inputs; };
# Custom packages and modifications, exported as overlays
overlays = import ./overlays {inherit inputs;};
# NixOS configuration entrypoint
# 'nixos-rebuild switch --flake .#your-hostname'
nixosConfigurations = {
canopus = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs username; };
modules = [
./hosts/canopus
# NixOS configuration entrypoint
# 'nixos-rebuild switch --flake .#your-hostname'
nixosConfigurations = {
canopus = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs username;};
modules = [
./hosts/canopus
./modules/nixos/desktop/awesome
./modules/nixos/desktop/hyprland
./modules/nixos/virtualisation
./modules/nixos/steam.nix
./modules/nixos/desktop/awesome
./modules/nixos/desktop/hyprland
./modules/nixos/virtualisation
./modules/nixos/steam.nix
home-manager.nixosModules.home-manager
{
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs outputs username; };
home-manager.users.${username} = {
imports = [
./modules/home-manager
./modules/home-manager/hyprland
./modules/home-manager/waybar
./home/tux
];
};
}
];
};
controller = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs username; };
modules = [
./hosts/controller
./modules/nixos/headscale.nix
home-manager.nixosModules.home-manager
{
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs outputs username; };
home-manager.users.${username} = {
imports = [
./modules/home-manager
./home/tux
];
};
}
];
};
wsl = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs username; };
modules = [
./hosts/wsl
home-manager.nixosModules.home-manager
{
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs outputs username; };
home-manager.users.${username} = {
imports = [
./modules/home-manager
./home/tux
];
};
}
];
};
home-manager.nixosModules.home-manager
{
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
home-manager.users.${username} = {
imports = [
./modules/home-manager
./modules/home-manager/hyprland
./modules/home-manager/waybar
./home/tux
];
};
}
];
};
# Standalone home-manager configuration entrypoint
# home-manager switch --flake .#your-username@your-hostname'
homeConfigurations = {
"${username}@canopus" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs username; };
modules = [
./modules/home-manager
];
};
controller = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs username;};
modules = [
./hosts/controller
./modules/nixos/headscale.nix
home-manager.nixosModules.home-manager
{
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
home-manager.users.${username} = {
imports = [
./modules/home-manager
./home/tux
];
};
}
];
};
wsl = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs username;};
modules = [
./hosts/wsl
home-manager.nixosModules.home-manager
{
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
home-manager.users.${username} = {
imports = [
./modules/home-manager
./home/tux
];
};
}
];
};
};
# Standalone home-manager configuration entrypoint
# home-manager switch --flake .#your-username@your-hostname'
homeConfigurations = {
"${username}@canopus" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {inherit inputs outputs username;};
modules = [
./modules/home-manager
];
};
};
};
}