Compare commits
No commits in common. "b5b5d131993bb26151bc270a999543393d667c4f" and "8b01238502d7788088ff29199c04468b9d4b7886" have entirely different histories.
b5b5d13199
...
8b01238502
8 changed files with 2 additions and 91 deletions
|
@ -57,7 +57,6 @@ let
|
||||||
[ "logo-ls" "logo-ls" ]
|
[ "logo-ls" "logo-ls" ]
|
||||||
[ "lutris" "Lutris" ]
|
[ "lutris" "Lutris" ]
|
||||||
[ "minegrub-theme" "Minegrub Theme" ]
|
[ "minegrub-theme" "Minegrub Theme" ]
|
||||||
[ "networkmanager" "NetworkManager" ]
|
|
||||||
[ "nginx" "nginx" ]
|
[ "nginx" "nginx" ]
|
||||||
[ "nodejs-n" "n" ]
|
[ "nodejs-n" "n" ]
|
||||||
[ "nuke-usb" "nuke-usb" ]
|
[ "nuke-usb" "nuke-usb" ]
|
||||||
|
@ -98,7 +97,6 @@ in
|
||||||
./programs/nextcloud.nix
|
./programs/nextcloud.nix
|
||||||
./programs/oh-my-posh.nix
|
./programs/oh-my-posh.nix
|
||||||
./programs/rclone.nix
|
./programs/rclone.nix
|
||||||
./programs/systemd-networkd.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
inherit (lib) mkEnableOption mkOption types;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options = {
|
|
||||||
valhalla = {
|
|
||||||
linux.programs.systemd-networkd = {
|
|
||||||
enable = mkEnableOption "systemd-networkd";
|
|
||||||
|
|
||||||
networks = mkOption {
|
|
||||||
type = types.attrsOf types.attrs;
|
|
||||||
description = "The networks to configure.";
|
|
||||||
};
|
|
||||||
|
|
||||||
networkFiles = mkOption {
|
|
||||||
type = types.attrsOf types.str;
|
|
||||||
description = "The files for configuring the networks.";
|
|
||||||
default = builtins.mapAttrs
|
|
||||||
(name: network: lib.generators.toINI { listsAsDuplicateKeys = true; } network)
|
|
||||||
config.valhalla.linux.programs.systemd-networkd.networks;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -114,7 +114,6 @@ in {
|
||||||
"vim"
|
"vim"
|
||||||
])) // (optionalAttrs desktopExperience (mkPrograms [
|
])) // (optionalAttrs desktopExperience (mkPrograms [
|
||||||
"icedtea"
|
"icedtea"
|
||||||
"networkmanager"
|
|
||||||
"plasma"
|
"plasma"
|
||||||
"sddm"
|
"sddm"
|
||||||
"waydroid"
|
"waydroid"
|
||||||
|
|
|
@ -70,33 +70,6 @@ in {
|
||||||
linux.programs = {
|
linux.programs = {
|
||||||
grub.enable = true;
|
grub.enable = true;
|
||||||
|
|
||||||
systemd-networkd = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
networks =
|
|
||||||
let device = "enp0s31f6";
|
|
||||||
in {
|
|
||||||
${device} = {
|
|
||||||
Match = {
|
|
||||||
Name = device;
|
|
||||||
};
|
|
||||||
|
|
||||||
Network = {
|
|
||||||
Address = "2a01:4f8:10b:2644::2/64";
|
|
||||||
Gateway = [
|
|
||||||
"94.130.48.193"
|
|
||||||
"fe80::1"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
Address = {
|
|
||||||
Address = "94.130.48.251";
|
|
||||||
Peer = "94.130.48.193/32";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
docker = {
|
docker = {
|
||||||
services = {
|
services = {
|
||||||
anki-sync.enable = true;
|
anki-sync.enable = true;
|
||||||
|
|
|
@ -36,6 +36,7 @@ begin
|
||||||
base \
|
base \
|
||||||
linux \
|
linux \
|
||||||
linux-firmware \
|
linux-firmware \
|
||||||
|
networkmanager \
|
||||||
man-db \
|
man-db \
|
||||||
man-pages \
|
man-pages \
|
||||||
texinfo
|
texinfo
|
||||||
|
@ -62,11 +63,7 @@ begin
|
||||||
end
|
end
|
||||||
|
|
||||||
and genfstab -U "$mountDir" >>"$mountDir/etc/fstab"
|
and genfstab -U "$mountDir" >>"$mountDir/etc/fstab"
|
||||||
|
and arch-chroot "$mountDir" systemctl enable NetworkManager
|
||||||
and if isProgramEnabled "networkmanager"
|
|
||||||
and pacstrap -K "$mountDir" networkmanager
|
|
||||||
arch-chroot "$mountDir" systemctl enable NetworkManager
|
|
||||||
end
|
|
||||||
|
|
||||||
and if set -q timezone
|
and if set -q timezone
|
||||||
arch-chroot "$mountDir" ln -sf "/usr/share/zoneinfo/$timezone" /etc/localtime
|
arch-chroot "$mountDir" ln -sf "/usr/share/zoneinfo/$timezone" /etc/localtime
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/env fish
|
|
||||||
begin
|
|
||||||
set -l dir (status dirname)
|
|
||||||
source "$dir/../../../lib/software.fish"
|
|
||||||
inherit "$dir/../../../Common/Software/systemd-networkd/main.fish"
|
|
||||||
|
|
||||||
function configureSW -V dir
|
|
||||||
systemctl enable systemd-networkd
|
|
||||||
configureSWBase $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
runInstaller $argv
|
|
||||||
end
|
|
|
@ -71,7 +71,6 @@ function deploySoftware -d "Deploys a the specified software action" -a action
|
||||||
end
|
end
|
||||||
|
|
||||||
and source "$dir/../../Common/Software/bash/main.fish" $argv
|
and source "$dir/../../Common/Software/bash/main.fish" $argv
|
||||||
and source "$dir/../Software/systemd-networkd/main.fish" $argv
|
|
||||||
and source "$dir/../Software/btrfs/main.fish" $argv
|
and source "$dir/../Software/btrfs/main.fish" $argv
|
||||||
and source "$dir/../../Common/Software/nuke-usb/main.fish" $argv
|
and source "$dir/../../Common/Software/nuke-usb/main.fish" $argv
|
||||||
and source "$dir/../Software/sudo/main.fish" $argv
|
and source "$dir/../Software/sudo/main.fish" $argv
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/env fish
|
|
||||||
begin
|
|
||||||
set -l dir (status dirname)
|
|
||||||
source "$dir/../../../lib/software.fish"
|
|
||||||
|
|
||||||
function configureSW -V dir
|
|
||||||
source "$dir/../../../lib/settings.fish"
|
|
||||||
set config (getProgramConfig $argv --json)
|
|
||||||
|
|
||||||
for name in (echo "$config" | jq '.networkFiles | keys[]' --raw-output0 | string split0 || true)
|
|
||||||
echo "$config" | NAME=$name jq '.networkFiles[env.NAME]' | sudo tee "/etc/systemd/network/10-$name.network" >/dev/null
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
runInstaller $argv
|
|
||||||
end
|
|
Loading…
Reference in a new issue