53 lines
1.6 KiB
Nix
53 lines
1.6 KiB
Nix
{
|
|
description = "My flakes configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
nixos-cosmic = {
|
|
url = "github:lilyinstarlight/nixos-cosmic";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
zen-browser.url = "github:MarceColl/zen-browser-flake";
|
|
master.url = "github:NixOS/nixpkgs/master";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixos-cosmic, home-manager, hyprpanel, zen-browser, master, nixvim }@inputs:
|
|
{
|
|
nixosConfigurations = {
|
|
nixos = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit nixvim;};
|
|
specialArgs.inputs = inputs;
|
|
modules = [
|
|
{
|
|
nix.settings = {
|
|
substituters = [ "https://cosmic.cachix.org/" ];
|
|
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
|
|
};
|
|
nixpkgs.overlays =
|
|
[ inputs.hyprpanel.overlay ];
|
|
_module.args = { inherit inputs; };
|
|
}
|
|
nixos-cosmic.nixosModules.default
|
|
./configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.joshuaelm = {
|
|
imports = [ ./home.nix nixvim.homeManagerModules.nixvim];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|