mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-13 19:00:19 +01:00
split local / sensitive info
This commit is contained in:
parent
52ed476c60
commit
d61ade383f
4 changed files with 21 additions and 5 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
localinfo.nix
|
||||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
9
home.nix
9
home.nix
|
|
@ -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
9
localinfo.nix.template
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
username = "string";
|
||||
homeDir = "path";
|
||||
|
||||
email = "email";
|
||||
|
||||
keyboard = "null or libinput id";
|
||||
touchpad = "null or libinput id";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue