refactoring and cleanup
This commit is contained in:
parent
588190e7b6
commit
a1d0ca2d65
@ -14,7 +14,6 @@ toplevel@{ inputs, withSystem, config, ... }:
|
|||||||
util
|
util
|
||||||
swayland
|
swayland
|
||||||
web
|
web
|
||||||
work
|
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -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, ... }: {
|
||||||
@ -506,11 +492,5 @@ toplevel@{ moduleWithSystem, ... }: {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
work = moduleWithSystem (
|
|
||||||
top@{ ... }:
|
|
||||||
perSystem@{ pkgs, ... }: {
|
|
||||||
programs.chromium = { enable = true; package = pkgs.ungoogled-chromium; };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user