seperate out hosts file

This commit is contained in:
Osman Faruk Bayram 2024-12-02 09:43:36 +03:00
parent 9d9b24800e
commit c29586f312
3 changed files with 13 additions and 9 deletions

11
common/concentration.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, lib, config, ... }: {
networking.extraHosts =
''
0.0.0.0 youtube.com
::0 youtube.com
0.0.0.0 www.youtube.com
::0 www.youtube.com
'';
}

View file

@ -14,6 +14,7 @@
../../common/arduino.nix
../../common/firefox.nix
../../common/common-packages.nix
../../common/concentration.nix
];
# stylix.enable = true;
@ -45,15 +46,6 @@
networking.networkmanager.enable = true;
networking.extraHosts =
''
0.0.0.0 youtube.com
::0 youtube.com
0.0.0.0 www.youtube.com
::0 www.youtube.com
'';
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver.enable = true;

View file

@ -14,6 +14,7 @@
../../common/arduino.nix
../../common/firefox.nix
../../common/common-packages.nix
../../common/concentration.nix
];
# Bootloader.