mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
59 lines
1.7 KiB
Nix
59 lines
1.7 KiB
Nix
{
|
|
description = "Flake for nixos configurations";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
|
home-manager = {
|
|
url = github:nix-community/home-manager/release-23.05;
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, home-manager, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
lib = nixpkgs.lib;
|
|
user = "tstarr";
|
|
in {
|
|
nixosConfigurations = {
|
|
kestrel = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit user; };
|
|
modules = [
|
|
./hosts/kestrel/configuration.nix
|
|
./hosts/kestrel/hardware.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = { inherit user; };
|
|
home-manager.users.${user} = {
|
|
imports = [ ./hosts/kestrel/home-configuration.nix ];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
torus = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit user; };
|
|
modules = [
|
|
./hosts/torus/configuration.nix
|
|
./hosts/torus/hardware.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = { inherit user; };
|
|
home-manager.users.${user} = {
|
|
imports = [ ./hosts/torus/home-configuration.nix ];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|