111 lines
2.4 KiB
Nix
111 lines
2.4 KiB
Nix
{ config, pkgs, ... }:
|
||
|
||
{
|
||
imports = [
|
||
./hardware-configuration.nix
|
||
../../home-manager/users/jalr.nix
|
||
];
|
||
|
||
networking = {
|
||
hostName = "cadmium";
|
||
networkmanager = {
|
||
enable = true;
|
||
};
|
||
useDHCP = false;
|
||
|
||
firewall = {
|
||
allowedUDPPorts = [
|
||
#53
|
||
];
|
||
allowedTCPPorts = [
|
||
#53
|
||
];
|
||
};
|
||
extraHosts = ''
|
||
#10.10.10.10 example.com
|
||
'';
|
||
};
|
||
|
||
environment.systemPackages = with pkgs; [
|
||
file
|
||
fzf
|
||
git
|
||
gnome3.adwaita-icon-theme
|
||
htop
|
||
ike
|
||
jq
|
||
neovim
|
||
openconnect
|
||
pavucontrol
|
||
redir
|
||
ripgrep
|
||
spice-gtk
|
||
tcpdump
|
||
usbutils
|
||
virt-manager
|
||
];
|
||
|
||
environment.variables.EDITOR = "nvim";
|
||
|
||
nixpkgs.overlays = [
|
||
(self: super: {
|
||
neovim = super.neovim.override {
|
||
viAlias = true;
|
||
vimAlias = true;
|
||
};
|
||
})
|
||
];
|
||
|
||
programs.mtr.enable = true;
|
||
|
||
programs.gnupg.agent = {
|
||
enable = true;
|
||
pinentryFlavor = "gnome3";
|
||
};
|
||
|
||
hardware.bluetooth.enable = true;
|
||
services.blueman.enable = true;
|
||
services.ofono.enable = true;
|
||
|
||
services.udisks2.enable = true;
|
||
|
||
services.openssh.enable = true;
|
||
|
||
|
||
# udevadm info --name /dev/foo --query all
|
||
|
||
services.udev.extraRules = ''
|
||
# mute indicator
|
||
SUBSYSTEM=="tty", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="6d75", SYMLINK+="mute-indicator"
|
||
|
||
# DJI Goggles
|
||
SUBSYSTEM=="usb", ATTRS{idVendor}=="2ca3", ATTRS{idProduct}=="001f", GROUP="video", MODE="0660"
|
||
|
||
# STLink
|
||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", GROUP="users", MODE="0660"
|
||
'';
|
||
|
||
virtualisation = {
|
||
docker.enable = true;
|
||
libvirtd.enable = true;
|
||
};
|
||
|
||
# https://github.com/NixOS/nixpkgs/issues/60594
|
||
security.wrappers.spice-client-glib-usb-acl-helper.source = "${pkgs.spice-gtk}/bin/spice-client-glib-usb-acl-helper";
|
||
|
||
security.polkit.enable = true;
|
||
|
||
myConfig = {
|
||
gui.enable = true;
|
||
autologin.enable = true;
|
||
};
|
||
|
||
# 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 = "20.03"; # Did you read the comment?
|
||
|
||
}
|