about summary refs log tree commit diff stats
path: root/flake.nix
blob: 4509c80ba823da48efb890f483780373066f38cc (plain) (blame)
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
35
36
37
# vim: ts=2
{
  description = "Nixos system config";

  inputs = import ./flake/inputs;

  outputs = {self, ...} @ inputs: let
    pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
    system = "x86_64-linux";
  in {
    nixosConfigurations =
      import ./outputs/nixosConfigurations {inherit inputs system;};

    packages."${system}" = {
      install = import ./bootstrap/install {
        inherit pkgs;
        inherit (inputs) shell-library;
      };
      activate = import ./bootstrap/activate {
        inherit pkgs;
        inherit (inputs) shell-library;
      };
    };

    apps."${system}" = {
      install = {
        type = "app";
        program = "${self.packages."${system}".install}/bin/install";
      };
      activate = {
        type = "app";
        program = "${self.packages."${system}".activate}/bin/activate";
      };
      default = self.apps."${system}".activate;
    };
  };
}