2021-10-13 00:47:43 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [./desktop.nix];
|
|
|
|
|
2021-12-02 23:30:42 +01:00
|
|
|
systemd.network.networks.wifi = {
|
|
|
|
matchConfig = {
|
|
|
|
Name = "wlan0";
|
2022-06-06 23:08:01 +02:00
|
|
|
SSID = [
|
|
|
|
"!HotoHo-v6"
|
|
|
|
];
|
2021-12-02 23:30:42 +01:00
|
|
|
};
|
|
|
|
DHCP = "ipv4";
|
|
|
|
networkConfig = {
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.network.networks.wifi-v6 = {
|
|
|
|
matchConfig = {
|
|
|
|
Name = "wlan0";
|
2022-06-06 23:08:01 +02:00
|
|
|
SSID = [
|
|
|
|
"HotoHo-v6"
|
|
|
|
];
|
2021-12-02 23:30:42 +01:00
|
|
|
};
|
|
|
|
networkConfig = {
|
|
|
|
DNSSEC = false;
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
};
|
|
|
|
};
|
2022-06-06 23:08:01 +02:00
|
|
|
systemd.network.networks.wifi-unsec = {
|
|
|
|
matchConfig = {
|
|
|
|
Name = "wlan0";
|
|
|
|
SSID = [
|
|
|
|
"wanderverein" # fake to keep
|
|
|
|
# "urbanForest"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
DHCP = "ipv4";
|
|
|
|
networkConfig = {
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
DNSSEC = false;
|
|
|
|
DNS = [
|
|
|
|
"2001:4860:4860::8888"
|
|
|
|
"8.8.8.8"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
dhcpV4Config = {
|
|
|
|
UseDomains = false;
|
|
|
|
UseDNS = false;
|
|
|
|
};
|
|
|
|
dhcpV6Config = {
|
|
|
|
UseDNS = false;
|
|
|
|
};
|
|
|
|
ipv6AcceptRAConfig = {
|
|
|
|
UseDNS = false;
|
|
|
|
};
|
|
|
|
};
|
2021-12-02 23:30:42 +01:00
|
|
|
systemd.network.networks.eth = {
|
|
|
|
matchConfig.Name = "enp*";
|
|
|
|
DHCP = "ipv4";
|
|
|
|
networkConfig = {
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-10-13 00:47:43 +02:00
|
|
|
programs.sway = {
|
|
|
|
enable = true;
|
|
|
|
wrapperFeatures = { gtk = true; };
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
alacritty
|
|
|
|
swayidle
|
|
|
|
swaylock-effects
|
|
|
|
mako
|
|
|
|
bemenu
|
|
|
|
# - bar
|
|
|
|
i3blocks
|
|
|
|
acpi
|
|
|
|
lm_sensors
|
|
|
|
# - tools
|
|
|
|
wl-clipboard
|
2021-11-06 13:12:01 +01:00
|
|
|
wdisplays
|
2021-10-13 00:47:43 +02:00
|
|
|
ponymix
|
|
|
|
brightnessctl
|
|
|
|
gammastep
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
];
|
|
|
|
};
|
2022-04-08 20:04:52 +02:00
|
|
|
location.provider = "geoclue2";
|
2021-11-26 20:03:09 +01:00
|
|
|
|
2021-11-13 22:07:35 +01:00
|
|
|
xdg.portal.wlr = {
|
|
|
|
enable = true;
|
|
|
|
settings.screencast = {
|
|
|
|
chooser_type = "simple";
|
|
|
|
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-10-13 00:47:43 +02:00
|
|
|
# done my sway:
|
|
|
|
# security.pam.services.swaylock = {};
|
|
|
|
# hardware.opengl.enable = true;
|
|
|
|
# fonts.enableDefaultFonts = true;
|
|
|
|
# programs.dconf.enable = true; # gtk theme
|
|
|
|
|
|
|
|
# services.acpid.enable = true;
|
|
|
|
}
|