101 lines
2.7 KiB
Nix
101 lines
2.7 KiB
Nix
{
|
|
description = "Nixos configuration for Xeovalyte";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-24.11";
|
|
|
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-24.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
|
apple-fonts.url = "github:lyndeno/apple-fonts.nix";
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, home-manager, nix-colors, apple-fonts, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
overlay-unstable = final: prev: {
|
|
unstable = import nixpkgs-unstable {
|
|
config.allowUnfree = true;
|
|
localSystem = { inherit system; };
|
|
};
|
|
};
|
|
in
|
|
{
|
|
# Laptop Configuration
|
|
nixosConfigurations = {
|
|
xv-laptop = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/laptop
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"xeovalyte@xv-laptop" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs nix-colors; };
|
|
modules = [
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/laptop/home.nix
|
|
];
|
|
};
|
|
};
|
|
|
|
nixosConfigurations = {
|
|
xv-desktop = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/desktop
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.backupFileExtension = "backup";
|
|
home-manager.extraSpecialArgs = { inherit inputs nix-colors; };
|
|
home-manager.users.xeovalyte.imports = [ ./hosts/desktop/home.nix ];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
# pm01vm01 Configuration
|
|
nixosConfigurations = {
|
|
pm01vm01 = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/pm01vm01
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"xeovalyte@pm01vm01" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs nix-colors; };
|
|
modules = [
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/pm01vm01/home.nix
|
|
];
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|
|
|