|
18 | 18 | imports = |
19 | 19 | [ # Include the results of the hardware scan. |
20 | 20 | ./hardware-configuration.nix |
21 | | - # sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager |
| 21 | + # sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager |
22 | 22 | # sudo nix-channel --update |
23 | | - <home-manager/nixos> |
| 23 | + # tutorial |
| 24 | + # https://nixos-and-flakes.thiscute.world/nixos-with-flakes/start-using-home-manager |
| 25 | + #<home-manager/nixos> |
24 | 26 | # |
25 | 27 | ./sysctl.nix |
26 | 28 | # ./wireless.nix |
|
29 | 31 | ./il8n.nix |
30 | 32 | #./systemdSystem.nix |
31 | 33 | ./systemPackages.nix |
32 | | - ./home-manager.nix |
| 34 | + # home manager is imported by the flake |
| 35 | + #./home.nix |
33 | 36 | ./nodeExporter.nix |
34 | 37 | ./prometheus.nix |
35 | 38 | ./grafana.nix |
36 | 39 | ./docker-daemon.nix |
| 40 | + #./k8s_master.nix |
37 | 41 | #./k8s_node.nix |
| 42 | + #./k3s_master.nix |
38 | 43 | ./k3s_node.nix |
39 | 44 | ./systemd.services.ethtool-enp3s0f0.nix |
40 | 45 | ./systemd.services.ethtool-enp3s0f1.nix |
41 | 46 | ]; |
42 | 47 |
|
43 | 48 | # Bootloader. |
44 | | - boot.loader.systemd-boot.enable = true; |
| 49 | + boot.loader.systemd-boot = { |
| 50 | + enable = true; |
| 51 | + #consoleMode = "max"; # Sets the console mode to the highest resolution supported by the firmware. |
| 52 | + memtest86.enable = true; |
| 53 | + }; |
| 54 | + |
45 | 55 | boot.loader.efi.canTouchEfiVariables = true; |
46 | 56 |
|
47 | 57 | # https://nixos.wiki/wiki/Linux_kernel |
|
58 | 68 | settings = { |
59 | 69 | auto-optimise-store = true; |
60 | 70 | experimental-features = [ "nix-command" "flakes" ]; |
| 71 | + download-buffer-size = "100000000"; |
61 | 72 | }; |
62 | 73 | }; |
63 | 74 |
|
64 | 75 | # https://nixos.wiki/wiki/Networking |
65 | 76 | # https://nlewo.github.io/nixos-manual-sphinx/configuration/ipv4-config.xml.html |
66 | 77 | networking.hostName = "hp5"; |
67 | 78 |
|
| 79 | + services.lldpd.enable = true; |
| 80 | + |
68 | 81 | # Configure network proxy if necessary |
69 | 82 | # networking.proxy.default = "http://user:password@proxy:port/"; |
70 | 83 | # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; |
|
87 | 100 | users.users.das = { |
88 | 101 | isNormalUser = true; |
89 | 102 | description = "das"; |
90 | | - extraGroups = [ "wheel" "networkmanager" "libvirtd" "docker" "kubernetes" ]; |
| 103 | + extraGroups = [ "wheel" "libvirtd" "docker" "kubernetes" ]; |
91 | 104 | packages = with pkgs; [ |
92 | 105 | ]; |
93 | 106 | # https://nixos.wiki/wiki/SSH_public_key_authentication |
|
110 | 123 |
|
111 | 124 | services.openssh.enable = true; |
112 | 125 |
|
| 126 | + services.timesyncd.enable = true; |
| 127 | + |
| 128 | + services.fstrim.enable = true; |
| 129 | + |
113 | 130 | # This value determines the NixOS release from which the default |
114 | 131 | # settings for stateful data, like file locations and database versions |
115 | 132 | # on your system were taken. It‘s perfectly fine and recommended to leave |
116 | 133 | # this value at the release version of the first install of this system. |
117 | 134 | # Before changing this value read the documentation for this option |
118 | 135 | # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
119 | | - system.stateVersion = "24.05"; # Did you read the comment? |
| 136 | + system.stateVersion = "24.11"; # Did you read the comment? |
120 | 137 |
|
121 | 138 | # virtualisation.libvirtd.enable = true; |
122 | 139 | # programs.virt-manager.enable = true; |
|
0 commit comments