From 5a9ff77a29a760edae5540f38f1542d9f4a2e52a Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Sun, 29 Jun 2025 19:34:12 +0530 Subject: [PATCH] home/natto: split programs.nix Signed-off-by: Amneesh Singh --- home/natto/browser.nix | 18 +++++++++++++ home/natto/default.nix | 9 ++++--- home/natto/{programs.nix => foot.nix} | 39 +-------------------------- home/natto/mpv.nix | 13 +++++++++ home/natto/pass.nix | 6 +++++ home/natto/pdf.nix | 19 +++++++++++++ 6 files changed, 63 insertions(+), 41 deletions(-) create mode 100644 home/natto/browser.nix rename home/natto/{programs.nix => foot.nix} (50%) create mode 100644 home/natto/mpv.nix create mode 100644 home/natto/pass.nix create mode 100644 home/natto/pdf.nix diff --git a/home/natto/browser.nix b/home/natto/browser.nix new file mode 100644 index 0000000..307ff6e --- /dev/null +++ b/home/natto/browser.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +{ + programs = { + firefox = { + enable = true; + profiles.natto = { + name = "natto"; + }; + }; + chromium = { + enable = true; + package = pkgs.ungoogled-chromium; + }; + }; + home.sessionVariables = { + BROWSER = "firefox"; + }; +} diff --git a/home/natto/default.nix b/home/natto/default.nix index 5cf0cee..2e1c107 100644 --- a/home/natto/default.nix +++ b/home/natto/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ ... }: { home = { homeDirectory = "/home/natto"; @@ -8,12 +8,15 @@ imports = [ ./email.nix - ./programs.nix + ./pass.nix + ./browser.nix + ./pdf.nix + ./mpv.nix + ./foot.nix # ./xsession.nix ./wayland.nix ./pkgs.nix ./stuff.nix - ./emacs.nix ./gtk.nix ./dunst.nix ./git.nix diff --git a/home/natto/programs.nix b/home/natto/foot.nix similarity index 50% rename from home/natto/programs.nix rename to home/natto/foot.nix index fbb939b..245d36e 100644 --- a/home/natto/programs.nix +++ b/home/natto/foot.nix @@ -1,32 +1,6 @@ -{ pkgs, config, conf, ... }: +{ conf, ... }: { programs = { - firefox = { - enable = true; - profiles.natto = { - name = "natto"; - }; - }; - chromium = { - enable = true; - package = pkgs.ungoogled-chromium; - }; - zathura = { - enable = true; - extraConfig = builtins.readFile ./config/zathura/zathurarc; - options = { - recolor = true; - recolor-lightcolor = "rgba(0,0,0,0)"; - default-bg = "rgba(0,0,0,0.8)"; - }; - }; - - sioyek = { - enable = true; - }; - - password-store.enable = true; - go.enable = true; foot = { enable = true; settings = { @@ -56,16 +30,5 @@ }; }; }; - mpv = { - enable = true; - config = { - force-window = true; - keep-open = true; - save-position-on-quit = true; - }; - }; - }; - home.sessionVariables = { - BROWSER = "firefox"; }; } diff --git a/home/natto/mpv.nix b/home/natto/mpv.nix new file mode 100644 index 0000000..f870d5e --- /dev/null +++ b/home/natto/mpv.nix @@ -0,0 +1,13 @@ +{ ... }: +{ + programs = { + mpv = { + enable = true; + config = { + force-window = true; + keep-open = true; + save-position-on-quit = true; + }; + }; + }; +} diff --git a/home/natto/pass.nix b/home/natto/pass.nix new file mode 100644 index 0000000..2ba33a0 --- /dev/null +++ b/home/natto/pass.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + programs = { + password-store.enable = true; + }; +} diff --git a/home/natto/pdf.nix b/home/natto/pdf.nix new file mode 100644 index 0000000..5506247 --- /dev/null +++ b/home/natto/pdf.nix @@ -0,0 +1,19 @@ +{ ... }: +{ + programs = { + zathura = { + enable = true; + extraConfig = builtins.readFile ./config/zathura/zathurarc; + options = { + recolor = true; + recolor-lightcolor = "rgba(0,0,0,0)"; + default-bg = "rgba(0,0,0,0.8)"; + }; + }; + + sioyek = { + enable = true; + }; + }; +} +