summaryrefslogtreecommitdiff
path: root/modules/home
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-10-02 22:54:57 -0500
committerTim Keller <tjkeller.xyz>2024-10-02 22:54:57 -0500
commit2720ea4a2988b449de8aeedb4e173eb1f0900719 (patch)
tree1948dfb3131aba85c755819d16c8dfbb3019d487 /modules/home
parent9d1b3f23a64506988608143f4bca8ab4c5141d3e (diff)
downloadnixos-2720ea4a2988b449de8aeedb4e173eb1f0900719.tar.xz
nixos-2720ea4a2988b449de8aeedb4e173eb1f0900719.zip
userDetails added etc
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/default.nix6
-rw-r--r--modules/home/firefox.nix11
-rw-r--r--modules/home/git.nix6
3 files changed, 8 insertions, 15 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix
index bce93ba..e60bbff 100644
--- a/modules/home/default.nix
+++ b/modules/home/default.nix
@@ -1,7 +1,7 @@
-{ lib, ... }: {
+{ lib, userDetails, ... }: {
home = {
- username = "timmy";
- homeDirectory = "/home/timmy";
+ username = userDetails.username;
+ homeDirectory = userDetails.home.root;
stateVersion = "24.05";
};
diff --git a/modules/home/firefox.nix b/modules/home/firefox.nix
index 3ae1278..0977bbe 100644
--- a/modules/home/firefox.nix
+++ b/modules/home/firefox.nix
@@ -1,4 +1,4 @@
-{
+{ userDetails, ... }: {
programs.firefox = {
# TODO see if there is way to login to moz account in profile
enable = true;
@@ -28,7 +28,7 @@
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.compactmode.show" = true;
"browser.uidensity" = 1; # Compact
- "browser.download.dir" = /home/timmy/dls; # FF will create this dir if it doesn't exist
+ "browser.download.dir" = userDetails.home.downloads; # FF will create this dir if it doesn't exist
"browser.aboutConfig.showWarning" = false; # arkenfox does
"app.normandy.first_run" = false;
"browser.uiCustomization.state" = builtins.readFile ./resources/firefox/uiCustomization.json; # Toolbar etc.
@@ -51,13 +51,6 @@
id = 1;
inherit search;
};
- Test = {
- id = 2;
- inherit search;
- inherit arkenfox;
- inherit userChrome;
- inherit settings;
- };
};
};
}
diff --git a/modules/home/git.nix b/modules/home/git.nix
index e1a36c3..9d15a90 100644
--- a/modules/home/git.nix
+++ b/modules/home/git.nix
@@ -1,7 +1,7 @@
-{
+{ userDetails, ... }: {
programs.git = {
enable = true;
- userName = "Tim Keller"; # TODO set to user description
- userEmail = "tjk@tjkeller.xyz"; # TODO set to user email
+ userName = userDetails.fullname;
+ userEmail = userDetails.email;
};
}