setup sternchen

This commit is contained in:
Ingolf Wagner 2021-03-05 16:01:24 +01:00
parent 6f793e7e38
commit 22dbeab3f8
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
11 changed files with 53 additions and 22 deletions

View file

@ -27,7 +27,7 @@
services.kbfs.enable = false;
programs.custom.steam.enable = false;
programs.custom.video.enable = false;
programs.custom.video.enable = true;
services.printing.enable = true;
@ -77,5 +77,11 @@
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
services.xserver.displayManager.defaultSession = "plasma5";
services.xserver.desktopManager.pantheon.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.xfce.enable = true;
}

View file

@ -72,7 +72,8 @@
# boot
# ----
fileSystems."/boot" = {
device = "/dev/sda1";
#device = "/dev/sda1";
device = "/dev/disk/by-uuid/EDD4-9795";
fsType = "vfat";
};

View file

@ -5,9 +5,16 @@ in {
# overlay included
#nixpkgs.overlays = [ (import <mozilla-overlay/rust-overlay.nix>) ];
programs.custom.browser.enable = false;
environment.systemPackages = with pkgs; [
nextcloud-client
gimp
inkscape
darktable
keepass
firefox
google-chrome
];
}

View file

@ -6,6 +6,12 @@ in {
nixpkgs.overlays = [ (import <mozilla-overlay/rust-overlay.nix>) ];
environment.systemPackages = with pkgs; [
nextcloud-client
gimp
inkscape
imagemagick
#bitwig-studio
#unstable.sonic-visualiser
sononym-crawler

View file

@ -33,10 +33,10 @@ in {
# window-manager : Xmonad
# -----------------------
desktopManager = { xterm.enable = false; };
displayManager.defaultSession = "none+xmonad";
displayManager.autoLogin.enable = true;
displayManager.defaultSession = lib.mkDefault "none+xmonad";
displayManager.autoLogin.enable = lib.mkDefault true;
displayManager.autoLogin.user = cfg.autoLoginUser;
displayManager.lightdm = { enable = true; };
displayManager.lightdm.enable = lib.mkDefault true;
windowManager = {
xmonad.enable = true;
xmonad.enableContribAndExtras = true;

View file

@ -131,7 +131,9 @@ let
};
hostPattern = name:
if name == "porani" then
if name == "sternchen" then
"${name}.secret"
else if name == "porani" then
"${name}.secret"
else if name == "dummy" then
"95.217.223.75"

View file

@ -2,6 +2,14 @@
{ config, lib, ... }: {
services.openssh.knownHosts = {
"sternchen.secret" = {
hostNames = [
"sternchen.secret"
config.module.cluster.services.tinc.secret.hosts.sternchen.tincIp
];
publicKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILriD/0+65L1mkbjKENwpvB3wUMXz/rEf9J8wuJjJa0q";
};
"sterni.private" = {
hostNames = [
"sterni.private"

View file

@ -4,7 +4,7 @@ let
homeFolder = "/browsers";
in {
programs.custom.browser = {
enable = true;
enable = lib.mkDefault true;
configList = {
development = {
home = "${homeFolder}/development-browser";

View file

@ -15,14 +15,15 @@ let
in pkgs.writers.writeBashBin "all-licenses"
(lib.concatStringsSep "\n" licenses);
#zettlr = pkgs.writers.writeBashBin "zettlr" ''
# if [[ ! -x "$HOME/programs/Zettlr.AppImage" ]]
# then
# echo "$HOME/programs/Zettlr.AppImage does not exist or is not executable";
# exit 1
# fi
# exec ${pkgs.appimage-run}/bin/appimage-run "$HOME/programs/Zettlr.AppImage"
#'';
zettlr = pkgs.writers.writeBashBin "zettlr" ''
if [[ ! -x "$HOME/programs/Zettlr.AppImage" ]]
then
echo "$HOME/programs/Zettlr.AppImage does not exist or is not executable";
exit 1
fi
exec ${pkgs.appimage-run}/bin/appimage-run "$HOME/programs/Zettlr.AppImage"
'';
#zettlr = unstablePkgs.zettlr;
parseUrl = pkgs.writeBashBin "parseUrl" ''
echo "$@" | \
@ -38,8 +39,6 @@ let
${pkgs.xclip}/bin/xclip
'';
zettlr = unstablePkgs.zettlr;
replaceLinks = pkgs.writers.writeBashBin "replace-link-with-content" # sh
''
if [ ! -L "$1" ]
@ -135,6 +134,7 @@ let
in {
# ffmpeg scripts to encode movies
programs.custom.ffmpeg.enable = true;
# gnupg setup

View file

@ -1,6 +1,7 @@
{ config, ... }: {
{ config, ... }:
{
# make sure ssh is only available trough the tinc
networking.firewall.extraCommands = ''
iptables -t nat -A PREROUTING ! -i tinc.private -p tcp -m tcp --dport 22 -j REDIRECT --to-ports 0
'';
#networking.firewall.extraCommands = ''
# iptables -t nat -A PREROUTING ! -i tinc.private -p tcp -m tcp --dport 22 -j REDIRECT --to-ports 0
#'';
}

View file

@ -3,7 +3,7 @@
environment.systemPackages = with pkgs; [ xclip xtrlock-pam xorg.xev ];
system.custom.x11 = {
enable = true;
enable = lib.mkDefault true;
autoLoginUser = config.users.users.mainUser.name;
};