nix-config/flake.nix

66 lines
1.9 KiB
Nix
Raw Normal View History

2023-10-23 00:16:38 +02:00
{
2023-10-23 11:14:04 +02:00
description = "Jo's NixOS configuration";
2023-10-23 00:16:38 +02:00
inputs = {
# Nixpkgs
2023-10-25 12:12:59 +02:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Gnome testing branch (getting new major versions earlier)
# gnomeNixpkgs.url = "github:NixOS/nixpkgs/gnome";
2023-10-23 00:16:38 +02:00
# Home manager
2023-10-25 12:12:59 +02:00
home-manager.url = "github:nix-community/home-manager/master";
2023-10-23 00:16:38 +02:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-11-19 23:12:39 +01:00
# Catppuccinifier
catppuccinifier = {
url = "github:lighttigerXIV/catppuccinifier";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-23 00:16:38 +02:00
# TODO: Add any other flake you might need
# hardware.url = "github:nixos/nixos-hardware";
# Shameless plug: looking for a way to nixify your themes and make
# everything match nicely? Try nix-colors!
# nix-colors.url = "github:misterio77/nix-colors";
};
outputs = {
self,
nixpkgs,
home-manager,
2023-11-19 23:12:39 +01:00
catppuccinifier,
2023-10-23 00:16:38 +02:00
...
} @ inputs: let
inherit (self) outputs;
in {
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
# FIXME replace with your hostname
nixos = nixpkgs.lib.nixosSystem {
2023-11-19 23:12:39 +01:00
specialArgs = {inherit inputs outputs catppuccinifier;};
2023-10-23 00:16:38 +02:00
# > Our main nixos configuration file <
2023-10-25 12:12:59 +02:00
modules = [
./nixos/configuration.nix
./nixos/modules/desktop/kde.nix
];
2023-10-23 00:16:38 +02:00
};
};
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
"jo@nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = {inherit inputs outputs;};
# > Our main home-manager configuration file <
2023-10-25 12:12:59 +02:00
modules = [
./home-manager/home.nix
];
2023-10-23 00:16:38 +02:00
};
};
};
}