96 lines
1.7 KiB
Nix
96 lines
1.7 KiB
Nix
{ inputs, flake, pkgs, hostName, ... }:
|
|
{
|
|
imports = with flake.nixosModules; [
|
|
./hardware-configuration.nix
|
|
base
|
|
jhemono
|
|
# Services
|
|
./btrbk.nix
|
|
./syncthing.nix
|
|
];
|
|
|
|
# Boot configuration
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.systemd-boot.configurationLimit = 10;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# Networking
|
|
networking.hostName = hostName;
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
# Console
|
|
console = {
|
|
keyMap = "fr";
|
|
};
|
|
|
|
users.users.jhemono.uid = 1000;
|
|
users.groups.jhemono.gid = 1000;
|
|
|
|
# Enable CUPS to print documents.
|
|
# services.printing.enable = true;
|
|
|
|
# For VSCode
|
|
nixpkgs = {
|
|
config.allowUnfree = true;
|
|
overlays = [
|
|
inputs.nix-vscode-extensions.overlays.default
|
|
];
|
|
};
|
|
|
|
# System packages
|
|
environment.systemPackages = with pkgs; [
|
|
android-tools
|
|
bc
|
|
git
|
|
htop
|
|
jq
|
|
ncdu
|
|
rclone
|
|
tmux
|
|
tree
|
|
unzip
|
|
vim
|
|
zip
|
|
];
|
|
|
|
virtualisation.docker.rootless = {
|
|
enable = true;
|
|
setSocketVariable = true;
|
|
};
|
|
|
|
# Fonts
|
|
fonts.packages = with pkgs; [
|
|
monocraft
|
|
];
|
|
|
|
# GNOME
|
|
services.xserver = {
|
|
enable = true;
|
|
xkb.layout = "fr";
|
|
excludePackages = with pkgs; [
|
|
xterm
|
|
];
|
|
};
|
|
services.displayManager.gdm.enable = true;
|
|
services.desktopManager.gnome.enable = true;
|
|
environment.gnome.excludePackages = with pkgs; [
|
|
epiphany
|
|
geary
|
|
gnome-tour
|
|
orca
|
|
];
|
|
|
|
environment.variables.EDITOR = "vim";
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
# started in user sessions.
|
|
# programs.mtr.enable = true;
|
|
programs.gnupg.agent.enable = true;
|
|
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|