Separate out more per-system stuff

This commit is contained in:
Artemis Tosini 2020-08-15 03:27:08 +00:00
parent 90038f172c
commit edd52e9c25
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
6 changed files with 47 additions and 64 deletions

View file

@ -42,6 +42,8 @@
variables = { variables = {
EDITOR = "nvim"; EDITOR = "nvim";
TERMINAL = "alacritty"; TERMINAL = "alacritty";
# for Sway
MOZ_USE_XINPUT2 = "1"; MOZ_USE_XINPUT2 = "1";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
GTK_THEME = "Adwaita-dark"; GTK_THEME = "Adwaita-dark";
@ -62,22 +64,7 @@
}; };
}; };
security = { security.polkit.enable = true;
pam = {
u2f = {
enable = true;
authFile = "/etc/u2f_keys";
cue = true;
};
services.swaylock.u2fAuth = false;
services.i3lock.u2fAuth = false;
services.login.u2fAuth = false;
services.sytemd-user.u2fAuth = false;
services.xlock.u2fAuth = false;
services.xscreensaver.u2fAuth = false;
};
polkit.enable = true;
};
services = { services = {
avahi = { avahi = {
@ -96,7 +83,6 @@
keybase.enable = true; keybase.enable = true;
logind.extraConfig = "HandlePowerKey=suspend"; logind.extraConfig = "HandlePowerKey=suspend";
pcscd.enable = true; pcscd.enable = true;
pipewire.enable = true;
tor = { tor = {
enable = true; enable = true;
client.enable = true; client.enable = true;
@ -157,21 +143,11 @@
enable = true; enable = true;
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
}; };
light.enable = true;
wireshark = { wireshark = {
enable = true; enable = true;
package = pkgs.wireshark-qt; package = pkgs.wireshark-qt;
}; };
firejail.enable = true;
fish.enable = true; fish.enable = true;
xonsh = {
# enable = true;
package = pkgs.xonsh.overridePythonAttrs (
old: {
propagatedBuildInputs = old.propagatedBuildInputs ++ [ pkgs.python3Packages.nixpkgs ];
}
);
};
}; };
users = { users = {
@ -191,7 +167,4 @@
}; };
systemd.extraConfig = "DefaultLimitCORE=infinity"; systemd.extraConfig = "DefaultLimitCORE=infinity";
security.pam.loginLimits = [ { domain = "*"; item = "core"; type = "hard"; value = "infinity"; } ]; security.pam.loginLimits = [ { domain = "*"; item = "core"; type = "hard"; value = "infinity"; } ];
system.stateVersion = "19.03";
} }

14
mpd.nix
View file

@ -1,14 +0,0 @@
{ config, pkgs, ... }:
{
services = {
mpd = {
enable = true;
startWhenNeeded = true;
network.listenAddress = "any";
dataDir = "/data/var/mpd";
musicDirectory = "/data/Musik";
};
ympd.enable = true;
};
}

View file

@ -14,7 +14,7 @@ in
{ {
environment.systemPackages = (with pkgs; [ environment.systemPackages = (with pkgs; [
# Audiovisual # Audiovisual
# audacity audacity
darktable darktable
exiftool exiftool
ffmpeg-full ffmpeg-full
@ -66,6 +66,7 @@ in
lm_sensors lm_sensors
manpages manpages
nethogs nethogs
nvme-cli
parted parted
pinentry-curses pinentry-curses
pinentry-gtk2 # needed for tomb pinentry-gtk2 # needed for tomb
@ -196,6 +197,7 @@ in
yosys yosys
# Radio # Radio
gr-limesdr
limesuite limesuite
gnuradio-with-packages gnuradio-with-packages
soapysdr soapysdr
@ -226,6 +228,7 @@ in
syncthing-gtk syncthing-gtk
# GUI tools # GUI tools
alacritty
evince evince
gnome3.eog gnome3.eog
gnome3.gnome-system-monitor gnome3.gnome-system-monitor
@ -234,17 +237,15 @@ in
zathura zathura
# Web # Web
# (chromium.override { useOzone = true; })
chromium chromium
fullFirefox fullFirefox
# tor-browser-bundle-bin tor-browser-bundle-bin
# Communication # Communication
discord discord
signal-desktop signal-desktop
slack slack
tdesktop tdesktop
weechat
# Gnome configuration # Gnome configuration
gnome3.adwaita-icon-theme gnome3.adwaita-icon-theme
@ -258,16 +259,8 @@ in
# Games # Games
multimc multimc
steam
steam-run steam-run
# Game dependencies
gnome3.zenity # Steam requires zenity
SDL2 SDL2_ttf SDL2_image
# Debug info
wayland.debug
# Dictionaries # Dictionaries
]) ++ (with pkgs.hunspellDicts; [ ]) ++ (with pkgs.hunspellDicts; [
en-us-large en-us-large

View file

@ -17,4 +17,13 @@
upower.enable = true; upower.enable = true;
throttled.enable = true; throttled.enable = true;
}; };
programs.light.enable = true;
environment.systemPackages = with pkgs; [
i7z
linuxPackages.cpupower
];
system.stateVersion = "20.03";
} }

View file

@ -27,20 +27,18 @@
}; };
}; };
}; };
binfmt.emulatedSystems = [ "wasm32-wasi" "wasm64-wasi" "armv7l-linux" "aarch64-linux" ];
}; };
services.udev = { services.udev = {
packages = [ packages = [
pkgs.android-udev-rules pkgs.android-udev-rules
pkgs.openocd pkgs.openocd
(pkgs.callPackage ./externals/rules/adafruit.nix { }) (pkgs.callPackage ../../externals/rules/adafruit.nix { })
(pkgs.callPackage ./externals/rules/ds4drv.nix { }) (pkgs.callPackage ../../externals/rules/ds4drv.nix { })
(pkgs.callPackage ./externals/rules/fpga.nix { }) (pkgs.callPackage ../../externals/rules/fpga.nix { })
(pkgs.callPackage ./externals/rules/limesuite.nix { }) (pkgs.callPackage ../../externals/rules/limesuite.nix { })
(pkgs.callPackage ./externals/rules/cm-rgb.nix { }) (pkgs.callPackage ../../externals/rules/cm-rgb.nix { })
(pkgs.callPackage ./externals/rules/uhk.nix { }) (pkgs.callPackage ../../externals/rules/uhk.nix { })
]; ];
}; };
} }

View file

@ -0,0 +1,24 @@
{ config, pkgs, ... }:
{
imports = [ ./boot-config.nix ./hardware-configuration.nix ];
networking.hostName = "starlight";
hardware.cpu.amd.updateMicrocode = true;
services = {
tor = {
enable = true;
client.enable = true;
};
};
environment.systemPackages = with pkgs; [
steam
gnome3.zenity
SDL2 SDL2_ttf SDL2_image
];
system.stateVersion = "19.09";
}