improvements

This commit is contained in:
Lukas Wurzinger 2024-02-21 22:08:11 +01:00
parent 13fab45975
commit ee100f5496
9 changed files with 52 additions and 56 deletions

View file

@ -4,4 +4,6 @@
overrideDevices = false; overrideDevices = false;
overrideFolders = false; overrideFolders = false;
}; };
systemd.user.services.syncthing.wantedBy = ["default.target"];
} }

View file

@ -1,12 +1,24 @@
{ {
config,
lib, lib,
pkgs, pkgs,
... ...
}: { }: {
programs = { programs = {
direnv.enable = true;
command-not-found.enable = false; command-not-found.enable = false;
git = {
enable = true;
lfs.enable = true;
};
nix-index = {
enable = true;
enableBashIntegration = true;
};
direnv.enable = true;
bash = { bash = {
promptInit = '' promptInit = ''
if [[ -v SSH_CLIENT && -v SSH_CONNECTION && -v SSH_TTY ]]; then if [[ -v SSH_CLIENT && -v SSH_CONNECTION && -v SSH_TTY ]]; then
@ -27,10 +39,21 @@
shopt -s checkwinsize shopt -s checkwinsize
eval "$(${lib.getExe pkgs.direnv} hook bash)" eval "$(${lib.getExe config.programs.direnv.package} hook bash)"
''; '';
}; };
}; };
environment.systemPackages = [pkgs.comma]; environment = {
systemPackages = [
pkgs.bottom
pkgs.comma
pkgs.helix
];
variables = {
EDITOR = lib.getExe pkgs.helix;
VISUAL = lib.getExe pkgs.helix;
};
};
} }

View file

@ -1,16 +1,13 @@
{ {
imports = [ imports = [
./avahi.nix ./avahi.nix
./bash.nix
./boot.nix ./boot.nix
./cli.nix
./dbus.nix ./dbus.nix
./fs.nix ./fs.nix
./fwupd.nix ./fwupd.nix
./git.nix
./helix.nix
./nix.nix ./nix.nix
./opengl.nix ./opengl.nix
./openssh.nix
./readline.nix ./readline.nix
./ssh.nix ./ssh.nix
./sudo.nix ./sudo.nix

View file

@ -1,6 +0,0 @@
{
programs.git = {
enable = true;
lfs.enable = true;
};
}

View file

@ -1,15 +0,0 @@
{
lib,
pkgs,
...
}: let
package = pkgs.helix;
in {
environment = {
systemPackages = [package];
variables = {
EDITOR = lib.getExe package;
VISUAL = lib.getExe package;
};
};
}

View file

@ -2,7 +2,7 @@
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
driSupport = true; driSupport = true;
extraPackages = with pkgs; [ extraPackages = [
pkgs.libvdpau-va-gl pkgs.libvdpau-va-gl
pkgs.vaapiVdpau pkgs.vaapiVdpau
]; ];

View file

@ -1,23 +0,0 @@
{
environment.persistence."/persist".files = [
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub"
];
age.identityPaths = ["/persist/etc/ssh/ssh_host_ed25519_key"];
services.openssh = {
enable = true;
openFirewall = true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
}

View file

@ -1,4 +1,26 @@
{lib, ...}: { {lib, ...}: {
environment.persistence."/persist".files = [
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub"
];
age.identityPaths = ["/persist/etc/ssh/ssh_host_ed25519_key"];
services.openssh = {
enable = true;
openFirewall = true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
programs.ssh.startAgent = true; programs.ssh.startAgent = true;
environment.etc."ssh/ssh_config".text = lib.mkAfter '' environment.etc."ssh/ssh_config".text = lib.mkAfter ''

View file

@ -205,7 +205,3 @@ if chose helix; then
rm --recursive --force -- "$helixdir" rm --recursive --force -- "$helixdir"
ln --force --symbolic -- "$PWD/home/helix" "$helixdir" ln --force --symbolic -- "$PWD/home/helix" "$helixdir"
fi fi
if chose syncthing; then
systemctl --user enable syncthing.service
fi