84 lines
2.3 KiB
Nix
84 lines
2.3 KiB
Nix
{
|
|
description = "my NixOS Config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:nix-community/home-manager/master";
|
|
};
|
|
icons = {
|
|
url = "git+https://git.sr.ht/~sposito/icons";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self
|
|
, nixpkgs
|
|
, home-manager
|
|
, ...
|
|
}@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
system = "x86_64-linux";
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
Nixbook = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
allowUnfree = true;
|
|
};
|
|
modules = [
|
|
./hosts/Nixbook
|
|
];
|
|
};
|
|
Nixstation = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
allowUnfree = true;
|
|
};
|
|
modules = [
|
|
./hosts/Nixstation
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"thiago@Nixbook" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = {
|
|
inherit inputs outputs;
|
|
icons = inputs.icons;
|
|
};
|
|
modules = [
|
|
./home-manager/home.nix
|
|
];
|
|
};
|
|
"thiago@Nixstation" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = {
|
|
inherit inputs outputs;
|
|
};
|
|
|
|
modules = [
|
|
./home-manager/nixstation.nix
|
|
];
|
|
};
|
|
};
|
|
# nix build .#checks.x86_64-linux
|
|
packages.${system}.all = nixpkgs.legacyPackages.${system}.linkFarm "all-builds" [
|
|
{ name = "nixbook"; path = self.nixosConfigurations.Nixbook.config.system.build.toplevel; }
|
|
{ name = "nixstation"; path = self.nixosConfigurations.Nixstation.config.system.build.toplevel; }
|
|
{ name = "hm-nixbook"; path = self.homeConfigurations."thiago@Nixbook".activationPackage; }
|
|
{ name = "hm-nixstation"; path = self.homeConfigurations."thiago@Nixstation".activationPackage; }
|
|
];
|
|
|
|
};
|
|
}
|