summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-04-30 21:23:53 +0530
committersinanmohd <sinan@sinanmohd.com>2024-04-30 21:23:53 +0530
commit3fc51de5171feb362b8373273c3e82de2a70e076 (patch)
treeeb3117b25593dd9b13c67bdd36a7c57407130c96 /home
parent2489ed494af18c22d7cd100f4fbbe7ca9a659f6e (diff)
home: home-manager -> home
Diffstat (limited to 'home')
-rw-r--r--home/cez/home.nix12
-rw-r--r--home/common/home.nix13
-rw-r--r--home/common/modules/git.nix15
-rw-r--r--home/wayland/home.nix8
-rw-r--r--home/wayland/modules/foot.nix13
-rw-r--r--home/wayland/modules/mako.nix9
-rw-r--r--home/wayland/modules/zathura.nix15
7 files changed, 85 insertions, 0 deletions
diff --git a/home/cez/home.nix b/home/cez/home.nix
new file mode 100644
index 0000000..a11c07d
--- /dev/null
+++ b/home/cez/home.nix
@@ -0,0 +1,12 @@
+{ ... }: let
+ font = "Sans 13";
+ monoFont = "monospace:size=18";
+in {
+ imports = [ ../wayland/home.nix ];
+
+ services.mako.font = font;
+ programs = {
+ zathura.options.font = font;
+ foot.settings.main.font = monoFont;
+ };
+}
diff --git a/home/common/home.nix b/home/common/home.nix
new file mode 100644
index 0000000..8ec0757
--- /dev/null
+++ b/home/common/home.nix
@@ -0,0 +1,13 @@
+{ config, ... }: let
+ username = config.userdata.name;
+in {
+ imports = [ ./modules/git.nix ];
+
+ programs.home-manager.enable = true;
+
+ home = {
+ inherit username;
+ stateVersion = "23.11";
+ homeDirectory = "/home/${config.home.username}";
+ };
+}
diff --git a/home/common/modules/git.nix b/home/common/modules/git.nix
new file mode 100644
index 0000000..7337f7b
--- /dev/null
+++ b/home/common/modules/git.nix
@@ -0,0 +1,15 @@
+{ config, ... }: let
+ userName = config.userdata.nameFq;
+ userEmail = config.userdata.email;
+in {
+ programs.git = {
+ enable = true;
+ inherit userName;
+ inherit userEmail;
+
+ extraConfig = {
+ color.ui = "auto";
+ init.defaultBranch = "master";
+ };
+ };
+}
diff --git a/home/wayland/home.nix b/home/wayland/home.nix
new file mode 100644
index 0000000..9e3f4ad
--- /dev/null
+++ b/home/wayland/home.nix
@@ -0,0 +1,8 @@
+{ ... }: {
+ imports = [
+ ../common/home.nix
+ ./modules/foot.nix
+ ./modules/zathura.nix
+ ./modules/mako.nix
+ ];
+}
diff --git a/home/wayland/modules/foot.nix b/home/wayland/modules/foot.nix
new file mode 100644
index 0000000..bf1ddc4
--- /dev/null
+++ b/home/wayland/modules/foot.nix
@@ -0,0 +1,13 @@
+{ lib, ... }: {
+ programs.foot = {
+ enable = true;
+
+ settings = {
+ colors.background = "000000";
+ main = {
+ pad = "10x10";
+ font = lib.mkDefault "monospace:size=18";
+ };
+ };
+ };
+}
diff --git a/home/wayland/modules/mako.nix b/home/wayland/modules/mako.nix
new file mode 100644
index 0000000..4280fdf
--- /dev/null
+++ b/home/wayland/modules/mako.nix
@@ -0,0 +1,9 @@
+{ ... }: {
+ services.mako = {
+ enable = true;
+ defaultTimeout = 3000;
+
+ borderSize = 2;
+ backgroundColor = "#000000";
+ };
+}
diff --git a/home/wayland/modules/zathura.nix b/home/wayland/modules/zathura.nix
new file mode 100644
index 0000000..6751f32
--- /dev/null
+++ b/home/wayland/modules/zathura.nix
@@ -0,0 +1,15 @@
+{ lib, ... }: {
+ programs.zathura = {
+ enable = true;
+
+ mappings = {
+ "f" = "toggle_fullscreen";
+ "[fullscreen] f" = "toggle_fullscreen";
+ };
+ options = {
+ font = lib.mkDefault "Sans";
+ statusbar-basename = true;
+ selection-clipboard = "clipboard";
+ };
+ };
+}