2023-09-24 03:59:47 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
../packages/vim.nix
|
2023-12-10 21:14:55 +01:00
|
|
|
../services/ssh.nix
|
2023-09-24 03:59:47 +02:00
|
|
|
];
|
|
|
|
|
2024-04-08 20:01:01 +02:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
|
|
git
|
2024-10-01 11:41:42 +02:00
|
|
|
unzip
|
|
|
|
zip
|
|
|
|
gnutar
|
2024-04-19 14:22:06 +02:00
|
|
|
wget
|
2024-04-08 20:01:01 +02:00
|
|
|
rsync
|
|
|
|
ripgrep
|
2024-04-19 14:22:06 +02:00
|
|
|
neofetch
|
2024-04-12 11:41:33 +02:00
|
|
|
htop
|
|
|
|
bottom
|
2024-04-19 14:22:06 +02:00
|
|
|
killall
|
2024-04-12 11:41:33 +02:00
|
|
|
foot.terminfo
|
2024-04-08 20:01:01 +02:00
|
|
|
tailscale
|
|
|
|
];
|
|
|
|
|
2024-04-19 14:22:06 +02:00
|
|
|
#just allow unfree, im fine with it.
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2024-06-20 20:12:40 +02:00
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
memoryPercent = 25;
|
|
|
|
};
|
|
|
|
|
2024-04-19 14:22:06 +02:00
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/Oslo";
|
2024-04-08 20:01:01 +02:00
|
|
|
|
2024-04-19 14:22:06 +02:00
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
2024-04-08 20:01:01 +02:00
|
|
|
|
2024-04-19 14:22:06 +02:00
|
|
|
# Configure console
|
|
|
|
console = {
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
keyMap = "no";
|
|
|
|
};
|
2024-04-08 20:01:01 +02:00
|
|
|
|
2024-04-19 14:22:06 +02:00
|
|
|
#tailscale
|
|
|
|
services.tailscale.enable = true;
|
2024-04-08 20:01:01 +02:00
|
|
|
|
2024-04-19 14:22:06 +02:00
|
|
|
#system vide bash aliases. TODO: check if only one of these works so i dont need duplicates.
|
|
|
|
programs.bash.shellAliases = config.environment.shellAliases;
|
2024-01-14 21:00:30 +01:00
|
|
|
environment.shellAliases = {
|
|
|
|
gst="git status";
|
2024-04-19 14:22:06 +02:00
|
|
|
gcm="git commit -m";
|
|
|
|
gca="git commit --amend";
|
2024-01-14 21:00:30 +01:00
|
|
|
gsw="git switch";
|
|
|
|
gaa="git add -A";
|
|
|
|
gb="git branch";
|
|
|
|
dc="cd";
|
|
|
|
la="ls -la";
|
|
|
|
lls="ls";
|
|
|
|
};
|
|
|
|
environment.interactiveShellInit = ''
|
|
|
|
alias gst='git status'
|
|
|
|
alias gcm='git commit -m'
|
2024-04-19 14:22:06 +02:00
|
|
|
alias gca='git commit --amend'
|
2024-01-14 21:00:30 +01:00
|
|
|
alias gsw='git switch'
|
|
|
|
alias gaa='git add -A'
|
|
|
|
alias gb='git branch'
|
|
|
|
alias dc='cd'
|
|
|
|
alias la='ls -la'
|
|
|
|
alias lls='ls'
|
|
|
|
'';
|
|
|
|
|
2024-09-11 15:34:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
#some insecure packages
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
"python3.11-youtube-dl-2021.12.17"
|
|
|
|
];
|
2024-04-19 14:22:06 +02:00
|
|
|
|
2023-09-24 03:59:47 +02:00
|
|
|
#nix stuff
|
2024-03-22 12:55:22 +01:00
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
2023-09-24 03:59:47 +02:00
|
|
|
nix.gc.automatic = true;
|
2024-04-08 21:34:10 +02:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
flake = "git+https://github.com/adrlau/nix-dotfiles.git";
|
|
|
|
flags = [
|
|
|
|
"--update-input" "nixpkgs"
|
|
|
|
"--update-input" "nixpkgs-unstable"
|
|
|
|
"--no-write-lock-file"
|
|
|
|
];
|
|
|
|
};
|
2024-03-22 12:55:22 +01:00
|
|
|
|
2023-10-17 19:42:00 +02:00
|
|
|
}
|