134 lines
3.9 KiB
Nix
134 lines
3.9 KiB
Nix
{
|
|
description = "NixOS configuration";
|
|
|
|
inputs = {
|
|
# NixOS official package source
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.11";
|
|
# The `follows` keyword in inputs is used for inheritance.
|
|
# Here, `inputs.nixpkgs` of home-manager is kept consistent with
|
|
# the `inputs.nixpkgs` of the current flake,
|
|
# to avoid problems caused by different versions of nixpkgs.
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
locutus.url = "git+https://git.figtree.dev/alex/locutus";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
|
nixosConfigurations = {
|
|
case = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
|
|
./hosts/case/configuration.nix
|
|
|
|
# enable home manager
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.alex = import ./alex/home.nix;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to
|
|
# home.nix
|
|
home-manager.extraSpecialArgs = { inherit inputs; isDesktop=true; };
|
|
}
|
|
];
|
|
};
|
|
count = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
|
|
./hosts/count/configuration.nix
|
|
|
|
# enable home manager
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.alex = import ./alex/home.nix;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to
|
|
# home.nix
|
|
home-manager.extraSpecialArgs = { inherit inputs; isDesktop=true; };
|
|
}
|
|
];
|
|
};
|
|
armitage = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
|
|
./hosts/armitage/configuration.nix
|
|
|
|
# enable home manager
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.alex = import ./alex/home.nix;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to
|
|
# home.nix
|
|
home-manager.extraSpecialArgs = { inherit inputs; isDesktop=true; };
|
|
}
|
|
];
|
|
};
|
|
alt = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
|
|
./hosts/alt/configuration.nix
|
|
|
|
# enable home manager
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.alex = import ./alex/home.nix;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to
|
|
# home.nix
|
|
home-manager.extraSpecialArgs = { inherit inputs; isDesktop=false; };
|
|
}
|
|
];
|
|
};
|
|
nightcity = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
|
|
./hosts/nightcity/configuration.nix
|
|
|
|
# enable home manager
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.alex = import ./alex/home.nix;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to
|
|
# home.nix
|
|
home-manager.extraSpecialArgs = { inherit inputs; isDesktop=false; };
|
|
}
|
|
];
|
|
};
|
|
# other hosts...
|
|
};
|
|
};
|
|
}
|