116 lines
2.0 KiB
Nix
116 lines
2.0 KiB
Nix
# 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’).
|
||
|
||
{
|
||
config,
|
||
pkgs,
|
||
home-manager,
|
||
lib,
|
||
...
|
||
}:
|
||
|
||
{
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/London";
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.admin = {
|
||
description = "admin";
|
||
shell = pkgs.zsh;
|
||
packages = with pkgs; [
|
||
];
|
||
};
|
||
|
||
# Some programs need SUID wrappers, can be configured further or are
|
||
# started in user sessions.
|
||
# programs.mtr.enable = true;
|
||
# programs.gnupg.agent = {
|
||
# enable = true;
|
||
# enableSSHSupport = true;
|
||
# };
|
||
|
||
# Enable the OpenSSH daemon.
|
||
services.openssh.enable = true;
|
||
|
||
nix.settings.experimental-features = [
|
||
"nix-command"
|
||
"flakes"
|
||
];
|
||
|
||
programs = {
|
||
zsh.enable = true;
|
||
};
|
||
|
||
nix = {
|
||
extraOptions = ''
|
||
keep-outputs = true
|
||
keep-derivations = true
|
||
'';
|
||
gc.automatic = true;
|
||
gc.options = "--delete-older-than 10d";
|
||
optimise.automatic = true;
|
||
};
|
||
|
||
# unfree
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
environment.systemPackages = with pkgs; [
|
||
zsh
|
||
htop
|
||
fastfetch
|
||
restic
|
||
nixfmt
|
||
rsync
|
||
pciutils # lspci
|
||
usbutils # lsusb
|
||
nmap
|
||
tree
|
||
p7zip
|
||
unar
|
||
inetutils # telnet
|
||
wget
|
||
dnsutils
|
||
iftop
|
||
|
||
# media
|
||
yt-dlp
|
||
exiftool
|
||
mediainfo
|
||
ffmpeg-full
|
||
|
||
# barcodes
|
||
qrencode
|
||
zbar
|
||
barcode
|
||
ghostscript
|
||
|
||
# documenation
|
||
man-pages
|
||
man-pages-posix
|
||
];
|
||
|
||
|
||
fonts.packages = with pkgs; [
|
||
noto-fonts
|
||
noto-fonts-cjk-sans
|
||
noto-fonts-color-emoji
|
||
corefonts
|
||
fira-mono
|
||
font-awesome_5
|
||
];
|
||
|
||
|
||
|
||
environment.shellAliases = {
|
||
"server" = "ssh admin@192.168.0.30";
|
||
"desktop" = "ssh admin@192.168.30.40";
|
||
"server-nut" = "ssh admin@192.168.0.20";
|
||
"laptop" = "ssh admin@192.168.0.41";
|
||
|
||
".." = "cd ..";
|
||
"lsa" = "ls -al";
|
||
};
|
||
|
||
}
|