A bunch of random stuff

- XDG user directories
- Fingerprint reader on `lime`
- Enable tailscale
- Enable `iamb` on `lime`
This commit is contained in:
Riley Apeldoorn 2023-06-17 20:09:52 +02:00
parent a2996d1c6e
commit 027bbd01c1
6 changed files with 37 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./gui.nix ./gui.nix
./nix.nix ./nix.nix
./ssh.nix ./ssh.nix
./vpn.nix
]; ];
config = { config = {

9
shared/core/vpn.nix Normal file
View file

@ -0,0 +1,9 @@
{ ... }: {
services.tailscale = {
# TODO: configure declaratively
enable = true;
interfaceName = "ts0";
};
}

View file

@ -6,6 +6,7 @@
./bash.nix ./bash.nix
./git.nix ./git.nix
./mpd.nix ./mpd.nix
./xdg.nix
./programs.nix ./programs.nix
./matrix.nix ./matrix.nix
./theme.nix ./theme.nix

23
shared/home/xdg.nix Normal file
View file

@ -0,0 +1,23 @@
{ config, ... }:
let homeDir = config.home.homeDirectory;
in {
xdg.userDirs = {
# Let Nix manage the XDG directories
enable = true;
createDirectories = true;
# Define the paths
download = "/tmp";
music = "${homeDir}/music";
documents = "${homeDir}/docs";
pictures = "${homeDir}/pics";
# Disable generation of these
desktop = null;
publicShare = null;
templates = null;
videos = null;
};
}

View file

@ -7,6 +7,8 @@
backups.enable = true; backups.enable = true;
}; };
services.fprintd.enable = true;
networking.hostName = "lime"; networking.hostName = "lime";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;

View file

@ -8,4 +8,5 @@
battery.name = "BAT0"; battery.name = "BAT0";
}; };
}; };
programs.iamb.enable = true;
} }