feat: Rename device
This commit is contained in:
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
|
||||
nixos-raspberrypi.lib.inject-overlays-global
|
||||
];
|
||||
networking.hostName = name;
|
||||
}
|
||||
./configuration.nix
|
||||
./${name}.nix
|
||||
{nixpkgs.overlays = overlays;}
|
||||
nur.modules.nixos.default
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
home-manager.nixosModules.home-manager
|
||||
inputs.arion.nixosModules.arion
|
||||
./configuration.nix
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
networking.hostName = "ude";
|
||||
# networking.hostName = "tsuba";
|
||||
networking.filrewall.logRefusedConnections = lib.mkDefault false;
|
||||
networking.useNetworkd = true;
|
||||
systemd.services.NetworkManager-wait-online.enable = false;
|
||||
Reference in New Issue
Block a user