fujitsu: configure network and impermanence

This commit is contained in:
Rouven Seifert 2024-05-15 13:23:05 +02:00
parent 0780cdefc8
commit 0ef795ca18
4 changed files with 68 additions and 19 deletions

View file

@ -1,20 +1,25 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./modules/networks
];
boot.loader.grub.enable = true;
boot.loader.grub.devices = [ "/dev/sda" "/dev/sdb" ];
services.btrfs.autoScrub.enable = true;
# TODO move to netwurking
networking.hostName = "fujitsu"; # Define your hostname.
environment.persistence."/nix/persist/system" = {
directories = [
"/etc/ssh"
"/root/.borgmatic"
"/root/.local/share/zsh"
"/root/.config/borg/security"
];
files = [
"/etc/machine-id"
];
};
time.timeZone = "Europe/Berlin";
console = {