- Add .gitignore for common languages, tools, and OS/editor artifacts - Configure .gitattributes for Git LFS (fonts, images, archives, ISOs) - Add README with repo description - Add flake.nix defining inputs and outputs for NixOS, Home Manager, and related modules - Introduce home-manager configs: - Base home.nix with packages, services, and programs - Hyprland WM configuration (waybar, fuzzel, keybindings, theming) - Vim (nixvim) setup with LSP and plugins - Zsh setup with aliases, Oh My Zsh, clipboard helpers - Systemd user services (e.g., librespot) - Add scripts (GPU monitor, RAM build helper, install automation) - Add host configurations: - Nixbook (Apple laptop) with hardware, disko, and install script - Nixstation (desktop) with firewall, virtualization, Btrfs scrub timer - Nixtest (test VM) with QEMU + Alpine-based install test harness - Common modules (network, NVIDIA, rclone, screen, keychron, users) - Include statix config for linting
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ config
|
|
, inputs
|
|
, lib
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
{
|
|
imports = [ ./users/thiago/default.nix ];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
environment = {
|
|
shells = with pkgs; [ zsh ];
|
|
etc = lib.mapAttrs'
|
|
(name: value: {
|
|
name = "nix/path/${name}";
|
|
value.source = value.flake;
|
|
})
|
|
config.nix.registry;
|
|
systemPackages = with pkgs; [
|
|
exfat
|
|
file
|
|
gcsfuse
|
|
git
|
|
gnupg
|
|
home-manager
|
|
keymapp
|
|
opensc
|
|
pciutils
|
|
pcsc-safenet
|
|
pcsctools
|
|
pkcs11helper
|
|
sops
|
|
wget
|
|
zsa-udev-rules
|
|
];
|
|
};
|
|
hardware.keyboard.zsa.enable = true;
|
|
networking.networkmanager.enable = true;
|
|
nix = {
|
|
registry = (lib.mapAttrs (_: flake: { inherit flake; })) (
|
|
(lib.filterAttrs (_: lib.isType "flake")) inputs
|
|
);
|
|
|
|
nixPath = [ "/etc/nix/path" ];
|
|
|
|
settings = {
|
|
experimental-features = "nix-command flakes";
|
|
auto-optimise-store = true;
|
|
};
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
programs.zsh.enable = true;
|
|
services = {
|
|
pcscd.enable = true;
|
|
# xserver.displayManager.sessionCommands =
|
|
# "${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 64 = Alt_L'";
|
|
|
|
};
|
|
users.groups.scard = { };
|
|
|
|
time.timeZone = "America/Sao_Paulo";
|
|
users.defaultUserShell = pkgs.zsh;
|
|
}
|