Compare commits

...

6 Commits

Author SHA1 Message Date
Sven Vogel deebae2a46 nixos-build.sh now copies files properly 2023-11-22 18:50:52 +01:00
Sven Vogel 17880ab25c added dev component
moved language-server, dotnet to dev
2023-11-18 11:39:28 +01:00
Sven Vogel 92298b4bd7 moved wireguard to extra 2023-11-18 11:33:43 +01:00
Sven Vogel c5675a751c added core config for important runtime modules such as mono 2023-11-17 22:12:32 +01:00
Sven Vogel b614c69829 added extra/default.nix 2023-11-17 22:10:38 +01:00
Sven Vogel 53f16decac modularized extras 2023-11-17 22:10:14 +01:00
12 changed files with 59 additions and 19 deletions

View File

@ -32,7 +32,6 @@
# extra enabled kernel modules # extra enabled kernel modules
boot.kernelModules = [ boot.kernelModules = [
"sg" # for generic SCSI devices such as /dev/sg0 "sg" # for generic SCSI devices such as /dev/sg0
"wireguard"
]; ];
# Kernel parameter on boot # Kernel parameter on boot

View File

@ -19,11 +19,9 @@ in
./users/servostar/user.nix ./users/servostar/user.nix
./.luks-swap.nix ./.luks-swap.nix
./fonts.nix ./fonts.nix
./extra/dvd.nix ./extra
./extra/bluray.nix ./core
./extra/platformio.nix ./dev
./extra/yubikey.nix
./extra/language-server.nix
]; ];
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
@ -41,8 +39,6 @@ in
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
networking.wireguard.enable = true;
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -178,6 +174,8 @@ in
environment.systemPackages = (with pkgs; [ environment.systemPackages = (with pkgs; [
(python3.withPackages(python-packages)) (python3.withPackages(python-packages))
conda
virt-manager virt-manager
distrobox distrobox
@ -238,12 +236,6 @@ in
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
networking.firewall.allowedUDPPorts = [
51820 # wireguard client
];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;

5
core/default.nix Normal file
View File

@ -0,0 +1,5 @@
{
imports = [
./dotnet.nix
];
}

5
core/dotnet.nix Normal file
View File

@ -0,0 +1,5 @@
{ pkgs, config, ... }: {
environment.systemPackages = with pkgs; [
mono
];
}

7
dev/default.nix Normal file
View File

@ -0,0 +1,7 @@
{
imports = [
./language-server.nix
./dotnet.nix
./platformio.nix
];
}

5
dev/dotnet.nix Normal file
View File

@ -0,0 +1,5 @@
{ pkgs, config, ... }: {
environment.systemPackages = with pkgs; [
dotnet-sdk
];
}

View File

@ -4,5 +4,7 @@
shellcheck shellcheck
lua-language-server lua-language-server
pyright pyright
arduino-language-server
clang
]; ];
} }

8
extra/default.nix Normal file
View File

@ -0,0 +1,8 @@
{
imports = [
./bluray.nix
./dvd.nix
./yubikey.nix
./wireguard.nix
];
}

15
extra/wireguard.nix Normal file
View File

@ -0,0 +1,15 @@
{ pkgs, config, ... }: {
networking.wireguard.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
networking.firewall.allowedUDPPorts = [
51820 # wireguard client
];
boot.kernelModules = [
"wireguard"
];
}

View File

@ -6,8 +6,10 @@ read -r choice
case "$choice" in case "$choice" in
y|Y ) y|Y )
echo "copying files..." echo "copying files..."
cp -rv extra /etc/nixos/ cp -rv dev /etc/nixos
cp -rv users /etc/nixos/users cp -rv core /etc/nixos
cp -rv extra /etc/nixos
cp -rv users /etc/nixos
cp -rv *.nix /etc/nixos/ cp -rv *.nix /etc/nixos/
;; ;;
n|N ) n|N )

View File

@ -171,8 +171,8 @@
xdg.configFile."VSCodium/User/settings.json".source = config/settings.json; # VSCodium settings xdg.configFile."VSCodium/User/settings.json".source = config/settings.json; # VSCodium settings
xdg.configFile."aacs/KEYDB.cfg".source = config/keydb.cfg; # key database for blueray decryption xdg.configFile."aacs/KEYDB.cfg".source = config/keydb.cfg; # key database for blueray decryption
# kitty configuration # kitty configuration
xdg.configFile."kitty/kitty.conf".source = config/kitty/kitty.conf xdg.configFile."kitty/kitty.conf".source = config/kitty/kitty.conf;
xdg.configFile."kitty/tokyonight.conf".source = config/kitty/tokyonight.conf xdg.configFile."kitty/tokyonight.conf".source = config/kitty/tokyonight.conf;
# ------------------------------------------------------ # ------------------------------------------------------
# ZSH # ZSH