use rust-motd for greeting message

This commit is contained in:
Pim Kunis 2023-11-15 21:25:35 +01:00
parent 1beef05467
commit fc52d1c5be
2 changed files with 17 additions and 15 deletions

View file

@ -75,9 +75,23 @@
'';
};
programs.rust-motd = {
enable = true;
settings = {
banner = {
color = "red";
command =
"${pkgs.nettools}/bin/hostname | ${pkgs.figlet}/bin/figlet -f univers";
};
uptime.prefix = "Up";
filesystems.root = "/";
memory.swap_pos = "beside";
};
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ vim neofetch cowsay python3 ];
environment.systemPackages = with pkgs; [ vim neofetch python3 ];
networking.firewall.enable = false;

View file

@ -1,4 +1,4 @@
{ config, lib, modulesPath, ... }: {
{ config, lib, modulesPath, machine, ... }: {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
@ -7,20 +7,8 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# fileSystems."/" = {
# device = "/dev/disk/by-uuid/b78f591c-c9b6-4dae-9837-56716d38990b";
# fsType = "ext4";
# };
# fileSystems."/boot" = {
# device = "/dev/disk/by-uuid/6936-84C2";
# fsType = "vfat";
# };
# swapDevices =
# [{ device = "/dev/disk/by-uuid/79fbd322-e58d-4e45-8969-06ef494cefea"; }];
networking.useDHCP = false;
networking.hostName = machine.name;
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.intel.updateMicrocode =