Skip to content

Commit 6c07e9e

Browse files
Merge pull request #5 from randomizedcoder/2024_06_01
updates
2 parents 455e422 + ba852da commit 6c07e9e

15 files changed

+56
-24
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ hp0:
99
scp -C ./hp0/* hp0:
1010
scp -C ./modules/* hp0:
1111
scp -C ./scripts/* hp0:
12-
scp -C ./nix_switch.bash hp0:
1312

1413
hp3:
1514
scp -C ./hp3/* hp3:
1615
scp -C ./modules/* hp3:
1716
scp -C ./scripts/* hp3:
18-
scp -C ./nix_switch.bash hp3:
1917

2018
#
2119
# end

hp0/configuration.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
./hosts.nix
2828
./firewall.nix
2929
./il8n.nix
30-
./systemdSystem.nix
30+
#./systemdSystem.nix
3131
./systemPackages.nix
3232
./home-manager.nix
33+
#./prometheus.nix
34+
#./grafana.nix
3335
];
3436

3537
# Bootloader.
@@ -89,7 +91,7 @@
8991
# this value at the release version of the first install of this system.
9092
# Before changing this value read the documentation for this option
9193
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
92-
system.stateVersion = "23.11"; # Did you read the comment?
94+
system.stateVersion = "24.05"; # Did you read the comment?
9395

9496
# virtualisation.libvirtd.enable = true;
9597
# programs.virt-manager.enable = true;

hp0/hardware-configuration.nix

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,25 @@
1414
boot.extraModulePackages = [ ];
1515

1616
fileSystems."/" =
17-
{ device = "/dev/disk/by-uuid/2d466236-2a60-448a-8d1f-eb6f06f9a3fb";
17+
{ device = "/dev/disk/by-uuid/1b9937be-2d96-4cfc-b8b4-eefebea96006";
1818
fsType = "ext4";
1919
};
2020

2121
fileSystems."/boot" =
22-
{ device = "/dev/disk/by-uuid/0126-0D03";
22+
{ device = "/dev/disk/by-uuid/6E73-1390";
2323
fsType = "vfat";
2424
options = [ "fmask=0022" "dmask=0022" ];
2525
};
2626

27-
swapDevices =
28-
[ { device = "/dev/disk/by-uuid/8b35fd91-a490-42f3-845b-27f2856c175e"; }
29-
];
27+
swapDevices = [ ];
3028

3129
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
3230
# (the default) this is the recommended approach. When using systemd-networkd it's
3331
# still possible to use this option, but it's recommended to use it in conjunction
3432
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
3533
networking.useDHCP = lib.mkDefault true;
3634
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
37-
# networking.interfaces.wlp2s0f0u10.useDHCP = lib.mkDefault true;
35+
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
3836

3937
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
4038
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

hp3/configuration.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
./hosts.nix
2828
./firewall.nix
2929
./il8n.nix
30-
./systemdSystem.nix
30+
#./systemdSystem.nix
3131
./systemPackages.nix
3232
./home-manager.nix
33+
#./prometheus.nix
34+
#./grafana.nix
3335
];
3436

3537
# Bootloader.
@@ -89,7 +91,7 @@
8991
# this value at the release version of the first install of this system.
9092
# Before changing this value read the documentation for this option
9193
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
92-
system.stateVersion = "23.11"; # Did you read the comment?
94+
system.stateVersion = "24.05"; # Did you read the comment?
9395

9496
# virtualisation.libvirtd.enable = true;
9597
# programs.virt-manager.enable = true;

hp3/hardware-configuration.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414
boot.extraModulePackages = [ ];
1515

1616
fileSystems."/" =
17-
{ device = "/dev/disk/by-uuid/f228ac2a-53f3-474a-a1da-b97f07048893";
17+
{ device = "/dev/disk/by-uuid/21e4f4e0-b8ec-4024-839f-820af51a27ec";
1818
fsType = "ext4";
1919
};
2020

2121
fileSystems."/boot" =
22-
{ device = "/dev/disk/by-uuid/43B1-1B2C";
22+
{ device = "/dev/disk/by-uuid/CC67-5B9D";
2323
fsType = "vfat";
2424
options = [ "fmask=0022" "dmask=0022" ];
2525
};
2626

2727
swapDevices =
28-
[ { device = "/dev/disk/by-uuid/a9e009c6-ad85-44e5-ad69-4496fba37d5b"; }
28+
[ { device = "/dev/disk/by-uuid/a6da1204-1444-4e5a-a27f-b4cc64d7f320"; }
2929
];
3030

3131
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking

modules/grafana.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{ config, pkgs, ... }:
2+
{
3+
# https://xeiaso.net/blog/prometheus-grafana-loki-nixos-2020-11-20/
4+
services.grafana = {
5+
enable = true;
6+
#domain = "grafana.pele";
7+
#port = 2342;
8+
#addr = "127.0.0.1";
9+
};
10+
}

modules/prometheus.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{ config, pkgs, ... }:
2+
{
3+
services.prometheus = {
4+
enable = true;
5+
port = 9000;
6+
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/monitoring/prometheus/exporters.nix
7+
enabledCollectors = [ "systemd" ];
8+
};
9+
}

modules/systemdSystem.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# https://discourse.nixos.org/t/overriding-modifying-systemd-unit-file/45621/7
66

77
# https://mynixos.com/nixpkgs/options/systemd
8-
systemd.extraConfig = "CPUAffinity=2-7";
8+
systemd.extraConfig = "CPUAffinity=4-7";
99

1010
#https://mynixos.com/options/systemd.user
11-
systemd.user.extraConfig = "CPUAffinity=2-7";
11+
systemd.user.extraConfig = "CPUAffinity=4-7";
1212
# create your own service
1313
# https://discourse.nixos.org/t/how-to-use-toplevel-overrides-for-systemd/12501
1414
}

modules/wireless.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
networking.wireless = {
55
enable = true; # Enables wireless support via wpa_supplicant.
6-
environmentFile = "/home/das/wireless.env";
6+
#environmentFile = "/home/das/wireless.env";
77
networks."devices".psk = "performance";
88
#networks."devices".psk = "@PSK_DEVICES@";
99
extraConfig = "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel";
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#!/run/current-system/sw/bin/bash
1+
#!/usr/bin/bash
22
#
33
sudo cp ./*.nix /etc/nixos/
44
sudo nixos-rebuild switch
55

6-
76
#sudo ln -s /run/current-system/sw/bin/bash /usr/bin/bash

0 commit comments

Comments
 (0)