2024-03-09 17:18:36 +01:00
|
|
|
{
|
|
|
|
description = "Nixos configuration for Xeovalyte";
|
|
|
|
|
|
|
|
inputs = {
|
2024-06-02 12:10:28 +02:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-24.05";
|
2024-03-09 17:18:36 +01:00
|
|
|
|
|
|
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
home-manager = {
|
2024-06-02 12:10:28 +02:00
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
2024-03-09 17:18:36 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, home-manager, nix-colors, ... }:
|
|
|
|
let
|
2024-05-21 10:58:33 +02:00
|
|
|
system = "x86_64-linux";
|
2024-03-09 17:18:36 +01:00
|
|
|
overlay-unstable = final: prev: {
|
2024-05-21 10:58:33 +02:00
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
config.allowUnfree = true;
|
|
|
|
localSystem = { inherit system; };
|
|
|
|
};
|
2024-03-09 17:18:36 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
2024-03-12 21:24:29 +01:00
|
|
|
xv-laptop = nixpkgs.lib.nixosSystem {
|
2024-03-09 17:18:36 +01:00
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
|
|
|
|
./hosts/laptop
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
2024-06-25 13:11:30 +02:00
|
|
|
home-manager.extraSpecialArgs = { inherit inputs nix-colors; };
|
2024-03-09 17:18:36 +01:00
|
|
|
home-manager.users.xeovalyte.imports = [ ./hosts/laptop/home.nix ];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-06-25 13:11:30 +02:00
|
|
|
|
2024-03-12 21:24:29 +01:00
|
|
|
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;
|
2024-06-25 13:11:30 +02:00
|
|
|
home-manager.extraSpecialArgs = { inherit inputs nix-colors; };
|
2024-03-12 21:24:29 +01:00
|
|
|
home-manager.users.xeovalyte.imports = [ ./hosts/desktop/home.nix ];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-06-25 13:11:30 +02:00
|
|
|
|
|
|
|
nixosConfigurations = {
|
|
|
|
vnix-ctr = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
({ config, pkgs, ... }: {
|
|
|
|
nixpkgs.overlays = [ overlay-unstable ];
|
|
|
|
networking.hostName = "vnix-ctn01";
|
|
|
|
})
|
|
|
|
|
|
|
|
./hosts/vnix-ctr
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.extraSpecialArgs = { inherit inputs nix-colors; };
|
|
|
|
home-manager.users.xeovalyte.imports = [ ./hosts/vnix-ctr/home.nix ];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-03-09 17:18:36 +01:00
|
|
|
};
|
|
|
|
}
|