mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-28 09:28:30 +02:00
fujitsu: configure network and impermanence
This commit is contained in:
parent
0780cdefc8
commit
0ef795ca18
4 changed files with 68 additions and 19 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue