125 lines
3.1 KiB
Nix
125 lines
3.1 KiB
Nix
{
|
|
description = "my NixOS Config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
|
|
home-manager = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:nix-community/home-manager/release-25.11";
|
|
};
|
|
icons = {
|
|
url = "git+https://git.sr.ht/~sposito/icons";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim/nixos-25.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
secrets = {
|
|
url = "git@git.sr.ht/~sposito/secrets";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
|
|
Nixcloud = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
allowUnfree = false;
|
|
};
|
|
modules = [
|
|
./hosts/Nixcloud
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"thiago@Nixbook" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = {
|
|
inherit inputs outputs;
|
|
icons = inputs.icons;
|
|
sops = inputs.sops-nix;
|
|
secrets = inputs.secrets;
|
|
};
|
|
modules = [
|
|
./home-manager/home.nix
|
|
];
|
|
};
|
|
"thiago@Nixstation" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = {
|
|
inherit inputs outputs;
|
|
icons = inputs.icons;
|
|
sops = inputs.sops-nix;
|
|
secrets = inputs.secrets;
|
|
};
|
|
|
|
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 = "nixcloud";
|
|
path = self.nixosConfigurations.Nixcloud.config.system.build.toplevel;
|
|
}
|
|
{
|
|
name = "hm-nixbook";
|
|
path = self.homeConfigurations."thiago@Nixbook".activationPackage;
|
|
}
|
|
{
|
|
name = "hm-nixstation";
|
|
path = self.homeConfigurations."thiago@Nixstation".activationPackage;
|
|
}
|
|
];
|
|
|
|
};
|
|
}
|