dotfiles/nixos/flake/flake.nix.org
2025-03-05 22:17:31 -06:00

34 lines
886 B
Org Mode

#+title: Flake Root
I use the unstable branch of =nixpkgs=. This file defines the outputs for my configuration (system and home).
#+begin_src nix
{
description = "My NixOS Configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
home-manager,
...
}@inputs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./system/core.nix
home-manager.nixosModules.home-manager
{
home-manager.backupFileExtension = "bak";
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jjanzen = import ./home/core.nix;
}
];
};
};
}
#+end_src