feat: Rename device
This commit is contained in:
@@ -226,8 +226,8 @@
|
|||||||
isNix = true;
|
isNix = true;
|
||||||
isServer = true;
|
isServer = true;
|
||||||
};
|
};
|
||||||
ude = mkDevice {
|
tsuba = mkDevice {
|
||||||
name = "ude";
|
name = "tsuba";
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
user = "servius";
|
user = "servius";
|
||||||
hasGui = false;
|
hasGui = false;
|
||||||
@@ -295,7 +295,7 @@
|
|||||||
devices = nixos_devices;
|
devices = nixos_devices;
|
||||||
})
|
})
|
||||||
// (
|
// (
|
||||||
import ./nixos/ude {
|
import ./nixos/tsuba {
|
||||||
inherit inputs nixpkgs home-manager overlays nur nixos-rpi;
|
inherit inputs nixpkgs home-manager overlays nur nixos-rpi;
|
||||||
devices = rpi_devices;
|
devices = rpi_devices;
|
||||||
}
|
}
|
||||||
|
|||||||
48
nixos/tsuba/configuration.nix
Normal file
48
nixos/tsuba/configuration.nix
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
auto-optimise-store = true;
|
||||||
|
extra-experimental-features = "nix-command flakes auto-allocate-uids";
|
||||||
|
trusted-users = ["root" "fs0c131y" "remotebuilder"];
|
||||||
|
substituters = [
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
|
# "https://sh.darksailor.dev"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
# "mirai:bcVPoFGBZ0i7JAKMXIqLj2GY3CulLC4kP7rQyqes1RM="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
extraOptions = ''
|
||||||
|
build-users-group = nixbld
|
||||||
|
extra-nix-path = nixpkgs=flake:nixpkgs
|
||||||
|
builders-use-substitutes = true
|
||||||
|
secret-key-files = ${config.sops.secrets."builder/mirai/cache/private".path}
|
||||||
|
'';
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "daily";
|
||||||
|
options = "--delete-older-than 5d";
|
||||||
|
};
|
||||||
|
package = pkgs.nixVersions.latest;
|
||||||
|
distributedBuilds = true;
|
||||||
|
buildMachines = [
|
||||||
|
../../builders/mirai.nix
|
||||||
|
../../builders/shiro.nix
|
||||||
|
../../builders/tsuba.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
users.users.servius = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ["wheel"];
|
||||||
|
openssh.authorizedKeys.keyFiles = [
|
||||||
|
../../secrets/id_ed25519.pub
|
||||||
|
../../secrets/id_ios.pub
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -27,13 +27,15 @@
|
|||||||
nixpkgs-rpi
|
nixpkgs-rpi
|
||||||
nixos-raspberrypi.lib.inject-overlays-global
|
nixos-raspberrypi.lib.inject-overlays-global
|
||||||
];
|
];
|
||||||
|
networking.hostName = name;
|
||||||
}
|
}
|
||||||
|
./configuration.nix
|
||||||
|
./${name}.nix
|
||||||
{nixpkgs.overlays = overlays;}
|
{nixpkgs.overlays = overlays;}
|
||||||
nur.modules.nixos.default
|
nur.modules.nixos.default
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
inputs.arion.nixosModules.arion
|
inputs.arion.nixosModules.arion
|
||||||
./configuration.nix
|
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
networking.hostName = "ude";
|
# networking.hostName = "tsuba";
|
||||||
networking.filrewall.logRefusedConnections = lib.mkDefault false;
|
networking.filrewall.logRefusedConnections = lib.mkDefault false;
|
||||||
networking.useNetworkd = true;
|
networking.useNetworkd = true;
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
Reference in New Issue
Block a user