Compare commits
3 commits
2669f23735
...
019a309dda
Author | SHA1 | Date | |
---|---|---|---|
019a309dda | |||
db8daf4f06 | |||
e9625f41c4 |
5 changed files with 22 additions and 50 deletions
8
flake.lock
generated
8
flake.lock
generated
|
@ -278,11 +278,11 @@
|
||||||
"lix": {
|
"lix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740025708,
|
"lastModified": 1740253065,
|
||||||
"narHash": "sha256-TQ8EQoulNFD2nP94Aw3W17cjlV3F+fMpDsV6LOrrkbY=",
|
"narHash": "sha256-ucwXcftJ7DHjk1UA2LmfHXkDPoCgfB4uadwFUCBvc8w=",
|
||||||
"rev": "e335a26d5cd8371ea836d1166b627eaf17427299",
|
"rev": "82c7e76c9c2d829dc11c22b32173a40056cc44ef",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/e335a26d5cd8371ea836d1166b627eaf17427299.tar.gz?rev=e335a26d5cd8371ea836d1166b627eaf17427299"
|
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/82c7e76c9c2d829dc11c22b32173a40056cc44ef.tar.gz?rev=82c7e76c9c2d829dc11c22b32173a40056cc44ef"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -111,7 +111,7 @@
|
||||||
./modules/basic-tools
|
./modules/basic-tools
|
||||||
./modules/binary-caches.nix
|
./modules/binary-caches.nix
|
||||||
./modules/devtools.nix
|
./modules/devtools.nix
|
||||||
./modules/sway.nix
|
./modules/gnome.nix
|
||||||
./modules/gnupg.nix
|
./modules/gnupg.nix
|
||||||
./modules/radio.nix
|
./modules/radio.nix
|
||||||
./modules/science.nix
|
./modules/science.nix
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./mullvad.nix
|
./mullvad.nix
|
||||||
|
@ -6,21 +6,26 @@
|
||||||
./zw.nix
|
./zw.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
# Networkmanager shouldn't interfere with systemd managed interfaces
|
||||||
iwgtk
|
networking.networkmanager.unmanaged =
|
||||||
impala
|
let
|
||||||
];
|
systemd_netdevs = lib.attrsets.attrValues (
|
||||||
|
lib.attrsets.mapAttrs (_name: value: value.netdevConfig.Name) config.systemd.network.netdevs
|
||||||
|
);
|
||||||
|
in
|
||||||
|
systemd_netdevs;
|
||||||
|
|
||||||
# kick out networkmanager
|
systemd.network = {
|
||||||
networking.networkmanager.enable = lib.mkForce false;
|
enable = true;
|
||||||
networking.useNetworkd = true;
|
wait-online.enable = false; # uplink is managed by networkmanager
|
||||||
systemd.network.enable = true;
|
};
|
||||||
|
|
||||||
|
users.users."0xa".extraGroups = [ "networkmanager" ];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "toaster";
|
hostName = "toaster";
|
||||||
firewall.enable = true;
|
firewall.enable = true;
|
||||||
wireguard.enable = true;
|
wireguard.enable = true;
|
||||||
wireless.iwd.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
|
@ -34,38 +39,4 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# we might have no interwebs at all
|
|
||||||
systemd.network.wait-online.enable = false;
|
|
||||||
|
|
||||||
# uplinks
|
|
||||||
systemd.network.networks = {
|
|
||||||
"10-ether-uplink" = {
|
|
||||||
matchConfig.Name = "enp1s0f0";
|
|
||||||
networkConfig = {
|
|
||||||
DHCP = "yes";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"10-dock-uplink" = {
|
|
||||||
matchConfig.Name = "enp5s0f4u1u1";
|
|
||||||
networkConfig = {
|
|
||||||
DHCP = "yes";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
dhcpV4Config = {
|
|
||||||
RouteMetric = 666;
|
|
||||||
};
|
|
||||||
dhcpV6Config = {
|
|
||||||
RouteMetric = 666;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"wlan-uplink" = {
|
|
||||||
matchConfig.Name = "wlan0";
|
|
||||||
networkConfig = {
|
|
||||||
DHCP = "yes";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
exfatprogs
|
exfatprogs
|
||||||
nmap
|
nmap
|
||||||
bind
|
bind
|
||||||
nnn
|
|
||||||
lf
|
lf
|
||||||
man-pages
|
man-pages
|
||||||
unzip
|
unzip
|
||||||
|
@ -50,6 +49,7 @@
|
||||||
sshfs
|
sshfs
|
||||||
whois
|
whois
|
||||||
mtr
|
mtr
|
||||||
|
joshuto
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
if config.networking.hostName == "toaster" then
|
if config.networking.hostName == "toaster" then
|
||||||
|
|
|
@ -27,6 +27,7 @@ in
|
||||||
audacity
|
audacity
|
||||||
spotify-player
|
spotify-player
|
||||||
zathura
|
zathura
|
||||||
|
ncdu
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
|
|
Loading…
Add table
Reference in a new issue