Compare commits

...

2 Commits

Author SHA1 Message Date
a1d0ca2d65
refactoring and cleanup 2024-08-02 06:54:15 +02:00
588190e7b6
media config 2024-08-02 06:40:39 +02:00
2 changed files with 151 additions and 173 deletions

View File

@ -14,7 +14,6 @@ toplevel@{ inputs, withSystem, config, ... }:
util util
swayland swayland
web web
work
]; ];
}); });
} }

View File

@ -2,21 +2,9 @@ toplevel@{ moduleWithSystem, ... }: {
flake.homeManagerModules = { flake.homeManagerModules = {
base = moduleWithSystem ( base = moduleWithSystem (
top@{ ... }: top@{ ... }:
perSystem@{ pkgs, config, ... }: { perSystem@{ config, ... }: {
programs.home-manager.enable = true; programs.home-manager.enable = true;
home = { home.stateVersion = toplevel.config.flake.stateVersion;
stateVersion = toplevel.config.flake.stateVersion;
username = "ivand";
homeDirectory = "/home/ivand";
sessionVariables = {
EDITOR = "nvim";
PAGER = "bat";
TERM = "screen-256color";
MAKEFLAGS = "-j 4";
};
pointerCursor = with pkgs; { name = "catppuccin-mocha-green-cursors"; package = catppuccin-cursors.mochaGreen; size = 24; gtk.enable = true; };
packages = with pkgs; [ transmission_4 speedtest-cli nvim ];
};
xdg = { xdg = {
enable = true; enable = true;
userDirs = with config; { userDirs = with config; {
@ -47,6 +35,13 @@ toplevel@{ moduleWithSystem, ... }: {
ivand = moduleWithSystem ( ivand = moduleWithSystem (
top@{ ... }: top@{ ... }:
perSystem@{ pkgs, config, ... }: { perSystem@{ pkgs, config, ... }: {
home = {
username = "ivand";
homeDirectory = "/home/ivand";
sessionVariables = { EDITOR = "nvim"; PAGER = "bat"; TERM = "screen-256color"; MAKEFLAGS = "-j 4"; };
pointerCursor = with pkgs; { name = "catppuccin-mocha-green-cursors"; package = catppuccin-cursors.mochaGreen; size = 24; gtk.enable = true; };
packages = with pkgs; [ transmission_4 speedtest-cli nvim ];
};
programs = { programs = {
password-store = { enable = true; package = pkgs.pass.withExtensions (e: with e; [ pass-otp pass-file ]); settings = { PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store"; }; }; password-store = { enable = true; package = pkgs.pass.withExtensions (e: with e; [ pass-otp pass-file ]); settings = { PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store"; }; };
git = { git = {
@ -60,22 +55,36 @@ toplevel@{ moduleWithSystem, ... }: {
}; };
ssh = { ssh = {
enable = true; enable = true;
matchBlocks = { matchBlocks = { vpsfree = { hostname = "37.205.13.29"; user = "ivand"; }; vpsfree-root = { hostname = "37.205.13.29"; user = "root"; }; };
vpsfree = {
hostname = "37.205.13.29";
user = "ivand";
};
vpsfree-root = {
hostname = "37.205.13.29";
user = "root";
};
};
}; };
gpg.enable = true; gpg.enable = true;
}; };
services = { gpg-agent = { enable = true; enableBashIntegration = true; enableZshIntegration = true; enableNushellIntegration = true; pinentryPackage = pkgs.pinentry-qt; }; }; services = { gpg-agent = { enable = true; enableBashIntegration = true; enableZshIntegration = true; enableNushellIntegration = true; pinentryPackage = pkgs.pinentry-qt; }; };
} }
); );
util = moduleWithSystem (
top@{ ... }:
perSystem@{ ... }: {
programs = {
tealdeer = {
enable = true;
settings = { display = { compact = true; }; updates = { auto_update = true; }; };
};
bottom = {
enable = true;
settings = {
flags = { rate = "250ms"; };
row = [
{ ratio = 40; child = [{ type = "cpu"; } { type = "mem"; } { type = "net"; }]; }
{ ratio = 35; child = [{ type = "temp"; } { type = "disk"; }]; }
{ ratio = 40; child = [{ type = "proc"; default = true; }]; }
];
};
};
bat.enable = true;
};
}
);
shell = moduleWithSystem ( shell = moduleWithSystem (
top@{ ... }: top@{ ... }:
perSystem@{ pkgs, ... }: { perSystem@{ pkgs, ... }: {
@ -157,29 +166,6 @@ toplevel@{ moduleWithSystem, ... }: {
}; };
} }
); );
util = moduleWithSystem (
top@{ ... }:
perSystem@{ ... }: {
programs = {
tealdeer = {
enable = true;
settings = { display = { compact = true; }; updates = { auto_update = true; }; };
};
bottom = {
enable = true;
settings = {
flags = { rate = "250ms"; };
row = [
{ ratio = 40; child = [{ type = "cpu"; } { type = "mem"; } { type = "net"; }]; }
{ ratio = 35; child = [{ type = "temp"; } { type = "disk"; }]; }
{ ratio = 40; child = [{ type = "proc"; default = true; }]; }
];
};
};
bat.enable = true;
};
}
);
swayland = moduleWithSystem ( swayland = moduleWithSystem (
top@{ ... }: top@{ ... }:
perSystem@{ pkgs, config, ... }: { perSystem@{ pkgs, config, ... }: {
@ -273,8 +259,7 @@ toplevel@{ moduleWithSystem, ... }: {
}; };
}; };
systemd = { enable = true; target = "sway-session.target"; }; systemd = { enable = true; target = "sway-session.target"; };
style = /* CSS */ style = ''
''
@define-color rosewater #f5e0dc; @define-color rosewater #f5e0dc;
@define-color flamingo #f2cdcd; @define-color flamingo #f2cdcd;
@define-color pink #f5c2e7; @define-color pink #f5c2e7;
@ -431,8 +416,8 @@ toplevel@{ moduleWithSystem, ... }: {
font = { package = pkgs.fira-code; name = "FiraCodeNFM-Reg"; }; font = { package = pkgs.fira-code; name = "FiraCodeNFM-Reg"; };
settings = { background_opacity = "0.90"; cursor_shape = "beam"; term = "screen-256color"; }; settings = { background_opacity = "0.90"; cursor_shape = "beam"; term = "screen-256color"; };
}; };
imv.enable = true; imv = { enable = true; settings = { options.fullscreen = true; }; };
mpv.enable = true; mpv = { enable = true; scripts = with pkgs.mpvScripts; [ uosc thumbfast ]; };
bash.profileExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway ''; bash.profileExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
zsh.loginExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway ''; zsh.loginExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
nushell.loginFile.text = '' if (tty) == "/dev/tty1" { sway } ''; nushell.loginFile.text = '' if (tty) == "/dev/tty1" { sway } '';
@ -507,11 +492,5 @@ toplevel@{ moduleWithSystem, ... }: {
}; };
} }
); );
work = moduleWithSystem (
top@{ ... }:
perSystem@{ pkgs, ... }: {
programs.chromium = { enable = true; package = pkgs.ungoogled-chromium; };
}
);
}; };
} }