Files
dotnix/flake.nix
T
2026-07-06 23:38:33 +02:00

53 lines
1.5 KiB
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
nvf.url = "path:./config/desktop/nvim";
};
outputs = { self, nixpkgs, home-manager, nvf, ... }@inputs:
let
system = "x86_64-linux";
in {
nixosConfigurations = {
# desktop
darkstar = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs system; };
modules = [
nvf.nixosModules.default
./hosts/darkstar/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
users.user = ./config/desktop/home/home.nix;
};
}
];
};
# thinkpad t14 gen 2i
molniya = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs system; };
modules = [
nvf.nixosModules.default
./hosts/molniya/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
users.user = ./config/desktop/home/home.nix;
};
}
];
};
};
};
}