nixos-config/flake.nix
2025-04-15 08:15:08 -04:00

60 lines
1.5 KiB
Nix

{
description = "lachrymal@NixOS";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
winapps = {
url = "github:winapps-org/winapps";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{
nixpkgs,
home-manager,
spicetify-nix,
winapps,
...
}:
{
nixosConfigurations.lachrymal-abg = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = { inherit inputs system; };
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
users.lach = import ./home/lach.nix;
extraSpecialArgs = {
inherit inputs;
inherit spicetify-nix;
};
};
}
(
{ pkgs, system, ... }:
{
nix.settings = {
substituters = [ "https://winapps.cachix.org" ];
trusted-public-keys = [ "winapps.cachix.org-1:HI82jWrXZsQRar/PChgIx1unmuEsiQMQq+zt05CD36g=" ];
};
environment.systemPackages = [
winapps.packages."${system}".winapps
winapps.packages."${system}".winapps-launcher
];
}
)
];
};
};
}