69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{ inputs, config, lib, pkgs, outputs,... }:
|
|
let
|
|
dev = "/dev/vda";
|
|
in
|
|
{
|
|
imports =
|
|
[
|
|
# Disk configuration
|
|
inputs.disko.nixosModules.disko
|
|
(import ../common/disks/std-disk-config.nix { device = ${dev}; })
|
|
../common/optional/btrfs-impermanence.nix
|
|
|
|
# Create users for this host
|
|
../common/users/media
|
|
|
|
# Import core options
|
|
./hardware-configuration.nix
|
|
../common/core
|
|
|
|
# Import optional options
|
|
../common/optional/openssh.nix
|
|
|
|
];
|
|
|
|
fileSystems."/persist".neededForBoot = true;
|
|
environment.persistence."/persist" = {
|
|
hideMounts = true;
|
|
directories = [
|
|
"/etc/nixos"
|
|
"/var/log"
|
|
"/var/lib/nixos"
|
|
"/var/lib/flatpak"
|
|
"/var/lib/systemd/coredump"
|
|
"/etc/NetworkManager/system-connections"
|
|
];
|
|
files = [
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
];
|
|
};
|
|
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
timeout = 3;
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
hostName = "sparky";
|
|
networkmanager.enable = true;
|
|
enableIPv6 = false;
|
|
};
|
|
|
|
services.libinput.enable = true;
|
|
services.displayManager.defaultSession = "cinnamon";
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
displayManager.lightdm.enable = true;
|
|
desktopManager = {
|
|
cinnamon.enable = true;
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|