myNixosFlake/flake.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2024-10-14 18:43:31 +03:00
{
description = "Ficache's system flake";
inputs = {
2025-01-15 22:31:14 +03:00
2024-10-14 18:43:31 +03:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2025-01-15 22:31:14 +03:00
2024-10-14 18:43:31 +03:00
envycontrol.url = "github:bayasdev/envycontrol";
2025-01-15 22:31:14 +03:00
2024-10-14 18:43:31 +03:00
stylix.url = "github:danth/stylix";
2025-01-15 22:31:14 +03:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-14 18:43:31 +03:00
2025-01-15 22:31:14 +03:00
nixvim = {
2024-10-14 18:43:31 +03:00
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-01-15 22:31:14 +03:00
2024-10-14 18:43:31 +03:00
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
system = "x86_64-linux";
in {
# ficache-nixos - system hostname
nixosConfigurations.ficache-nixos = nixpkgs.lib.nixosSystem {
specialArgs = {
nixpkgs.config.allowUnfree = true;
inherit inputs system;
};
modules = [
./nixos/configuration.nix
inputs.stylix.nixosModules.stylix
];
};
homeConfigurations.ficache = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
modules = [
./home-manager/home.nix
inputs.nixvim.homeManagerModules.nixvim
inputs.stylix.homeManagerModules.stylix
];
};
};
}