alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
flake: use new clan syntax
author
lassulus
date
3 years ago
(Sep 21, 2023, 10:56 PM CEST)
commit
831f9d00
831f9d00e0c6a5a2ee5ae38aa3e1c3d51eb9ac99
parent
fdf8ae47
fdf8ae4773539655d08bdb28e9b102cb0b353acd
+21
-14
1 changed file
Expand all
Collapse all
Unified
Split
flake.nix
+21
-14
flake.nix
View file
Reviewed
···
18
18
# stockholm.url = "path:/home/lass/sync/stockholm";
19
19
stockholm.inputs.nixpkgs.follows = "nixpkgs";
20
20
21
21
-
disko.url = "github:nix-community/disko";
21
21
+
# disko.url = "github:nix-community/disko/images";
22
22
+
disko.url = "git+file:/home/lass/src/disko/";
22
23
disko.inputs.nixpkgs.follows = "nixpkgs";
23
24
};
24
25
25
26
outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }:
27
27
+
let
28
28
+
clan = clan-core.lib.buildClan {
29
29
+
directory = self;
30
30
+
specialArgs.self = self;
31
31
+
machines = nixpkgs.lib.mapAttrs (machineName: _: {
32
32
+
33
33
+
imports = [
34
34
+
./nixos/machines/${machineName}/physical.nix
35
35
+
{
36
36
+
clanCore.machineName = machineName;
37
37
+
clanCore.secretStore = "password-store";
38
38
+
krebs.secret.directory = "/etc/secrets";
39
39
+
}
40
40
+
];
41
41
+
}) (builtins.readDir ./nixos/machines);
42
42
+
};
43
43
+
in
26
44
flake-parts.lib.mkFlake { inherit inputs; } {
27
45
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
28
46
imports = [
···
31
49
32
50
./tools/zsh.nix
33
51
];
34
34
-
flake.nixosConfigurations = nixpkgs.lib.mapAttrs (machineName: _: nixpkgs.lib.nixosSystem {
35
35
-
system = "x86_64-linux";
36
36
-
specialArgs.self = self;
37
37
-
modules = [
38
38
-
./nixos/machines/${machineName}/physical.nix
39
39
-
clan-core.nixosModules.clanCore
40
40
-
{
41
41
-
clanCore.machineName = machineName;
42
42
-
clanCore.secretStore = "password-store";
43
43
-
krebs.secret.directory = "/etc/secrets";
44
44
-
}
45
45
-
];
46
46
-
}) (builtins.readDir ./nixos/machines);
52
52
+
flake.nixosConfigurations = clan.nixosConfigurations;
53
53
+
flake.clanInternals = clan.clanInternals;
47
54
};
48
55
}