121 lines
3 KiB
Nix
121 lines
3 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
home.username = "admin";
|
|
home.homeDirectory = "/home/admin";
|
|
home.stateVersion = "25.05";
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# User-level flatpaks
|
|
services.flatpak = {
|
|
enable = true;
|
|
packages = [ ];
|
|
update = {
|
|
auto.enable = true;
|
|
auto.onCalendar = "daily";
|
|
onActivation = false;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
distrobox = {
|
|
enable = true;
|
|
settings = {
|
|
container_always_pull = "1";
|
|
container_generate_entry = "1";
|
|
container_manager = "podman";
|
|
container_name_default = "ubuntu";
|
|
container_image_default = "ghcr.io/ublue-os/ubuntu-toolbox:latest";
|
|
non_interactive = "1";
|
|
skip_workdir = "1";
|
|
};
|
|
containers = {
|
|
ubuntu = {
|
|
image = "ubuntu:latest";
|
|
entry = true;
|
|
};
|
|
};
|
|
};
|
|
home-manager.enable = true;
|
|
vscode = {
|
|
enable = true;
|
|
|
|
# Choose between VS Code and Codium:
|
|
# package = pkgs.vscode;
|
|
package = pkgs.vscodium;
|
|
|
|
# You can declaratively enable extensions here:
|
|
profiles.default.extensions = with pkgs.vscode-extensions; [
|
|
dracula-theme.theme-dracula
|
|
yzhang.markdown-all-in-one
|
|
];
|
|
};
|
|
};
|
|
|
|
# programs.emacs.enable = true
|
|
# programs.vim.enable = true
|
|
# programs.neovim.enable = true
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# decibels # default GNOME audio player
|
|
gnome-calendar # default GNOME calendar
|
|
# gnome-contacts # default GNOME contacts
|
|
|
|
firefox # Mozilla web browser
|
|
# google-chrome # web browser from Google
|
|
# chromium # open source web browser from Google
|
|
# brave # privacy oriented web browser
|
|
# opera # fast alternative web browser
|
|
# vivaldi # powerful and personal web browser
|
|
|
|
thunderbird # full-featured Mozilla e-mail client
|
|
# geary # default GNOME email client
|
|
|
|
ptyxis # container aware GNOME terminal
|
|
# alacritty # GPU accelerated terminal emulator
|
|
# kitty # GPU accelerated terminal emulator
|
|
|
|
jetbrains-toolbox # fresh versions of Android Studio and other tools
|
|
# devpod # open-source code spaces
|
|
|
|
pods # Podman desktop application
|
|
|
|
];
|
|
|
|
home.file = {
|
|
".justfile".text = ''
|
|
[no-cd]
|
|
manage:
|
|
$EDITOR ~/.config/home-manager/home.nix
|
|
|
|
[no-cd]
|
|
switch:
|
|
home-manager switch --flake ~/.config/home-manager#$USER
|
|
|
|
[no-cd]
|
|
rebuild:
|
|
sudo nixos-rebuild switch --flake /etc/nixos#local-$HOSTNAME
|
|
|
|
[no-cd]
|
|
clean:
|
|
nix-collect-garbage -d
|
|
'';
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
# you can change the default terminal and editor here
|
|
TERMINAL = "${pkgs.ghostty}/bin/ghostty";
|
|
DEFAULT_TERMINAL = "${pkgs.ghostty}/bin/ghostty";
|
|
EDITOR = "${pkgs.micro}/bin/micro";
|
|
DBX_CONTAINER_HOME_PREFIX = "$HOME/distrobox";
|
|
GDK_BACKEND = "x11 virt-manager"
|
|
};
|
|
|
|
}
|