Skip to content

Commit 7481576

Browse files
committed
add new machine - canal
1 parent ee245b8 commit 7481576

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

flake.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@
142142
];
143143
};
144144

145+
canal = nixpkgs.lib.nixosSystem {
146+
inherit system;
147+
inherit specialArgs;
148+
modules = [
149+
agenix.nixosModules.default
150+
./hosts/canal
151+
];
152+
};
153+
145154
falaise = nixpkgs.lib.nixosSystem {
146155
inherit system;
147156
inherit specialArgs;
@@ -201,6 +210,10 @@
201210
hostname = "kier.as215207.net";
202211
profiles.system.path = deployPkgs.deploy-rs.lib.activate.nixos self.nixosConfigurations.kier;
203212
};
213+
canal = {
214+
hostname = "canal.as215207.net";
215+
profiles.system.path = deployPkgs.deploy-rs.lib.activate.nixos self.nixosConfigurations.canal;
216+
};
204217
};
205218
};
206219

hosts/canal/default.nix

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{ ... }:
2+
{
3+
4+
imports = [
5+
../../modules/common.nix
6+
7+
./hardware-configuration.nix
8+
];
9+
10+
boot.loader = {
11+
systemd-boot.enable = true;
12+
efi.canTouchEfiVariables = true;
13+
};
14+
15+
motd.location = "amsterdam, nl";
16+
17+
networking = {
18+
hostName = "canal";
19+
interfaces.ens3 = {
20+
ipv4.addresses = [
21+
{
22+
address = "45.90.186.44";
23+
prefixLength = 24;
24+
}
25+
];
26+
ipv6.addresses = [
27+
{
28+
address = "2a14:3f87:6ba0:21::a";
29+
prefixLength = 64;
30+
}
31+
32+
# {
33+
# address = "2602:fbcf:df::1";
34+
# prefixLength = 48;
35+
# }
36+
# {
37+
# address = "2602:fbcf:d4::1";
38+
# prefixLength = 48;
39+
# }
40+
];
41+
};
42+
43+
defaultGateway = {
44+
address = "45.90.186.1";
45+
interface = "ens3";
46+
};
47+
defaultGateway6 = {
48+
address = "2a14:3f87:6ba0::1";
49+
interface = "ens3";
50+
};
51+
};
52+
53+
# services.pathvector = {
54+
# enable = true;
55+
# configFile = ./pathvector.yml;
56+
# };
57+
58+
# ======================== DO NOT CHANGE THIS ========================
59+
system.stateVersion = "25.05";
60+
# ======================== DO NOT CHANGE THIS ========================
61+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Do not modify this file! It was generated by ‘nixos-generate-config’
2+
# and may be overwritten by future invocations. Please make changes
3+
# to /etc/nixos/configuration.nix instead.
4+
{ config, lib, pkgs, modulesPath, ... }:
5+
6+
{
7+
imports =
8+
[ (modulesPath + "/profiles/qemu-guest.nix")
9+
];
10+
11+
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "ahci" "sr_mod" "virtio_blk" ];
12+
boot.initrd.kernelModules = [ ];
13+
boot.kernelModules = [ "kvm-amd" ];
14+
boot.extraModulePackages = [ ];
15+
16+
fileSystems."/" =
17+
{ device = "/dev/disk/by-uuid/aebb49ad-58f2-4115-9ad7-ef3f63ceb2c9";
18+
fsType = "ext4";
19+
};
20+
21+
fileSystems."/boot" =
22+
{ device = "/dev/disk/by-uuid/A654-57AF";
23+
fsType = "vfat";
24+
options = [ "fmask=0077" "dmask=0077" ];
25+
};
26+
27+
swapDevices = [ ];
28+
29+
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
30+
}

0 commit comments

Comments
 (0)