flake/nixos/presets/core.nix

70 lines
1.5 KiB
Nix
Raw Normal View History

2023-09-19 00:17:43 +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)
environment = {
2023-10-15 00:51:56 +00:00
#defaultPackages = [];
};
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;
neovim = {
enable = true;
viAlias = true;
vimAlias = true;
defaultEditor = true; # default editor, does not seem to set the $EDITOR variable idk
};
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 = {
# spec = "UUID=6288ce7a-a153-4302-a4de-5dc71f58da79";
# hashTableSizeMB = 2048;
# verbosity = "crit";
# extraOptions = [ "--loadavg-target" "5.0" ];
# };
#};
};
}