Nix-Config/system/shared/shared-configuration.nix

79 lines
1.6 KiB
Nix
Raw Normal View History

2023-03-15 14:58:55 +00:00
{ config, pkgs, inputs, ... }:
2023-02-05 14:48:47 +00:00
{
2023-04-18 11:33:38 +00:00
boot.supportedFilesystems = [ "ntfs" ];
2023-02-05 14:48:47 +00:00
i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_GB.UTF-8";
LC_IDENTIFICATION = "en_GB.UTF-8";
LC_MEASUREMENT = "en_GB.UTF-8";
LC_MONETARY = "en_GB.UTF-8";
LC_NAME = "en_GB.UTF-8";
LC_NUMERIC = "en_GB.UTF-8";
LC_PAPER = "en_GB.UTF-8";
LC_TELEPHONE = "en_GB.UTF-8";
LC_TIME = "en_GB.UTF-8";
};
environment.variables.LC_ALL = "en_GB.UTF-8";
2023-02-05 14:48:47 +00:00
time.timeZone = "Europe/London";
2023-10-09 15:34:52 +00:00
2023-09-28 10:49:13 +00:00
users.groups = {
git = { };
};
2023-02-05 14:48:47 +00:00
users.users.tsv = {
isNormalUser = true;
extraGroups = [
"wheel"
"docker"
"tmux"
2023-09-27 09:54:42 +00:00
"davfs2"
2023-09-28 10:49:13 +00:00
"git"
2023-10-09 15:34:52 +00:00
"lpadmin"
];
initialPassword = "password";
2023-07-06 13:09:04 +00:00
openssh.authorizedKeys.keyFiles = [
2023-07-07 06:57:08 +00:00
../../users/tsv/authorized_keys
2023-07-06 13:09:04 +00:00
];
};
2023-09-27 12:30:41 +00:00
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
};
2023-03-09 18:49:28 +00:00
nix = {
extraOptions = "experimental-features = nix-command flakes";
package = pkgs.nixFlakes;
settings = {
auto-optimise-store = true;
2023-09-29 09:38:28 +00:00
trusted-users = [ "root" "tsv" "kamal" ];
};
2023-06-06 09:51:38 +00:00
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
2023-06-06 09:51:38 +00:00
};
2023-03-09 18:49:28 +00:00
};
2023-02-06 09:21:35 +00:00
hardware.bluetooth.enable = true;
2023-02-05 14:48:47 +00:00
nixpkgs.config.allowUnfree = true;
2023-08-30 16:53:26 +00:00
programs.ssh = {
2023-08-28 13:38:58 +00:00
startAgent = true;
};
services.openssh = {
enable = true;
2023-07-27 17:47:27 +00:00
ports = [ 2222 2223 ];
settings.PasswordAuthentication = false;
};
2023-02-05 14:48:47 +00:00
2023-02-05 16:57:39 +00:00
system.stateVersion = "22.11"; # Don't change this
2023-02-05 14:48:47 +00:00
}