2019-09-13 02:35:38 +04:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2019-09-22 22:40:08 +04:00
|
|
|
options = [ "noatime" "ssd" "compress=zstd" ];
|
|
|
|
};
|
|
|
|
"/.snapshots" = {
|
|
|
|
options = [ "noatime" "ssd" "compress=zstd" ];
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
options = [ "noatime" "ssd" "compress=zstd" ];
|
|
|
|
};
|
|
|
|
"/nix-store" = {
|
|
|
|
options = [ "noatime" "ssd" "compress=zstd" ];
|
2019-09-13 02:35:38 +04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "nixos";
|
|
|
|
firewall.enable = false;
|
2019-09-13 14:26:02 +04:00
|
|
|
networkmanager.enable = false;
|
2019-09-22 22:40:08 +04:00
|
|
|
wireless = {
|
|
|
|
enable = true;
|
|
|
|
userControlled.enable = true;
|
|
|
|
networks.Alukard_5GHz = {
|
|
|
|
pskRaw = "feee27000fb0d7118d498d4d867416d04d1d9a1a7b5dbdbd888060bbde816fe4";
|
|
|
|
priority = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
nix = {
|
|
|
|
useSandbox = true;
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
optimise.automatic = true;
|
2019-09-13 02:35:38 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
consoleFont = "Lat2-Terminus16";
|
|
|
|
consoleKeyMap = "us";
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Volgograd";
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wget vim git
|
|
|
|
];
|
|
|
|
|
2019-09-22 22:40:08 +04:00
|
|
|
users.mutableUsers = false;
|
2019-09-13 02:35:38 +04:00
|
|
|
users.users.alukard = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
2019-09-22 22:40:08 +04:00
|
|
|
uid = 1000;
|
|
|
|
hashedPassword = "$6$kDBGyd99tto$9LjQwixa7NYB9Kaey002MD94zHob1MmNbVz9kx3yX6Q4AmVgsFMGUyNuHozXprxyuXHIbOlTcf8nd4rK8MWfI/";
|
2019-09-13 02:35:38 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "19.03";
|
|
|
|
|
|
|
|
}
|