init
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
./modules/xserver.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nixos"; # Define your hostname.
|
||||
networking.hostName = "nixos-c940"; # Define your hostname.
|
||||
|
||||
time.timeZone = "Asia/Tashkent"; # Set your time zone.
|
||||
time.timeZone = "America/New_York"; # Set your time zone.
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8"; # Select internationalisation properties.
|
||||
|
||||
|
||||
@@ -8,30 +8,26 @@
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/c3c28b79-eb8b-4a45-8ee2-5576e82cb4e5";
|
||||
{ device = "/dev/disk/by-uuid/a751720d-df78-43c3-bc1e-fabdc168fbc2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/3e9f0c85-9a78-44ad-a29c-84afc3b257cc"; }
|
||||
{ device = "/dev/disk/by-uuid/d80806ff-1b8c-4cac-b7f8-593e030abcda"; }
|
||||
];
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.virbr0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp0s20f0u1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
boot.kernelParams = [ "psmouse.synaptics_intertouch=0" ];
|
||||
boot.loader.grub.device = "nodev";
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
./hyprland.nix
|
||||
./trim.nix
|
||||
./bluetooth.nix
|
||||
./services.nix
|
||||
./nixvim/nixvim.nix
|
||||
];
|
||||
}
|
||||
|
||||
3
nixos/modules/services.nix
Normal file
3
nixos/modules/services.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
@@ -4,14 +4,14 @@
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
|
||||
users.amper = {
|
||||
users.wyj = {
|
||||
isNormalUser = true;
|
||||
description = "Ampersand";
|
||||
description = "Yingjie Wang";
|
||||
extraGroups = [ "networkmanager" "wheel" "input" "libvirtd" ];
|
||||
packages = with pkgs; [];
|
||||
};
|
||||
};
|
||||
|
||||
# Enable automatic login for the user.
|
||||
services.getty.autologinUser = "amper";
|
||||
#services.getty.autologinUser = "amper";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user