mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-07 02:06:34 +05:30
initial commit
This commit is contained in:
102
hosts/configuration.nix
Normal file
102
hosts/configuration.nix
Normal file
@ -0,0 +1,102 @@
|
||||
{ pkgs, username, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
../modules/virtualisation/docker.nix
|
||||
];
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
];
|
||||
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
users.${username} = {
|
||||
initialPassword = "${username}";
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "networkmanager" "wheel" "storage" "audio" ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
ohMyZsh.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
autosuggestions.enable = true;
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
config = {
|
||||
user = {
|
||||
email = "0xtux@pm.me";
|
||||
name = "0xTux";
|
||||
signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me";
|
||||
};
|
||||
commit.gpgsign = true;
|
||||
gpg.format = "ssh";
|
||||
};
|
||||
};
|
||||
starship.enable = true;
|
||||
dconf.enable = true;
|
||||
seahorse.enable = true;
|
||||
nix-ld.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
# Codecs
|
||||
x264
|
||||
x265
|
||||
|
||||
# Runtime
|
||||
nodejs
|
||||
nodePackages.pnpm
|
||||
go
|
||||
python311
|
||||
gcc
|
||||
jdk17
|
||||
|
||||
# Utils
|
||||
ranger
|
||||
nitch
|
||||
wget
|
||||
pciutils
|
||||
portal
|
||||
fast-cli
|
||||
exa
|
||||
bat
|
||||
zoxide
|
||||
ripgrep
|
||||
lazygit
|
||||
gdu
|
||||
bottom
|
||||
btop
|
||||
nvtop
|
||||
zip
|
||||
unzip
|
||||
|
||||
# xorg
|
||||
xorg.xsetroot
|
||||
xorg.xwininfo
|
||||
xorg.xrandr
|
||||
xorg.xhost
|
||||
xorg.xev
|
||||
|
||||
];
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
Reference in New Issue
Block a user