split local / sensitive info

This commit is contained in:
Quentin Boyer 2021-06-20 22:13:29 +02:00
parent 52ed476c60
commit d61ade383f
4 changed files with 21 additions and 5 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
localinfo.nix

View file

@ -1,5 +1,8 @@
{ pkgs, config, ... }:
let
localinfo = import ./localinfo.nix;
in
{
home.packages = with pkgs; [
bitwarden
@ -99,12 +102,12 @@
command = "waybar";
}];
input = {
"1:1:AT_Translated_Set_2_keyboard" = {
"${localinfo.keyboard}" = {
xkb_layout = "us";
xkb_variant = "dvp";
xkb_options = "compose:102";
};
"2:7:SynPS/2_Synaptics_TouchPad" = {
"${localinfo.touchpad}" = {
dwt = "disable";
};
};

View file

@ -1,13 +1,16 @@
{ config, pkgs, lib, ... }:
let
localinfo = import ./localinfo.nix;
in
{
imports = [
./graphical.nix
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "traxys";
home.homeDirectory = "/home/traxys";
home.username = localinfo.username;
home.homeDirectory = localinfo.homeDir;
home.sessionVariables = {
EDITOR = "nvim";
@ -41,7 +44,7 @@
git = {
enable = true;
userName = "Quentin Boyer";
userEmail = "quentin+dev@familleboyer.net";
userEmail = localinfo.email;
};
zoxide = {

9
localinfo.nix.template Normal file
View file

@ -0,0 +1,9 @@
{
username = "string";
homeDir = "path";
email = "email";
keyboard = "null or libinput id";
touchpad = "null or libinput id";
}