nixos-config/nix/flake.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

2024-11-22 00:58:04 -05:00
{
2024-11-22 20:46:58 -05:00
description = "cy's flake";
2024-11-22 00:58:04 -05:00
inputs = {
2024-12-12 23:35:10 -05:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-11-23 21:41:28 -05:00
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-12-12 15:53:17 -05:00
master.url = "github:NixOS/nixpkgs/2ab79c44f98391b6ee2edfb11f4c7a57ce1404b5";
2024-11-22 00:58:04 -05:00
};
2024-12-12 23:35:10 -05:00
outputs = {
self,
nixpkgs,
sops-nix,
home-manager,
...
}@inputs: let
2024-12-09 02:14:11 -05:00
lib = nixpkgs.lib;
2024-12-12 23:35:10 -05:00
system = "x86_64-linux";
inherit (self) outputs;
2024-12-09 02:14:11 -05:00
in
{
2024-12-12 23:35:10 -05:00
packages = import ./pkgs nixpkgs.legacyPackages.${system};
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
2024-12-09 02:14:11 -05:00
nixosConfigurations = {
ytnix = lib.nixosSystem {
2024-12-12 23:35:10 -05:00
specialArgs = { inherit inputs outputs; };
2024-12-09 02:14:11 -05:00
modules = [
2024-12-12 23:35:10 -05:00
./nixos/configuration.nix
2024-12-09 02:14:11 -05:00
sops-nix.nixosModules.sops
];
};
2024-11-22 00:58:04 -05:00
};
2024-12-12 23:35:10 -05:00
homeConfigurations = {
"yt@ytnix" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./home-manager/home.nix
];
};
};
2024-11-22 00:58:04 -05:00
};
}