aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 7cfde2feb6ea5d68af424f8849bec45d466204ca (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
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
{
    description = "My nixos configuration";

    inputs = {
        nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
        home-manager = {
            url = "github:nix-community/home-manager/release-25.05";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        stylix = {
            url = "github:danth/stylix/release-25.05";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        spicetify-nix = {
            url = "github:Gerg-L/spicetify-nix";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        YATwm = {
            #url = "git+https://git.tehbox.org/cgit/boss/YATwm.git";
            #url = "github:BossCode45/YATwm";
            url = "git+file:///home/boss/Documents/Coding/WM/YATwm";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        STK = {
            url = "git+file:///home/boss/stk";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        # hyprland = {
        #     url = "github:hyprwm/Hyprland";
        #     inputs.nixpkgs.follows = "nixpkgs";
        # };
        hyprlock = {
            url = "github:hyprwm/hyprlock";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        nil = {
            url = "github:oxalica/nil";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        polymc = {
            url = "github:PolyMC/PolyMC";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        zen-browser = {
            url = "github:MarceColl/zen-browser-flake";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        nixcord = {
            url = "github:kaylorben/nixcord";
            inputs.nixpkgs.follows = "nixpkgs";
        };
        sops = {
            url = "github:Mic92/sops-nix";
            inputs.nixpkgs.follows = "nixpkgs";
        };
    };

    outputs = inputs@{self, nixpkgs, ... }: {
        nixosConfigurations = {
            nixy = nixpkgs.lib.nixosSystem {
                system = "x86_64-linux";
                specialArgs = {inherit inputs;};
                modules = [
                    ./my-pkgs
                    ./modules
                    
                    ./hardware-setups/tuf.nix
                    ./computers/nixy.nix
                    
                    inputs.home-manager.nixosModules.home-manager
                    {
                        home-manager.useGlobalPkgs = true;
                        home-manager.useUserPackages = true;

                        home-manager.users.boss = import ./home-manager/home.nix;
                        home-manager.extraSpecialArgs = {inherit inputs;};
                    }

                    inputs.stylix.nixosModules.stylix
                ];
            };
            nixnode = nixpkgs.lib.nixosSystem {
                system = "x86_64-linux";
                specialArgs = {inherit inputs;};
                modules = [
                    ./modules
                    ./hardware-setups/linode.nix
                    ./computers/nixnode.nix
                ];
            };
        };
        
        packages.x86_64-linux.teh-website = (nixpkgs.legacyPackages.x86_64-linux.callPackage ./website { });
    };

}