initial commit x2

This commit is contained in:
sophron
2025-06-23 00:47:36 +05:00
commit f2f225110a
193 changed files with 4737 additions and 0 deletions

39
for_install/disko.nix Normal file
View File

@@ -0,0 +1,39 @@
{
disko.devices = {
disk = {
my-disk = {
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "1G";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
swap = {
size = "10G";
content = {
type = "swap";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4"; # да, я люблю ext4, минусы?
mountpoint = "/";
};
};
};
};
};
};
};
}

53
for_install/etcConfig.nix Normal file
View File

@@ -0,0 +1,53 @@
{ config, lib, pkgs, ... }: {
imports = [
./hardware-configuration.nix
];
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking = {
hostName = "nix-fox";
networkmanager.enable = true;
};
time.timeZone = "Asia/Yekaterinburg";
i18n.defaultLocale = "ru_RU.UTF-8";
console = {
font = "cyr-sun16";
keyMap = "ru";
};
users.users.chronoblade = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
environment.systemPackages = with pkgs; [
neovim
fastfetch
btop
];
programs.nh = {
enable = true;
package = pkgs.nh;
};
services.openssh = {
enable = true;
ports = [ 95 ];
settings = {
PasswordAuthentication = true;
UseDns = true;
AllowUsers = [ "chronoblade" ];
PermitRootLogin = "yes";
};
};
system.stateVersion = "25.05";
}