mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 07:25:40 +00:00
62 lines
1.8 KiB
Nix
62 lines
1.8 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixcord = {
|
|
url = "github:kaylorben/nixcord";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote/v0.4.2";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixos-wsl = {
|
|
url = "github:nix-community/NixOS-WSL/main";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... } @ inputs:
|
|
let
|
|
rootPath = ./.;
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
nixos = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs rootPath; };
|
|
modules = [ ./hosts/nixos/configuration.nix ];
|
|
};
|
|
wsl = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs rootPath; };
|
|
modules = [ ./hosts/wsl/configuration.nix ];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"toast@nixos" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs rootPath; };
|
|
modules = [ ./home/hosts/nixos.nix ];
|
|
};
|
|
"toast@wsl" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs rootPath; };
|
|
modules = [ ./home/hosts/wsl.nix ];
|
|
};
|
|
};
|
|
|
|
packages.x86_64-linux.default = self.homeConfigurations."toast@nixos".activationPackage;
|
|
};
|
|
}
|