fixing networking
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
# Nix environs
|
# Nix environs
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
# nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||||
systems.url = "github:nix-systems/default-linux";
|
systems.url = "github:nix-systems/default-linux";
|
||||||
hardware.url = "github:nixos/nixos-hardware";
|
hardware.url = "github:nixos/nixos-hardware";
|
||||||
lanzaboote.url = "github:nix-community/lanzaboote/v0.4.1";
|
lanzaboote.url = "github:nix-community/lanzaboote/v0.4.1";
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
../../core/tui/shell/toothpick.nix
|
../../core/tui/shell/toothpick.nix
|
||||||
../../core/tui/alacritty
|
../../core/tui/alacritty
|
||||||
../../core/tui/foot
|
../../core/tui/foot
|
||||||
|
../../core/tui/wezterm
|
||||||
../../core/tui/neovim
|
../../core/tui/neovim
|
||||||
# core.services
|
# core.services
|
||||||
../../core/services/mako
|
../../core/services/mako
|
||||||
@@ -24,6 +25,7 @@
|
|||||||
# misc.gui
|
# misc.gui
|
||||||
virt-manager
|
virt-manager
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
|
filezilla
|
||||||
|
|
||||||
# misc.tui
|
# misc.tui
|
||||||
ranger
|
ranger
|
||||||
|
|||||||
15
nixos/core/network/adampad.nix
Normal file
15
nixos/core/network/adampad.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
networking = {
|
||||||
|
networkmanager.enable = true;
|
||||||
|
hostName = "adampad";
|
||||||
|
nftables.enable = true;
|
||||||
|
firewall = {
|
||||||
|
enable = true;
|
||||||
|
interfaces = {
|
||||||
|
"enp7s0" = {
|
||||||
|
allowedTCPPorts = [22 80 443];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
15
nixos/core/network/toothpc.nix
Normal file
15
nixos/core/network/toothpc.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
networking = {
|
||||||
|
networkmanager.enable = true;
|
||||||
|
hostName = "toothpc";
|
||||||
|
nftables.enable = true;
|
||||||
|
firewall = {
|
||||||
|
enable = true;
|
||||||
|
interfaces = {
|
||||||
|
"enp4s0" = {
|
||||||
|
allowedTCPPorts = [22 80 443];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
# core
|
# core
|
||||||
../../core/fonts.nix
|
../../core/fonts.nix
|
||||||
../../core/hyprland.nix
|
../../core/hyprland.nix
|
||||||
../../core/networking.nix
|
|
||||||
../../core/zsh.nix
|
../../core/zsh.nix
|
||||||
|
../../core/network/adampad.nix
|
||||||
|
|
||||||
# hardware
|
# hardware
|
||||||
../../hardware/cnix.nix
|
../../hardware/cnix.nix
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# core
|
# core
|
||||||
../../core/fonts.nix
|
../../core/fonts.nix
|
||||||
../../core/hyprland.nix
|
../../core/hyprland.nix
|
||||||
../../core/networking.nix
|
../../core/network/cnix.nix
|
||||||
../../core/zsh.nix
|
../../core/zsh.nix
|
||||||
|
|
||||||
# hardware
|
# hardware
|
||||||
|
|||||||
@@ -77,12 +77,6 @@ in {
|
|||||||
pkiBundle = "/etc/secureboot";
|
pkiBundle = "/etc/secureboot";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable networking
|
|
||||||
networking = {
|
|
||||||
networkmanager.enable = true;
|
|
||||||
hostName = "toothpc";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
FLAKE = "/home/toothpick/.nix-config";
|
FLAKE = "/home/toothpick/.nix-config";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
../../core/fonts.nix
|
../../core/fonts.nix
|
||||||
../../core/hyprland.nix
|
../../core/hyprland.nix
|
||||||
../../core/zsh.nix
|
../../core/zsh.nix
|
||||||
|
../../core/network/toothpc.nix
|
||||||
|
|
||||||
# hardware
|
# hardware
|
||||||
../../hardware/toothpc.nix
|
../../hardware/toothpc.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user