aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
blob: 28781de9f5e46c7ebbc728aea195c0d2932c13d2 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
  description = "nipsy's NixOS configuration";

  inputs = {
    disko = {
      url = "github:nix-community/disko";
      inputs.nixpkgs.follows = "nixpkgs-unstable";
    };

    home-manager-stable = {
      url = "github:nix-community/home-manager/release-23.11";
      inputs.nixpkgs.follows = "nixpkgs-stable";
    };

    home-manager-unstable = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs-unstable";
    };

    nixos-hardware.url = "github:nixos/nixos-hardware";

    nixpkgs-stable.url = "github:nixos/nixpkgs/release-23.11";
    nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";

    sops-nix = {
      url = "github:Mic92/sops-nix";
      inputs.nixpkgs.follows = "nixpkgs-unstable";
    };
  };

  outputs = inputs@{ home-manager-stable, home-manager-unstable, nixos-hardware, nixpkgs-stable, nixpkgs-unstable, sops-nix, ... }: rec {
    nixosConfigurations = {
      arrakis = nixpkgs-unstable.lib.nixosSystem {
        pkgs = pkgs-unstable;
        #specialArgs = inputs;
        system = "x86_64-linux";
        modules = [
          ./hosts/arrakis
          home-manager-unstable.nixosModules.home-manager {
            home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
            home-manager.users.root = import ./home/root/arrakis.nix;
            home-manager.users.nipsy = import ./home/nipsy/arrakis.nix;
          }
          sops-nix.nixosModules.sops
        ];
      };

      darkstar = nixpkgs-unstable.lib.nixosSystem {
        pkgs = pkgs-unstable;
        #specialArgs = inputs;
        system = "x86_64-linux";
        modules = [
          ./hosts/darkstar
          home-manager-unstable.nixosModules.home-manager {
            home-manager.users.root = import ./home/root/darkstar.nix;
            home-manager.users.nipsy = import ./home/nipsy/darkstar.nix;
          }
          sops-nix.nixosModules.sops
        ];
      };

      ginaz = nixpkgs-unstable.lib.nixosSystem {
        pkgs = pkgs-unstable;
        #specialArgs = inputs;
        system = "x86_64-linux";
        modules = [
          ./hosts/ginaz
          home-manager-unstable.nixosModules.home-manager {
            home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
            home-manager.users.root = import ./home/root/ginaz.nix;
            home-manager.users.nipsy = import ./home/nipsy/ginaz.nix;
          }
          nixos-hardware.nixosModules.lenovo-yoga-7-14ARH7-amdgpu
          sops-nix.nixosModules.sops
        ];
      };

      kaitain = nixpkgs-unstable.lib.nixosSystem {
        pkgs = pkgs-unstable;
        system = "x86_64-linux";
        modules = [
          ./hosts/kaitain
          home-manager-unstable.nixosModules.home-manager {
            home-manager.users.root = import ./home/root/kaitain.nix;
            home-manager.users.nipsy = import ./home/nipsy/kaitain.nix;
          }
        ];
      };

      richese = nixpkgs-unstable.lib.nixosSystem {
        pkgs = pkgs-unstable;
        system = "x86_64-linux";
        modules = [
          ./hosts/richese
          home-manager-unstable.nixosModules.home-manager {
            home-manager.users.root = import ./home/root/richese.nix;
            home-manager.users.nipsy = import ./home/nipsy/richese.nix;
          }
        ];
      };
    };

    pkgs-stable = import nixpkgs-stable {
      system = "x86_64-linux";
      config.allowUnfree = true;
      overlays = [(import ./pkgs)];
    };

    pkgs-unstable = import nixpkgs-unstable {
      system = "x86_64-linux";
      config.allowUnfree = true;
      overlays = [(import ./pkgs)];
    };
  };
}