2022-10-19 13:16:24 +02:00
|
|
|
|
{ config, pkgs, lib, ... }: {
|
|
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
|
|
|
|
|
|
../../system/desktop
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./tinc.nix
|
|
|
|
|
./syncthing.nix
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
security.wrappers = {
|
|
|
|
|
pmount = {
|
|
|
|
|
source = "${pkgs.pmount}/bin/pmount";
|
|
|
|
|
setuid = true;
|
|
|
|
|
owner = "root";
|
|
|
|
|
group = "root";
|
|
|
|
|
};
|
|
|
|
|
pumount = {
|
|
|
|
|
source = "${pkgs.pmount}/bin/pumount";
|
|
|
|
|
setuid = true;
|
|
|
|
|
owner = "root";
|
|
|
|
|
group = "root";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# fonts
|
|
|
|
|
# -----
|
|
|
|
|
programs.custom.urxvt.fontSize = 12;
|
|
|
|
|
programs.custom.xterm.fontSize = 12;
|
|
|
|
|
system.custom.fonts.dpi = 100;
|
|
|
|
|
|
|
|
|
|
configuration.desktop = {
|
|
|
|
|
width = 1366;
|
|
|
|
|
height = 768;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# grub configuraton
|
|
|
|
|
# -----------------
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
|
boot.loader.grub.efiSupport = true;
|
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
|
boot.loader.grub.efiInstallAsRemovable = true;
|
|
|
|
|
boot.tmpOnTmpfs = true;
|
|
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
networking.hostName = "bobi";
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
vim
|
|
|
|
|
wget
|
|
|
|
|
htop
|
|
|
|
|
silver-searcher
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
environment.extraInit = ''
|
|
|
|
|
# use vi shortcuts
|
|
|
|
|
# ----------------
|
|
|
|
|
set -o vi
|
|
|
|
|
EDITOR=vim
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
2023-02-17 00:41:22 +01:00
|
|
|
|
components.network.sshd.onlyTincAccess = false;
|
2022-10-19 13:16:24 +02:00
|
|
|
|
|
2023-01-07 16:41:03 +01:00
|
|
|
|
nix.settings.max-jobs = lib.mkDefault 1;
|
2022-10-19 13:16:24 +02:00
|
|
|
|
|
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6uza62+Go9sBFs3XZE2OkugBv9PJ7Yv8ebCskE5WYPcahMZIKkQw+zkGI8EGzOPJhQEv2xk+XBf2VOzj0Fto4nh8X5+Llb1nM+YxQPk1SVlwbNAlhh24L1w2vKtBtMy277MF4EP+caGceYP6gki5+DzlPUSdFSAEFFWgN1WPkiyUii15Xi3QuCMR8F18dbwVUYbT11vwNhdiAXWphrQG+yPguALBGR+21JM6fffOln3BhoDUp2poVc5Qe2EBuUbRUV3/fOU4HwWVKZ7KCFvLZBSVFutXCj5HuNWJ5T3RuuxJSmY5lYuFZx9gD+n+DAEJt30iXWcaJlmUqQB5awcB1S2d9pJ141V4vjiCMKUJHIdspFrI23rFNYD9k2ZXDA8VOnQE33BzmgF9xOVh6qr4G0oEpsNqJoKybVTUeSyl4+ifzdQANouvySgLJV/pcqaxX1srSDIUlcM2vDMWAs3ryCa0aAlmAVZIHgRhh6wa+IXW8gIYt+5biPWUuihJ4zGBEwkyVXXf2xsecMWCAGPWPDL0/fBfY9krNfC5M2sqxey2ShFIq+R/wMdaI7yVjUCF2QIUNiIdFbJL6bDrDyHnEXJJN+rAo23jUoTZZRv7Jq3DB/A5H7a73VCcblZyUmwMSlpg3wos7pdw5Ctta3zQPoxoAKGS1uZ+yTeZbPMmdbw== contact@ingolf-wagner.de" ];
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "22.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|