aboutsummaryrefslogtreecommitdiff
path: root/nixos/.flake/flake.org
blob: 1e3c71b4358ec50e506e04b8687abf107e454068 (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 :tangle ~/.flake/flake.nix :mkdirp yes
  {
    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.jane = import ./home/core.nix;
  	        }
        ];
      };
    };
  }
#+end_src