nix: Add host polder and refractor modules

This commit is contained in:
js0ny 2025-10-21 16:14:34 +00:00
parent 1b99070718
commit 3756bbfb45
38 changed files with 284 additions and 172 deletions

View file

@ -0,0 +1,43 @@
{
config,
pkgs,
...
}: {
# Select internationalisation properties.
i18n = {
defaultLocale = "en_GB.UTF-8";
extraLocales = [
"en_GB.UTF-8/UTF-8"
];
extraLocaleSettings = {
# LC_CTYPE = "en_GB.UTF-8";
LC_ALL = "en_GB.UTF-8";
};
};
environment.shellAliases = {
nrs = "sudo nixos-rebuild switch --flake ~/.dotfiles/nixcfgs";
};
# system.copySystemConfiguration = true;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Define a user account. Don't forget to set a password with passwd.
users.users.js0ny = {
isNormalUser = true;
extraGroups = [
"wheel"
"docker"
"libvirtd"
"dialout"
]; # Enable sudo for the user.
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJToUo2jT3qt7eHIME9e1awabZZVmtKhbxwVz9BMSM2d js0ny@zephyrus"
];
};
programs.command-not-found.enable = true;
}

View file

@ -0,0 +1,15 @@
# ~/.config/nix-config/common/packages-headless.nix
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
vim
wget
curl
git
tmux
nix-index
file
unzip
zip
pkg-config
];
}