51 lines
1.2 KiB
Nix
51 lines
1.2 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";
|
|
};
|
|
|
|
# Stylix - system-wide colorscheming and typography for NixOS
|
|
# See: https://github.com/danth/stylix
|
|
stylix.url = "github:danth/stylix";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, stylix, ... }@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 = [
|
|
stylix.nixosModules.stylix ./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
|
|
|
|
};
|
|
};
|
|
}
|