2022-12-02 13:43:26 +00:00
|
|
|
{ config, pkgs, lib, inputs, nixpkgs-nixos-unstable-and-unfree, ... }:
|
|
|
|
let
|
|
|
|
stateVersion = "22.05";
|
|
|
|
username = "cyryl";
|
|
|
|
in {
|
2022-03-08 15:45:44 +00:00
|
|
|
imports = [
|
|
|
|
./common-hardware.nix
|
|
|
|
./common-services.nix
|
|
|
|
./security.nix
|
|
|
|
./syncthing.nix
|
|
|
|
];
|
2019-03-26 10:12:24 +00:00
|
|
|
|
2021-11-22 19:32:26 +00:00
|
|
|
security.allowUserNamespaces = true;
|
2020-02-16 09:23:31 +00:00
|
|
|
|
2021-11-22 19:32:26 +00:00
|
|
|
environment.enableDebugInfo = true;
|
2021-06-12 16:15:00 +01:00
|
|
|
|
2021-11-22 19:32:26 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2022-08-20 00:00:50 +01:00
|
|
|
ccache
|
|
|
|
curl
|
|
|
|
dnsutils
|
|
|
|
fd
|
2021-11-22 19:32:26 +00:00
|
|
|
git
|
|
|
|
gnupg
|
|
|
|
home-manager
|
2022-08-20 00:00:50 +01:00
|
|
|
htop
|
2021-11-22 19:32:26 +00:00
|
|
|
pciutils
|
|
|
|
powertop
|
2022-08-20 00:00:50 +01:00
|
|
|
tmux
|
2021-11-22 19:32:26 +00:00
|
|
|
usbutils
|
2022-08-20 00:00:50 +01:00
|
|
|
wget
|
2022-03-02 12:45:32 +00:00
|
|
|
nixpkgs-nixos-unstable-and-unfree.veracrypt
|
2021-11-22 19:32:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
|
|
|
2022-12-02 13:43:26 +00:00
|
|
|
users.users."${username}" = {
|
2021-11-22 19:32:26 +00:00
|
|
|
isNormalUser = true;
|
2022-03-08 15:45:44 +00:00
|
|
|
extraGroups = [
|
2022-08-20 00:00:50 +01:00
|
|
|
"adbusers"
|
|
|
|
"dialout"
|
|
|
|
"docker"
|
|
|
|
"libvirtd"
|
|
|
|
"lp"
|
2022-03-08 15:45:44 +00:00
|
|
|
"networkmanager"
|
|
|
|
"scanner"
|
|
|
|
"vboxusers"
|
2022-08-20 00:00:50 +01:00
|
|
|
"video"
|
|
|
|
"wheel"
|
2022-03-08 15:45:44 +00:00
|
|
|
"wireshark"
|
|
|
|
];
|
2021-11-22 19:32:26 +00:00
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
|
2022-03-08 15:45:44 +00:00
|
|
|
networking.nameservers =
|
|
|
|
[ "91.239.100.100" "89.233.43.71" "1.1.1.1" "8.8.8.8" ];
|
2022-03-06 09:41:19 +00:00
|
|
|
|
2022-03-08 15:45:44 +00:00
|
|
|
networking.hosts = { "10.11.99.1" = [ "remarkable" ]; };
|
2021-11-22 19:32:26 +00:00
|
|
|
|
|
|
|
programs.light.enable = true;
|
|
|
|
programs.adb.enable = true;
|
|
|
|
programs.wireshark.enable = true;
|
|
|
|
|
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
autoPrune.enable = true;
|
2022-07-25 17:04:03 +01:00
|
|
|
daemon.settings = {
|
|
|
|
"insecure-registries" = [ "vpsfree1.raptor-carp.ts.net:5000" ];
|
|
|
|
};
|
2021-11-22 19:32:26 +00:00
|
|
|
};
|
|
|
|
|
2022-03-08 15:50:45 +00:00
|
|
|
fonts.fontconfig = {
|
|
|
|
enable = true;
|
|
|
|
defaultFonts.monospace = [ "Berkeley Mono" ];
|
|
|
|
};
|
|
|
|
|
2022-07-16 16:15:51 +01:00
|
|
|
fonts.fonts = with pkgs;
|
|
|
|
[
|
|
|
|
(runCommand "berkeley-fonts" { } ''
|
|
|
|
mkdir -vp "$out/share/fonts/opentype"
|
|
|
|
mkdir -vp "$out/share/fonts/truetype"
|
|
|
|
${pkgs.unzip}/bin/unzip ${
|
|
|
|
./fonts.zip
|
|
|
|
} \*.otf -d $out/share/fonts/opentype
|
|
|
|
${pkgs.unzip}/bin/unzip ${
|
|
|
|
./fonts.zip
|
|
|
|
} \*.ttf -d $out/share/fonts/truetype
|
2022-07-06 22:28:42 +01:00
|
|
|
|
2022-07-16 16:15:51 +01:00
|
|
|
'')
|
|
|
|
];
|
2021-11-22 19:32:26 +00:00
|
|
|
|
|
|
|
nix = {
|
2022-12-02 14:56:05 +00:00
|
|
|
settings.auto-optimise-store = true;
|
2021-11-22 19:32:26 +00:00
|
|
|
gc.automatic = true;
|
|
|
|
optimise.automatic = true;
|
|
|
|
package = pkgs.nixUnstable;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
};
|
2019-03-26 12:32:59 +00:00
|
|
|
|
2022-12-02 13:43:26 +00:00
|
|
|
system = { inherit stateVersion; };
|
2021-11-22 19:32:26 +00:00
|
|
|
}
|