tangled
alpha
login
or
join now
matthew-hre.com
/
flake
0
fork
atom
My NixOS configuration (mirror)
0
fork
atom
overview
issues
pulls
pipelines
feat: tidied up flake confug
matthew-hre.com
6 months ago
34d11fa4
c50b37d7
+31
-51
1 changed file
expand all
collapse all
unified
split
flake.nix
+31
-51
flake.nix
···
36
36
home-manager,
37
37
nixpkgs,
38
38
...
39
39
-
}: {
40
40
-
nixosConfigurations = {
41
41
-
toad = nixpkgs.lib.nixosSystem {
42
42
-
system = "x86_64-linux";
39
39
+
}: let
40
40
+
system = "x86_64-linux";
43
41
44
44
-
specialArgs = {
45
45
-
inherit inputs;
46
46
-
hostname = "toad";
47
47
-
};
42
42
+
mkHost = hostname: modules:
43
43
+
nixpkgs.lib.nixosSystem {
44
44
+
inherit system;
48
45
49
49
-
modules = [
50
50
-
./hosts/toad/configuration.nix
51
51
-
home-manager.nixosModules.home-manager
52
52
-
{
53
53
-
environment.systemPackages = [
54
54
-
ghostty.packages.x86_64-linux.default
55
55
-
];
56
56
-
nixpkgs.overlays = [
57
57
-
inputs.niri.overlays.niri
58
58
-
];
59
59
-
home-manager.useGlobalPkgs = true;
60
60
-
home-manager.useUserPackages = true;
61
61
-
home-manager.extraSpecialArgs = {
62
62
-
inherit inputs;
63
63
-
hostname = "toad";
64
64
-
};
65
65
-
home-manager.users.matthew_hre = import ./home/default.nix;
66
66
-
}
67
67
-
];
68
68
-
};
69
69
-
thwomp = nixpkgs.lib.nixosSystem {
70
70
-
system = "x86_64-linux";
46
46
+
specialArgs = {inherit inputs hostname;};
71
47
72
72
-
specialArgs = {
73
73
-
inherit inputs;
74
74
-
hostname = "thwomp";
75
75
-
};
48
48
+
modules =
49
49
+
modules
50
50
+
++ [
51
51
+
home-manager.nixosModules.home-manager
52
52
+
{
53
53
+
environment.systemPackages = [
54
54
+
ghostty.packages.${system}.default
55
55
+
];
76
56
77
77
-
modules = [
78
78
-
./hosts/thwomp/configuration.nix
79
79
-
home-manager.nixosModules.home-manager
80
80
-
{
81
81
-
environment.systemPackages = [
82
82
-
ghostty.packages.x86_64-linux.default
83
83
-
];
84
84
-
home-manager.useGlobalPkgs = true;
85
85
-
home-manager.useUserPackages = true;
86
86
-
home-manager.extraSpecialArgs = {
87
87
-
inherit inputs;
88
88
-
hostname = "thwomp";
89
89
-
};
90
90
-
home-manager.users.matthew_hre = import ./home/default.nix;
91
91
-
}
92
92
-
];
57
57
+
home-manager = {
58
58
+
useGlobalPkgs = true;
59
59
+
useUserPackages = true;
60
60
+
extraSpecialArgs = {inherit inputs hostname;};
61
61
+
users.matthew_hre = import ./home/default.nix;
62
62
+
};
63
63
+
}
64
64
+
];
93
65
};
66
66
+
in {
67
67
+
nixosConfigurations = {
68
68
+
toad = mkHost "toad" [
69
69
+
./hosts/toad/configuration.nix
70
70
+
{nixpkgs.overlays = [inputs.niri.overlays.niri];}
71
71
+
];
72
72
+
thwomp = mkHost "thwomp" [./hosts/thwomp/configuration.nix];
94
73
};
95
95
-
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
74
74
+
75
75
+
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
96
76
};
97
77
}