initial commit

This commit is contained in:
bogale 2026-09-17 00:21:44 +09:00
commit 733dce18a0
11 changed files with 295 additions and 0 deletions

57
common.nix Normal file
View file

@ -0,0 +1,57 @@
{ config, lib, pkgs, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "26.05";
time.timeZone = "Asia/Chita";
i18n.defaultLocale = "ru_RU.UTF-8";
console = {
keyMap = "ruwin_alt_sh-UTF-8";
font = "cyr-sun16";
};
fileSystems = {
"/" = { options = [ "noatime" ]; };
"/boot" = { options = [ "noatime" ]; };
};
swapDevices = [ { device = "/var/swapfile"; } ];
boot.loader.limine = {
enable = true;
secureBoot.enable = true;
};
users.users = {
root = {
home = "/root";
hashedPasswordFile = "/root/secrets/root.passwd";
};
bogale = {
isNormalUser = true;
home = "/home/bogale";
extraGroups = [ "wheel" ];
hashedPasswordFile = "/root/secrets/bogale.passwd";
};
};
networking = {
nftables.enable = true;
#networking.wg-quick.interfaces.awg0 = {
#type = "amneziawg";
#configFile = "/root/secrets/awg0.conf";
#};
networkmanager = {
enable = true;
ensureProfiles.profiles.home-wifi = {
wifi-security.key-mgmt = "sae";
connection = {
id = "home-wifi";
type = "wifi";
};
};
};
};
environment.systemPackages = with pkgs; [
amneziawg-go
amneziawg-tools
sbctl
];
services = {
logind.settings.Login.HandleLidSwitch = "ignore";
};
}