nixos-config/hosts/home.nix

182 lines
3.9 KiB
Nix
Raw Normal View History

2022-09-17 16:50:50 +02:00
#
# General Home-manager configuration
#
# flake.nix
# ├─ ./hosts
# │ └─ home.nix *
# └─ ./modules
# ├─ ./editors
# │ └─ default.nix
# ├─ ./programs
# │ └─ default.nix
# ├─ ./services
# │ └─ default.nix
# └─ ./shell
# └─ default.nix
#
2024-10-05 10:32:00 +02:00
{ config, lib, pkgs, user, catppuccin, ... }:
#{ config, lib, pkgs, user, ... }:
2022-09-17 16:50:50 +02:00
{
2024-10-05 10:32:00 +02:00
imports =
[ catppuccin.homeManagerModules.catppuccin ] ++
2022-10-22 16:31:30 +02:00
(import ../modules/editors) ++
2022-09-17 16:50:50 +02:00
(import ../modules/programs) ++
2022-11-03 17:03:16 +01:00
(import ../modules/programs/configs) ++
2022-09-17 16:50:50 +02:00
(import ../modules/services) ++
(import ../modules/shell);
home = {
username = "${user}";
homeDirectory = "/home/${user}";
packages = with pkgs; [
2023-09-03 10:17:38 +02:00
# Terminal
2023-10-28 11:37:56 +02:00
pfetch # Minimal fetch
ranger # File Manager
gnupg # sign and authorize 2nd Fac
2023-10-28 11:37:56 +02:00
xdg-utils
steam
wakelan
2023-10-28 11:37:56 +02:00
# dev ols
gcc
gnumake
gnupatch
gnulib
yubioath-flutter
nitrokey-app
2022-12-20 19:45:11 +01:00
2023-10-28 11:37:56 +02:00
tailscale
wireguard-tools
2022-09-17 16:50:50 +02:00
2023-10-28 11:37:56 +02:00
# VideAudio
mpv # Media Player
2022-09-17 16:50:50 +02:00
2023-09-03 10:17:38 +02:00
# Apps
2023-10-28 11:37:56 +02:00
galculator
tdesktop
hdparm
python3Full
2023-10-28 11:37:56 +02:00
android-tools
calibre
mtpfs
vimiv-qt
2024-09-14 15:03:30 +02:00
freecad
2023-09-03 10:17:38 +02:00
2023-10-28 11:37:56 +02:00
# Fileanagement
#okular # PDF viewer
#gnome.file-roller # Archive Manager
2024-01-06 11:19:07 +01:00
ark
2023-10-28 11:37:56 +02:00
pcmanfm # File Manager
rsync # Syncer $ rsync -r dir1/ dir2/
unzip # Zip files
unrar # Rar files
2024-09-30 20:59:37 +02:00
epapirus-icon-theme
arc-theme
2023-09-03 10:17:38 +02:00
2024-09-30 20:59:37 +02:00
# General configuration
2023-10-28 11:37:56 +02:00
keepassxc
libreoffice
2024-09-14 15:03:30 +02:00
gimp
2022-09-17 16:50:50 +02:00
# Flatpak
prusa-slicer
2024-06-03 18:31:33 +02:00
orca-slicer
#vscodium
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions; [
vscodevim.vim
github.copilot
2023-10-28 11:37:56 +02:00
#ms-python.python
ms-vscode.cpptools
dracula-theme.theme-dracula
2024-10-05 10:32:00 +02:00
#catppuccin.catppuccin-vsc
#catppuccin.catppuccin-vsc-icons
];
})
2024-08-10 06:10:03 +02:00
sdkmanager
android-tools
2022-09-17 16:50:50 +02:00
];
file.".config/wall".source = ../modules/themes/wall.jpg;
2022-10-15 15:41:21 +02:00
file.".config/lockwall".source = ../modules/themes/lockwall.jpg;
2024-10-05 10:32:00 +02:00
# pointerCursor = { # This will set cursor systemwide so applications can not choose their own
# name = "Dracula-cursors";
# package = pkgs.dracula-theme;
# size = 16;
# gtk.enable = true;
# };
2023-09-22 19:22:54 +02:00
stateVersion = "23.05";
2022-09-17 16:50:50 +02:00
};
2024-10-05 10:32:00 +02:00
catppuccin = {
2024-10-14 12:16:47 +02:00
enable = false;
2024-10-05 10:32:00 +02:00
accent = "lavender";
flavor = "mocha";
pointerCursor.enable = true;
};
gtk.catppuccin = {
enable = true;
accent = "lavender";
flavor = "mocha";
icon = {
enable = true;
accent = "lavender";
flavor = "mocha";
};
};
qt.style.catppuccin = {
enable = true;
accent = "lavender";
flavor = "mocha";
apply = true;
};
2022-09-17 16:50:50 +02:00
programs = {
home-manager.enable = true;
2024-10-05 10:32:00 +02:00
alacritty = {
settings.font.size = 11;
catppuccin = {
enable = true;
flavor = "mocha";
};
};
btop = {
catppuccin = {
enable = true;
flavor = "mocha";
};
};
swaylock.catppuccin.enable = false;
2022-09-17 16:50:50 +02:00
};
2022-12-20 19:45:11 +01:00
2024-04-01 15:45:28 +02:00
# gtk = { # Theming
# enable = true;
# theme = {
# name = "Dracula";
# package = pkgs.dracula-theme;
# };
# iconTheme = {
# name = "Papirus-Dark";
# package = pkgs.papirus-icon-theme;
# };
# font = {
2024-05-02 14:16:25 +02:00
# name = "Cascadia Code"; # or FiraCode Nerd Font Mono Medium
2024-04-01 15:45:28 +02:00
# }; # Cursor is declared under home.pointerCursor
# };
2022-12-17 20:08:59 +01:00
systemd.user.services.mpris-proxy = {
Unit.Description = "Mpris proxy";
Unit.After = [ "network.target" "sound.target" ];
Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
Install.WantedBy = [ "default.target" ];
};
2022-09-17 16:50:50 +02:00
}