CLEAN: nix develop

This commit is contained in:
DuN0z 2025-10-05 08:20:57 +02:00
parent daeb15f821
commit c495445e91
22 changed files with 439 additions and 423 deletions

View file

@ -1,19 +1,19 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
nix.settings.experimental-features = ["nix-command" "flakes" ];
imports =
[ # Include the results of the hardware scan.
./hardware.nix
../../profiles/server-selfhosted.nix
../../modules/services/ftp.nix
../../modules/services/forgejo.nix
];
config,
pkgs,
...
}: {
nix.settings.experimental-features = ["nix-command" "flakes"];
imports = [
# Include the results of the hardware scan.
./hardware.nix
../../profiles/server-selfhosted.nix
../../modules/services/ftp.nix
../../modules/services/forgejo.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
@ -32,7 +32,7 @@
users.users.lomig = {
isNormalUser = true;
extraGroups = [ "lp" "wheel" "docker" ];
extraGroups = ["lp" "wheel" "docker"];
shell = pkgs.zsh;
};
@ -44,32 +44,32 @@
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
git
hugo
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
git
hugo
];
networking = {
useNetworkd = true ;
firewall.allowedTCPPorts = [ 22 80 5900 5901 5902 ];
interfaces.eno1.useDHCP = false ;
useNetworkd = true;
firewall.allowedTCPPorts = [22 80 5900 5901 5902];
interfaces.eno1.useDHCP = false;
interfaces.br0 = {
useDHCP = false ;
useDHCP = false;
ipv4.addresses = [
{
address = "192.168.0.3";
prefixLength = 24 ;
prefixLength = 24;
}
];
};
defaultGateway = {
interface = "br0" ;
address = "192.168.0.254" ;
interface = "br0";
address = "192.168.0.254";
};
nameservers = [ "192.168.0.254" "1.1.1.1" ];
bridges.br0.interfaces = [ "eno1" ];
nameservers = ["192.168.0.254" "1.1.1.1"];
bridges.br0.interfaces = ["eno1"];
};
systemd.network = {
enable = true ;
enable = true;
netdevs."br0" = {
netdevConfig = {
Name = "br0";
@ -77,7 +77,7 @@
};
};
networks."br0" = {
matchConfig.Name = "br0" ;
matchConfig.Name = "br0";
};
networks."eno1" = {
matchConfig.Name = "eno1";