62 lines
1.8 KiB
Nix
62 lines
1.8 KiB
Nix
{ config, pkgs, ... }:
|
||
|
||
{
|
||
imports = [
|
||
./hardware-configuration.nix
|
||
../../home-manager/users/jalr.nix
|
||
];
|
||
|
||
networking = {
|
||
hostName = "jalr-t520";
|
||
networkmanager.enable = true;
|
||
useDHCP = false;
|
||
};
|
||
|
||
# List packages installed in system profile. To search, run:
|
||
# $ nix search wget
|
||
environment.systemPackages = with pkgs; [
|
||
gnome3.adwaita-icon-theme
|
||
];
|
||
|
||
environment.variables.EDITOR = "nvim";
|
||
|
||
programs.mtr.enable = true;
|
||
programs.wireshark.enable = true;
|
||
|
||
hardware.sane.enable = true;
|
||
|
||
services.udisks2.enable = true;
|
||
|
||
services.avahi.enable = true;
|
||
services.avahi.nssmdns = true;
|
||
|
||
services.udev.extraRules = ''
|
||
# 16C0:0442 - Axoloti Core
|
||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="0442", MODE:="0666"
|
||
# 0483:df11 - Axoloti Core (STM32 microcontroller) in DFU mode
|
||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
|
||
|
||
# Samsung A5
|
||
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", GROUP="dialout", MODE="0660"
|
||
'';
|
||
|
||
jalr = {
|
||
bootloader = "grub2";
|
||
bluetooth.enable = true;
|
||
gui.enable = true;
|
||
workstation.enable = true;
|
||
sdr.enable = true;
|
||
libvirt.enable = true;
|
||
autologin.enable = true;
|
||
autologin.username = "jalr";
|
||
};
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "22.05"; # Did you read the comment?
|
||
|
||
}
|