aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2021-04-11 14:11:54 +0530
committerAkshay Nair <phenax5@gmail.com>2021-04-11 14:11:54 +0530
commitc170e9f364cb057583e8c50f7a4b5a20c1ec0156 (patch)
tree638c39664a4499e0fa3c251721998965fcfc34cc /configuration.nix
parent11a7511e208dae9ad1519cc1dfe65dcff015ee7b (diff)
downloadnixos-config-c170e9f364cb057583e8c50f7a4b5a20c1ec0156.tar.gz
nixos-config-c170e9f364cb057583e8c50f7a4b5a20c1ec0156.zip
Adds nix config changes
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix29
1 files changed, 20 insertions, 9 deletions
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 = [
<home-manager/nixos>
./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;