This commit is contained in:
2025-05-15 21:11:30 +03:00
commit b6cee5e832
43 changed files with 2652 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
{
config,
...
}:
{
imports = [
./packages.nix
./programs.nix
./services.nix
./settings.nix
./tty.nix
./users.nix
];
}
+50
View File
@@ -0,0 +1,50 @@
{
config,
pkgs,
...
}:
{
environment = {
systemPackages = with pkgs; [
# Nix
nixfmt-tree
nix-diff
# Base
mc
yazi
pciutils
smartmontools
efibootmgr
usbutils
# Data
wget
curl
rsync
fdupes
# Disk
gparted
parted
ntfs3g
exfatprogs # for gparted exfat support
# Archivers
rar
unzip
zstd
zip
xarchiver
# Net
ipset
iptables
nftables
# Monitoring
btop
fastfetch
];
};
}
+29
View File
@@ -0,0 +1,29 @@
{
config,
...
}:
{
programs = {
git = {
enable = true;
config = {
user = {
name = "oqyude";
email = "oqyude@gmail.com";
};
};
};
lazygit.enable = true;
command-not-found.enable = false;
nix-index.enable = true;
nh = {
enable = true;
flake = "/etc/nixos";
clean = {
enable = true;
extraArgs = "--keep 3 --keep-since 2d";
dates = "daily";
};
};
};
}
+9
View File
@@ -0,0 +1,9 @@
{
config,
...
}:
{
services = {
tailscale.enable = true;
};
}
+50
View File
@@ -0,0 +1,50 @@
{
config,
...
}:
{
system.nixos.label = "default";
nix = {
settings = {
substituters = [
"https://nixos-cache-proxy.cofob.dev" # https://gist.github.com/cofob/9b1fd205e6d961a45c225ae9f0af1394
"https://nix-community.cachix.org"
];
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"
];
};
};
nixpkgs.config.allowUnfree = true;
security = {
sudo.wheelNeedsPassword = false;
polkit = {
enable = true;
extraConfig = ''
polkit.addRule(function(action, subject) {
if ((action.id == "org.gnome.gparted" || // for gnome
action.id == "org.freedesktop.policykit.exec") && // for desktop, nekoray
subject.isInGroup("wheel")){ // for sudo
return polkit.Result.YES;
}
});
'';
};
};
systemd.network.wait-online.enable = false;
time.timeZone = "Europe/Moscow";
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
#"C.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
"ru_RU.UTF-8/UTF-8"
];
};
}
+37
View File
@@ -0,0 +1,37 @@
{
config,
pkgs,
...
}:
{
system.userActivationScripts.zshrc = "touch .zshrc";
users.defaultUserShell = pkgs.zsh;
programs.zsh = {
enable = true;
enableCompletion = true;
enableBashCompletion = true;
syntaxHighlighting.enable = true;
zsh-autoenv.enable = true;
histSize = 10000;
loginShellInit = "cd /etc/nixos && clear && fastfetch";
ohMyZsh = {
enable = true;
theme = "robbyrussell";
};
shellAliases = {
# shell
ff = "clear && fastfetch";
l = "ls -l";
# ssh
s-1 = "ssh sapphira-1";
s-1t = "ssh sapphira-1t";
# Somethings
reboot-bios = "sudo systemctl reboot --firmware-setup";
# Extras
plasma-manager = "nix run github:nix-community/plasma-manager";
};
};
}
+25
View File
@@ -0,0 +1,25 @@
{
config,
...
}:
{
users = {
users = {
oqyude = {
isNormalUser = true;
description = "Jor Oqyude";
initialPassword = "1234";
extraGroups = [
"audio"
"disk"
"gamemode"
"libvirtd"
"networkmanager"
"pipewire"
"qemu-libvirtd"
"wheel"
];
};
};
};
}