Files
nixos/flake.nix
T
biscuit b3d37d7b20 test
2025-05-27 17:22:13 -05:00

60 lines
1.4 KiB
Nix

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; # `follows` ensure it follows nixpkgs version
ags.url = "github:aylur/ags";
ags.inputs.nixpkgs.follows = "nixpkgs";
unlisted-fonts.url = "path:./custom/unlisted-fonts/";
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
# monolisa.inputs.nixpkgs.follows = "nixpkgs";
# fred-drake.url = "github:fred-drake/neovim";
# fred-drake.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
home-manager,
unlisted-fonts,
...
} @ inputs: let
info = import ./info.nix;
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
args =
{
inherit inputs system;
}
// info;
in {
nixosConfigurations = {
desktop = lib.nixosSystem {
specialArgs = args;
inherit system;
modules = [
./nixos/desktop/configuration.nix
];
};
};
homeConfigurations = {
desktop = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
overlays = [];
};
extraSpecialArgs = args;
modules = [./dotfiles/desktop/home.nix];
};
};
};
}