-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
113 lines (109 loc) · 3.22 KB
/
flake.nix
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
#nixpkgs-master.url = "github:NixOS/nixpkgs/master";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/nur";
plover-flake.url = "github:dnaq/plover-flake";
};
outputs =
{ self
, nixpkgs
#, nixpkgs-master
, home-manager
, nur
, plover-flake
,
} @ inputs:
let
overlays = system:
let
pkgs-master = null; #nixpkgs-master.legacyPackages.${system};
in
[
nur.overlay
(self: super: {
discord =
(super.discord.override { withOpenASAR = true; withVencord = true; });
electron_25-bin =
(super.electron_25-bin.overrideAttrs { meta.knownVulnerabilities = [ ]; });
electron_25 = self.electron_25-bin;
plover-from-flake = plover-flake.packages.${system}.plover;
})
];
mkHome =
{ config
, system
, username
, extraSpecialArgs ? { }
}:
home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
modules = [
{
home = {
inherit username;
homeDirectory = "/home/${username}";
stateVersion = "21.11";
};
nixpkgs.overlays = (overlays system);
}
config
];
inherit extraSpecialArgs;
};
in
{
homeConfigurations.crostini = mkHome {
config = ./home-manager/crostini.nix;
system = "x86_64-linux";
username = "user";
};
homeConfigurations.parrot = mkHome {
config = ./home-manager/parrot.nix;
system = "x86_64-linux";
username = "user";
};
homeConfigurations.redbox12 = mkHome {
config = ./home-manager/redbox.nix;
system = "x86_64-linux";
username = "spencer";
};
homeConfigurations.laptop = mkHome {
config = ./home-manager/laptop.nix;
system = "x86_64-linux";
username = "spencer";
extraSpecialArgs = {
system-nixos-config = self.nixosConfigurations.sppmit;
};
};
homeConfigurations.scuffedpad = mkHome {
config = ./home-manager/scuffedpad.nix;
system = "x86_64-linux";
username = "spencer";
};
homeConfigurations.vps = mkHome {
config = ./home-manager/vps.nix;
system = "x86_64-linux";
username = "spencer";
};
nixosConfigurations.redbox12 = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [ ./nixos/redbox12/configuration.nix ];
};
nixosConfigurations.sppmit = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [ ./nixos/laptop/configuration.nix ];
};
nixosConfigurations.scuffedpad = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [ ./nixos/scuffedpad/configuration.nix ];
};
};
}