blob: c8ee8dd64aa10ad3047a722be066beda4cc44ea4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#+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
|