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
|
2025-01-27 15:38:40 +03:00
|
|
|
nixosConfigurations.dixxe-nixos = nixpkgs.lib.nixosSystem {
|
2024-10-14 18:43:31 +03:00
|
|
|
specialArgs = {
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
inherit inputs system;
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
./nixos/configuration.nix
|
|
|
|
inputs.stylix.nixosModules.stylix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2025-01-27 15:38:40 +03:00
|
|
|
homeConfigurations.dixxe = home-manager.lib.homeManagerConfiguration {
|
2024-10-14 18:43:31 +03:00
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
modules = [
|
|
|
|
./home-manager/home.nix
|
|
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
|
|
inputs.stylix.homeManagerModules.stylix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|