hosts/gluttony: init #119

Merged
vegardbm merged 3 commits from gluttony into main 2026-01-19 17:39:02 +01:00
Owner
No description provided.
vegardbm added 1 commit 2026-01-18 20:47:40 +01:00
initial
Some checks failed
Eval nix flake / evals (push) Failing after 2m46s
Eval nix flake / evals (pull_request) Failing after 3m58s
fa75913e4e
Owner

lgtm

lgtm
Owner

I think you're possibly missing the changes to values.nix?

I think you're possibly missing the changes to `values.nix`?
Owner

Also it probably needs to be registered in nixosConfigurations in flake.nix

Also it probably needs to be registered in `nixosConfigurations` in `flake.nix`
felixalb requested changes 2026-01-19 14:29:26 +01:00
Dismissed
felixalb left a comment
Owner

Looks good, I wrote a few comments but none of them are critically important.
Add the edits to values.nix and flake.nix, and maybe test without DHCP, and I think we should be good to go.

Looks good, I wrote a few comments but none of them are critically important. Add the edits to `values.nix` and `flake.nix`, and maybe test without DHCP, and I think we should be good to go.
@@ -0,0 +12,4 @@
(fp /base)
];
boot.loader.systemd-boot.enable = true;
Owner

Does this work? On ildkule, I believe we had to use grub2 for some reason. Very cool if it works.

Does this work? On [ildkule](https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/branch/main/hosts/ildkule/configuration.nix), I believe we had to use grub2 for some reason. Very cool if it works.
Author
Owner

I am pretty sure this works I can try to reboot again to confirm.

I am pretty sure this works I can try to reboot again to confirm.
Author
Owner

I am able to reboot the machine without issue, marking this as resolved.

I am able to reboot the machine without issue, marking this as resolved.
vegardbm marked this conversation as resolved
@@ -0,0 +23,4 @@
{
hostName = "gluttony";
tempAddresses = "disabled";
useDHCP = lib.mkForce true;
Owner

This is probably copied from ildkule, but I don't see why we would have both the hostConf.ipv4, hostConf.ipv4_internal and DHCP, as DHCP will probably just advertise the same as ipv4_internal but with incorrect DNS settings.

This is probably copied from ildkule, but I don't see why we would have both the hostConf.ipv4, hostConf.ipv4_internal _and_ DHCP, as DHCP will probably just advertise the same as ipv4_internal but with incorrect DNS settings.
Author
Owner

changed useDHCP to false.

changed useDHCP to false.
vegardbm marked this conversation as resolved
@@ -0,0 +39,4 @@
];
};
swapDevices = [ ];
Owner

Having a little swap is probably cool, but not absolutely required

Having a little swap is [probably cool](https://linuxblog.io/linux-performance-almost-always-add-swap-space/), but not absolutely required
Author
Owner

Won't it be pretty difficult since there is no free space?

Won't it be pretty difficult since there is no free space?
Author
Owner

I can just use a swap file instead of a dedicated partition.

I can just use a swap file instead of a dedicated partition.
Author
Owner

How big should the swap file be then?

How big should the swap file be then?
Author
Owner

I added an 8 GiB swap file.

I added an 8 GiB swap file.
vegardbm marked this conversation as resolved
Author
Owner

Yes, I totally forgot the values.nix changes.
And yes systemdb-boot works afaik since I did restart the machine. I can try again to confirm.

Yes, I totally forgot the values.nix changes. And yes systemdb-boot works afaik since I did restart the machine. I can try again to confirm.
Author
Owner

Yes, there was indeed a change to flake.nix.

Yes, there was indeed a change to flake.nix.
vegardbm added 1 commit 2026-01-19 16:10:41 +01:00
add values.nix flake.nix, disable DHCP
Some checks failed
Eval nix flake / evals (pull_request) Failing after 3m10s
Eval nix flake / evals (push) Failing after 4m51s
0fa9238798
felixalb reviewed 2026-01-19 16:12:29 +01:00
@@ -80,0 +82,4 @@
ipv4_internal = "192.168.20.11";
ipv4_internal_gw = "192.168.20.1";
ipv6 = "2001:700:305:aa07::3b3";
};
Owner

LGTM

LGTM
vegardbm marked this conversation as resolved
vegardbm added 1 commit 2026-01-19 16:25:24 +01:00
add swapfile
Some checks failed
Eval nix flake / evals (pull_request) Failing after 2m46s
Eval nix flake / evals (push) Failing after 2m48s
c0c57da48e
felixalb approved these changes 2026-01-19 16:33:15 +01:00
Author
Owner

Should I just merge then?

Should I just merge then?
Owner

Yes, sure! It works, and looks good, so if anyone have any other comments/improvements, they can add them later at any time, just merge :)

Yes, sure! It works, and looks good, so if anyone have any other comments/improvements, they can add them later at any time, just merge :)
vegardbm merged commit 489551a8e2 into main 2026-01-19 17:39:02 +01:00
vegardbm deleted branch gluttony 2026-01-19 17:39:02 +01:00
Sign in to join this conversation.