2023-11-04 10:14:42 +00:00
|
|
|
{config, ...}:
|
2023-10-15 00:51:56 +00:00
|
|
|
# Imported by default, check out ./desktop.nix or ./server.nix
|
2023-09-19 00:17:43 +00:00
|
|
|
{
|
2023-10-16 08:26:06 +00:00
|
|
|
imports = [
|
|
|
|
../boot
|
|
|
|
../networking
|
|
|
|
../nix
|
|
|
|
../packages
|
|
|
|
../power-management
|
|
|
|
#../specialisation # dont actually use this
|
|
|
|
];
|
|
|
|
|
2023-09-19 00:17:43 +00:00
|
|
|
# Installed packages (System wide)
|
2023-11-08 14:19:15 +00:00
|
|
|
environment.defaultPackages = []; # make sure to add another editor and set the $EDITOR variable, in this case I am using neovim
|
2023-10-15 00:51:56 +00:00
|
|
|
|
|
|
|
users.mutableUsers = false;
|
|
|
|
environment.etc.machine-id.text = "b08dfa6083e7567a1921a715000001fb"; # whonix id
|
|
|
|
security = {
|
|
|
|
apparmor.enable = true;
|
|
|
|
sudo.execWheelOnly = true;
|
2023-09-19 00:17:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Programs
|
|
|
|
programs = {
|
|
|
|
dconf.enable = true;
|
2023-11-08 14:19:15 +00:00
|
|
|
nano.enable = false;
|
2023-09-19 00:17:43 +00:00
|
|
|
neovim = {
|
|
|
|
enable = true;
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
2023-11-08 14:19:15 +00:00
|
|
|
defaultEditor = true;
|
2023-09-19 00:17:43 +00:00
|
|
|
};
|
|
|
|
fish.enable = true;
|
|
|
|
#zsh.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Services
|
|
|
|
services = {
|
|
|
|
getty.greetingLine = ''
|
2023-09-19 16:47:52 +00:00
|
|
|
NixOS ${config.system.nixos.label} ${config.system.nixos.codeName} (\m) - \l
|
2023-09-19 00:17:43 +00:00
|
|
|
--my-next-gpu-wont-be-nvidia
|
|
|
|
'';
|
2023-10-15 00:51:56 +00:00
|
|
|
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-19 00:17:43 +00:00
|
|
|
#cron.enable = true;
|
|
|
|
#dbus.enable = true;
|
2023-10-15 00:51:56 +00:00
|
|
|
|
2023-09-19 00:17:43 +00:00
|
|
|
# BTRFS De-Dupe
|
|
|
|
# bruh how to make it not a background job
|
|
|
|
# i want to run it manually
|
|
|
|
#beesd.filesystems = {
|
|
|
|
# root = {
|
2023-11-04 10:02:11 +00:00
|
|
|
# spec = "UUID=3e10ff73-e1f7-4b39-88f5-7f31dcc8f38c";
|
2023-09-19 00:17:43 +00:00
|
|
|
# hashTableSizeMB = 2048;
|
|
|
|
# verbosity = "crit";
|
2023-11-04 10:02:11 +00:00
|
|
|
# #extraOptions = [ "--loadavg-target" "5.0" ];
|
2023-09-19 00:17:43 +00:00
|
|
|
# };
|
|
|
|
#};
|
|
|
|
};
|
|
|
|
}
|