47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
# Home-Manager
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
|
nixosConfigurations = {
|
|
|
|
# Test host in VirtualBox
|
|
vbox-test = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/vbox-test/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
];
|
|
};
|
|
|
|
# Lenovo Thinkpad P14s Gen 2
|
|
p14s = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/p14s/configuration.nix
|
|
|
|
# Home-Manager
|
|
#inputs.home-manager.nixosModules.default
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.jan = import ./hosts/p14s/home.nix;
|
|
}
|
|
];
|
|
};
|
|
|
|
|
|
# Other hosts
|
|
|
|
};
|
|
};
|
|
}
|