also import clanInternals #102

Merged
clan-bot merged 4 commits from Mic92-main into main 2023-09-28 15:12:37 +00:00
5 changed files with 28 additions and 26 deletions

View File

@ -19,11 +19,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1695126263, "lastModified": 1695911872,
"narHash": "sha256-dnBg7BcynR/Wf2cEfWe9FkAcnAUFGKfYw1qpgeeSgKU=", "narHash": "sha256-rOP/0oFGYCJTQK5+xrG0ycst3epiZ6YRgSKJsBZjI0I=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "175119b72cfa37e252ea862379fe4521266277c5", "rev": "6fafae56b65800e1e0406319a5389a198b4f0308",
"revCount": 703, "revCount": 890,
"type": "git", "type": "git",
"url": "https://git.clan.lol/clan/clan-core" "url": "https://git.clan.lol/clan/clan-core"
}, },
@ -40,15 +40,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1694925805, "lastModified": 1695379860,
"narHash": "sha256-UNMivSc89undITtNoy6o6bf3Dck4v75rzGiMEXAPEB0=", "narHash": "sha256-ADsWLw33T/6APAoEfwPVkhuUHbH/BW/Jz5cgTgijsIs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "9ab96378f8cf602d5f3ce5a32f2c339509288d8e", "rev": "26cf7576b85fd0b4070d8bd84475021e01d63814",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "party",
"repo": "disko", "repo": "disko",
"type": "github" "type": "github"
} }
@ -60,11 +61,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1695039393, "lastModified": 1695864092,
"narHash": "sha256-HXvRPTSfQ/fCqxYGvWOc1duSBdXcQlrYvyno8YZbyHI=", "narHash": "sha256-Hu1SkFPqO7ND95AOzBkZE2jGXSYhfZ965C03O72Kbu8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "9f29cedac79d0acf07b6341f9112f46dec3abb8f", "rev": "19b62324663b6b9859caf7f335d232cf4f1f6a32",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -153,11 +154,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1694948089, "lastModified": 1695806987,
"narHash": "sha256-d2B282GmQ9o8klc22/Rbbbj6r99EnELQpOQjWMyv0rU=", "narHash": "sha256-fX5kGs66NZIxCMcpAGIpxuftajHL8Hil1vjHmjjl118=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5148520bfab61f99fd25fb9ff7bfbb50dad3c9db", "rev": "f3dab3509afca932f3f4fd0908957709bb1c1f57",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -186,11 +187,11 @@
"nixpkgs-stable": [] "nixpkgs-stable": []
}, },
"locked": { "locked": {
"lastModified": 1695101768, "lastModified": 1695284550,
"narHash": "sha256-1/j5/348l2+yxQUfkJCUpA6cDefS3H7V94kawk9uuRc=", "narHash": "sha256-z9fz/wz9qo9XePEvdduf+sBNeoI9QG8NJKl5ssA8Xl4=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "4356a5a0c12c9dc1b6bdde0631c7600d9377ed8b", "rev": "2f375ed8702b0d8ee2430885059d5e7975e38f78",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -206,11 +207,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1695000198, "lastModified": 1695864227,
"narHash": "sha256-9YlISJiL6/51ED67+N5ZB7xDgHD+trZUBqP7XERR0y4=", "narHash": "sha256-X3ADr3UE0Cws7yRLnMyo6VbBWrbkT8KMrds8TK6IYXw=",
"owner": "numtide", "owner": "numtide",
"repo": "srvos", "repo": "srvos",
"rev": "879201cbec8ea11e6d654b7ec91f35f061d07b47", "rev": "25cf328a2d83926dde264b6195d82bc6dcfb4b0c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -226,11 +227,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1694528738, "lastModified": 1695822946,
"narHash": "sha256-aWMEjib5oTqEzF9f3WXffC1cwICo6v/4dYKjwNktV8k=", "narHash": "sha256-IQU3fYo0H+oGlqX5YrgZU3VRhbt2Oqe6KmslQKUO4II=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "7a49c388d7a6b63bb551b1ddedfa4efab8f400d8", "rev": "720bd006d855b08e60664e4683ccddb7a9ff614a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -30,7 +30,8 @@ in
groupid=$(cut -d: -f3 < <(getent group nixuser)) groupid=$(cut -d: -f3 < <(getent group nixuser))
userid=$(cut -d: -f3 < <(getent passwd nixuser)) userid=$(cut -d: -f3 < <(getent passwd nixuser))
groupadd --prefix $(pwd) --gid "$groupid" nixuser groupadd --prefix $(pwd) --gid "$groupid" nixuser
useradd --prefix $(pwd) -m -d /tmp -u "$userid" -g "$groupid" -G nixuser nixuser emptypassword='$6$1ero.LwbisiU.h3D$GGmnmECbPotJoPQ5eoSTD6tTjKnSWZcjHoVTkxFLZP17W9hRi/XkmCiAMOfWruUwy8gMjINrBMNODc7cYEo4K.'
useradd --prefix $(pwd) -p "$emptypassword" -m -d /tmp -u "$userid" -g "$groupid" -G nixuser nixuser
cat <<NIX_CONFIG > etc/nix/nix.conf cat <<NIX_CONFIG > etc/nix/nix.conf
accept-flake-config = true accept-flake-config = true

View File

@ -1,6 +1,6 @@
{ self, inputs, ... }: { self, inputs, ... }:
{ {
flake.nixosConfigurations = inputs.clan-core.lib.buildClan { flake = inputs.clan-core.lib.buildClan {
directory = self; directory = self;
# Make flake available in modules # Make flake available in modules
specialArgs = { specialArgs = {

View File

@ -7,7 +7,7 @@
networking.hostName = "web01"; networking.hostName = "web01";
systemd.network.networks."10-uplink".networkConfig.Address = "2a01:4f9:3080:418b::1"; systemd.network.networks."10-uplink".networkConfig.Address = "2a01:4f9:3080:418b::1";
clan.networking.deploymentAddress = "clan.lol"; clan.networking.deploymentAddress = "root@clan.lol";
clan.networking.ipv4.address = "65.21.12.51"; clan.networking.ipv4.address = "65.21.12.51";
clan.networking.ipv4.gateway = "65.21.12.1"; clan.networking.ipv4.gateway = "65.21.12.1";
clan.networking.ipv6.address = config.systemd.network.networks."10-uplink".networkConfig.Address; clan.networking.ipv6.address = config.systemd.network.networks."10-uplink".networkConfig.Address;

View File

@ -3,4 +3,4 @@
set -euo pipefail set -euo pipefail
clan machines update clan.lol clan machines update web01