home/natto: split programs.nix

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-06-29 19:34:12 +05:30
parent 87a6c1a862
commit 5a9ff77a29
6 changed files with 63 additions and 41 deletions

18
home/natto/browser.nix Normal file
View File

@@ -0,0 +1,18 @@
{ pkgs, ... }:
{
programs = {
firefox = {
enable = true;
profiles.natto = {
name = "natto";
};
};
chromium = {
enable = true;
package = pkgs.ungoogled-chromium;
};
};
home.sessionVariables = {
BROWSER = "firefox";
};
}

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { ... }:
{ {
home = { home = {
homeDirectory = "/home/natto"; homeDirectory = "/home/natto";
@@ -8,12 +8,15 @@
imports = [ imports = [
./email.nix ./email.nix
./programs.nix ./pass.nix
./browser.nix
./pdf.nix
./mpv.nix
./foot.nix
# ./xsession.nix # ./xsession.nix
./wayland.nix ./wayland.nix
./pkgs.nix ./pkgs.nix
./stuff.nix ./stuff.nix
./emacs.nix
./gtk.nix ./gtk.nix
./dunst.nix ./dunst.nix
./git.nix ./git.nix

View File

@@ -1,32 +1,6 @@
{ pkgs, config, conf, ... }: { conf, ... }:
{ {
programs = { 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 = { foot = {
enable = true; enable = true;
settings = { settings = {
@@ -56,16 +30,5 @@
}; };
}; };
}; };
mpv = {
enable = true;
config = {
force-window = true;
keep-open = true;
save-position-on-quit = true;
};
};
};
home.sessionVariables = {
BROWSER = "firefox";
}; };
} }

13
home/natto/mpv.nix Normal file
View File

@@ -0,0 +1,13 @@
{ ... }:
{
programs = {
mpv = {
enable = true;
config = {
force-window = true;
keep-open = true;
save-position-on-quit = true;
};
};
};
}

6
home/natto/pass.nix Normal file
View File

@@ -0,0 +1,6 @@
{ ... }:
{
programs = {
password-store.enable = true;
};
}

19
home/natto/pdf.nix Normal file
View File

@@ -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;
};
};
}