nix-git/hosts/yodaYoga/configuration.nix

65 lines
2.1 KiB
Nix
Raw Normal View History

2023-09-14 11:54:51 +02:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`).
2023-09-14 13:10:27 +02:00
{ config, sources ? import ../../nix/sources.nix, pkgs ? import sources.nixpkgs {}, ... }:
2023-09-14 11:54:51 +02:00
let
# Import Home Manager with niv.
home-manager = (import ../../nix/sources.nix).home-manager;
2023-09-15 21:57:33 +02:00
#home-manager-source = import (import ../../nix/sources.nix).home-manager {};
2023-09-14 11:54:51 +02:00
in
{
# Paths to other modules.
# Compose this module out of smaller ones.
# https://nixos.wiki/wiki/NixOS_modules
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
# Home Manager.
(import "${home-manager}/nixos")
2023-09-15 21:57:33 +02:00
#home-manager-source.nixos
2023-09-14 11:54:51 +02:00
../../modules/home-manager.nix
# NUR.
../../modules/nur.nix
# Device specific.
../../modules/yodaYoga.nix
../../modules/base.nix
#../../modules/base-gnome.nix
#../../modules/programs.nix
#../../modules/autostart.nix
#../../modules/wallpaper.nix
#../../modules/fwupd-gnome.nix
#../../modules/print-and-scan.nix
2023-09-15 14:54:23 +02:00
../../modules/fde-ssh-unlock.nix
2023-09-14 11:54:51 +02:00
#../../modules/nextcloud-integration.nix
#../../modules/gnome-config.nix
#../../modules/gnome-extensions.nix
#../../modules/gnome-fractional-scaling.nix
#../../modules/git.nix
../../modules/zsh.nix
#../../modules/nitrokey-gpg-smartcard.nix
2023-09-16 12:14:53 +02:00
#../../modules/ssh-client.nix
../../modules/ssh-server.nix
2023-09-14 11:54:51 +02:00
#../../modules/firefox.nix
#../../modules/thunderbird.nix
#../../modules/digikam.nix
#../../modules/android.nix
2023-09-14 15:54:48 +02:00
#../../modules/podman.nix
../../modules/docker.nix
2023-09-14 11:54:51 +02:00
];
2023-09-16 13:00:15 +02:00
# BTRFS compression.
# `nixos-generate-config` does not detect mount options, so we add them here.
2023-09-16 12:51:40 +02:00
# https://nixos.wiki/wiki/Btrfs#Compression
fileSystems = {
"/".options = [ "compress=zstd" ];
};
2023-09-14 11:54:51 +02:00
networking.hostName = "yodaYoga";
2023-09-15 21:31:07 +02:00
services.openssh.ports = [ 2224 ];
boot.initrd.network.ssh.port = 2225;
2023-09-14 11:54:51 +02:00
}