use the home-manager module in chmura

This commit is contained in:
jacekpoz 2024-02-29 01:12:02 +01:00
parent ff448d6052
commit fb0f919ffb
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
3 changed files with 51 additions and 21 deletions

View file

@ -1,7 +1,6 @@
{
config,
inputs,
pkgs,
...
}: let
username = config.myOptions.other.system.username;
@ -39,26 +38,6 @@ in {
users.users.${username} = {
extraGroups = [ "docker" ];
packages = with pkgs; [
curl
neovim
neofetch
git
wireguard-tools
btop
docker
docker-compose
nodePackages_latest.pnpm
nodePackages_latest.prisma
prisma-engines
openssl
pkg-config
direnv
nix-direnv
git-annex
];
};
services.openssh = {
@ -96,6 +75,7 @@ in {
hostname = "chmura";
username = "chmura";
};
home-manager.enable = true;
};
programs = {
git = {

View file

@ -15,6 +15,7 @@ _: {
./jacekpoz.pl.nix
./ntfy-sh.nix
./owncast.nix
./programs.nix
#./stalwart.nix
./trollface.pl
#./qbittorrent.nix

49
hosts/chmura/programs.nix Normal file
View file

@ -0,0 +1,49 @@
{
config,
pkgs,
...
}: let
username = config.myOptions.other.system.username;
in {
home-manager.users.${username} = {
home.packages = with pkgs; [
git
eza
ripgrep
unzip
trash-cli
dig
xdg-ninja
gnupg
age
fd
asciinema
asciinema-agg
du-dust
file
git-annex
croc
uutils-coreutils
imagemagick
psmisc
nnn
jq
fq
gnumake
gdb
tea
codeberg-cli
progress
parallel
p7zip
xxd
lshw
tree
smartmontools
curl
fastfetch
wireguard-tools
];
};
}