summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 7144b0094ece612a6ac76cc94a583089686ade51 (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
{
  description = "scouckel config flake";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nur = {
      url = "github:nix-community/NUR";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    zen-browser = {
      url = "github:0xc000022070/zen-browser-flake";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    spicetify.url = "github:Gerg-L/spicetify-nix";
    auto-cpufreq = {
      url = "github:AdnanHodzic/auto-cpufreq";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nixos-hardware.url = "github:NixOS/nixos-hardware/master";
    nvf = {
      url = "github:NotAShelf/nvf/v0.8";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
  };

  outputs = { nixpkgs, home-manager, nix-flatpak, nur, auto-cpufreq, nixos-hardware, chaotic, ... }@inputs: {
    nixosConfigurations = {
    # desktop
      vecna = nixpkgs.lib.nixosSystem {
        specialArgs = {inherit inputs;};
        modules = [
          ./hosts/vecna/configuration.nix
          ./modules/nixos
          nix-flatpak.nixosModules.nix-flatpak
          home-manager.nixosModules.home-manager { 
            home-manager.useGlobalPkgs = true;
            home-manager.useUserPackages = true;
            home-manager.users.jck = {
              imports = [
                ./hosts/vecna/home.nix
                ./modules/home-manager
                inputs.nvf.homeManagerModules.default
              ];
            };
            home-manager.extraSpecialArgs = {inherit inputs;};
          }
          nur.modules.nixos.default
          chaotic.nixosModules.default
        ];
      };
      # laptop
      xanathar = nixpkgs.lib.nixosSystem {
        specialArgs = {inherit inputs;};
        modules = [
          ./hosts/xanathar/configuration.nix
          ./modules/nixos
          nix-flatpak.nixosModules.nix-flatpak
          home-manager.nixosModules.home-manager { 
            home-manager.useGlobalPkgs = true;
            home-manager.useUserPackages = true;
            home-manager.users.jck = {
              imports = [
                ./hosts/xanathar/home.nix
                ./modules/home-manager
                inputs.nvf.homeManagerModules.default
              ];
            };
            home-manager.extraSpecialArgs = {inherit inputs;};
          }
          nur.modules.nixos.default
          auto-cpufreq.nixosModules.default
          chaotic.nixosModules.default
        ];
      };
      # new laptop
      tiamat = nixpkgs.lib.nixosSystem {
        specialArgs = {inherit inputs;};
        modules = [
          ./hosts/tiamat/configuration.nix
          ./modules/nixos
          nix-flatpak.nixosModules.nix-flatpak
          home-manager.nixosModules.home-manager { 
            home-manager.useGlobalPkgs = true;
            home-manager.useUserPackages = true;
            home-manager.users.jck = {
              imports = [
                ./hosts/tiamat/home.nix
                ./modules/home-manager
                inputs.nvf.homeManagerModules.default
              ];
            };
            home-manager.extraSpecialArgs = {inherit inputs;};
          }
          nur.modules.nixos.default
          auto-cpufreq.nixosModules.default
          nixos-hardware.nixosModules.framework-13-7040-amd
          chaotic.nixosModules.default
        ];
      };
    };
  };
}