From c170e9f364cb057583e8c50f7a4b5a20c1ec0156 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 11 Apr 2021 14:11:54 +0530 Subject: Adds nix config changes --- configuration.nix | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index 00d4759..b32b727 100644 --- a/configuration.nix +++ b/configuration.nix @@ -4,9 +4,10 @@ { config, pkgs, ... }: -let +let localPkgs = import ./packages/default.nix { pkgs = pkgs; }; -in { +in +{ imports = [ ./hardware-configuration.nix @@ -24,10 +25,20 @@ in { # Network networking = { hostName = "dickhead"; + firewall = { + enable = true; + allowedTCPPorts = [ 8080 ]; + allowedUDPPorts = []; + }; networkmanager.enable = true; - extraHosts = ''''; + extraHosts = '' + 127.0.0.1 dev.parlezvous.io + 127.0.0.1 demo.parlezvous.io + ''; }; + services.atd.enable = true; + virtualisation = { docker.enable = true; lxd.enable = true; @@ -40,7 +51,7 @@ in { # Home manager home-manager.users.imsohexy = { pkgs, ... }: { - imports = [./home.nix]; + imports = [ ./home.nix ]; home = { stateVersion = "21.03"; }; }; @@ -65,11 +76,11 @@ in { ]; # nix-shell -p actkbd --run "sudo actkbd -n -s -d /dev/input/event#" #services.actkbd = { - #enable = true; - #bindings = [ - #{ keys = [ 224 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -A 10"; } - #{ keys = [ 225 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -U 10"; } - #]; + #enable = true; + #bindings = [ + #{ keys = [ 224 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -A 10"; } + #{ keys = [ 225 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -U 10"; } + #]; #}; # Enable CUPS to print documents. # services.printing.enable = true; -- cgit v1.3.1