126 lines
3.4 KiB
Nix
126 lines
3.4 KiB
Nix
{ config, pkgs, lib, inputs, globalData, ... }:
|
||
|
||
{
|
||
nixpkgs.overlays = lib.mkAfter [
|
||
inputs.myneovim.overlays.default
|
||
inputs.nil.overlays.default
|
||
inputs.vnetod.overlays.default
|
||
inputs.wired.overlays.default
|
||
];
|
||
|
||
programs.zsh.enable = true;
|
||
|
||
nix.settings.trusted-users = lib.mkAfter [ "jan" ];
|
||
|
||
age.secrets.users-jan-passfile.file = ./users-jan-passfile.age;
|
||
users.users.jan = {
|
||
isNormalUser = true;
|
||
extraGroups = [
|
||
"wheel" # Enable ‘sudo’ for the user.
|
||
(lib.mkIf config.networking.networkmanager.enable "networkmanager")
|
||
(lib.mkIf config.virtualisation.docker.enable "docker")
|
||
(lib.mkIf config.services.transmission.enable "transmission")
|
||
(lib.mkIf config.services.kubo.enable config.services.kubo.group)
|
||
(lib.mkIf config.programs.adb.enable "adbusers")
|
||
(lib.mkIf config.programs.adb.enable "plugdev")
|
||
(lib.mkIf config.hardware.pulseaudio.systemWide "pulse-access")
|
||
];
|
||
shell = pkgs.zsh;
|
||
hashedPasswordFile = config.age.secrets.users-jan-passfile.path;
|
||
|
||
openssh.authorizedKeys.keys = globalData.publicKeys.users.jan;
|
||
};
|
||
|
||
users.groups.plugdev = lib.mkIf config.programs.adb.enable { };
|
||
|
||
home-manager.users.jan = {
|
||
imports = [
|
||
./accounts.secret.nix
|
||
./git
|
||
];
|
||
|
||
################################################################################
|
||
# Configs
|
||
################################################################################
|
||
|
||
local.keyboard = {
|
||
enable = true;
|
||
variant = "dvorak,";
|
||
};
|
||
|
||
local.window-manager = {
|
||
xmonad.enable = true;
|
||
polybar.enable = true;
|
||
};
|
||
|
||
xdg.enable = true;
|
||
|
||
local.shell.enable = true;
|
||
|
||
################################################################################
|
||
# Programs
|
||
################################################################################
|
||
|
||
local.programs.terminals.wezterm.enable = lib.mkDefault true;
|
||
|
||
local.programs.editors.neovim.enable = lib.mkDefault true;
|
||
|
||
local.programs.file-managers.vifm.enable = lib.mkDefault true;
|
||
|
||
local.programs.aerc.enable = lib.mkDefault true;
|
||
|
||
local.programs.communication = {
|
||
telegram.enable = lib.mkDefault true;
|
||
matrix.enable = lib.mkDefault true;
|
||
simplex-chat.enable = lib.mkDefault (config.local.system.kernel != "hardened");
|
||
};
|
||
|
||
local.programs.dev-tools = {
|
||
base.enable = lib.mkDefault true;
|
||
nix.enable = lib.mkDefault true;
|
||
web.enable = lib.mkDefault true;
|
||
psql = {
|
||
enable = lib.mkDefault true;
|
||
package = lib.mkDefault pkgs.postgresql_14;
|
||
};
|
||
eza.enable = lib.mkDefault true;
|
||
direnv.enable = lib.mkDefault true;
|
||
zoxide.enable = lib.mkDefault true;
|
||
};
|
||
|
||
local.programs.share-files.croc.enable = true;
|
||
|
||
################################################################################
|
||
# Packages
|
||
################################################################################
|
||
|
||
home.packages = with pkgs.unstable; [
|
||
image-roll
|
||
vlc
|
||
|
||
gimp
|
||
libresprite
|
||
|
||
# tools
|
||
procs
|
||
bottom
|
||
bind.dnsutils
|
||
|
||
kubo # ipfs
|
||
|
||
neofetch # command-line system information
|
||
# asciinema # record the terminal
|
||
|
||
woodpecker-cli
|
||
];
|
||
|
||
home.file = {
|
||
"pictures/wallpapers" = {
|
||
source = ./wallpapers;
|
||
recursive = true;
|
||
};
|
||
};
|
||
|
||
home.stateVersion = config.system.stateVersion;
|
||
};
|
||
}
|