61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
alejandra.url = "github:kamadorueda/alejandra/4.0.0";
|
|
alejandra.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
lazyvim.url = "github:pfassina/lazyvim-nix";
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
self,
|
|
nixpkgs,
|
|
sops-nix,
|
|
lazyvim,
|
|
alejandra,
|
|
...
|
|
}: {
|
|
nixosConfigurations.dogma-nixos = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
|
|
modules = [
|
|
./configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
{
|
|
environment.systemPackages = [alejandra.defaultPackage.${"x86_64-linux"}];
|
|
}
|
|
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.extraSpecialArgs = {
|
|
inherit inputs;
|
|
};
|
|
|
|
home-manager.users.mask = ./home.nix;
|
|
}
|
|
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
};
|
|
};
|
|
}
|