diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-01-02 18:03:31 -0500 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-01-02 18:03:31 -0500 |
commit | 0f34dc08b486662fdfd419146f54070449b95636 (patch) | |
tree | 51446a13f5ce47ab031d4cc162c7ca38ef35403e /nixos | |
parent | a465d26f21705f9cfb48625573c21e0b5d64d3e8 (diff) |
Update pincer system config.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/configuration.nix | 35 | ||||
-rw-r--r-- | nixos/pincer.nix | 36 |
2 files changed, 66 insertions, 5 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 80570d0..64fda3a 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -25,6 +25,11 @@ # Set your time zone. time.timeZone = "America/New_York"; + # security.grsecurity.enable = true; + # security.grsecurity.lockTunables = false; + # # Needed when using chromium with grsecurity. + # security.chromiumSuidSandbox.enable = true; + nixpkgs.config.allowUnfree = true; # List packages installed in system profile. To search by name, run: @@ -53,7 +58,7 @@ pasystray pavucontrol powertop - kde4.digikam + # kde4.digikam emacs25 sshfsFuse xorg.xbacklight @@ -77,10 +82,36 @@ myWine mumble wdfs - + dnsutils # fonts source-code-pro inconsolata + wirelesstools + xbindkeys + imagemagick + ghc + net_snmp + #rxvt-unicode-with-perl-with-unicode3-with-plugins + unzip + linssid + lxc + gnupg1 + nix-repl + youtube-dl + vlc + unrar + mosh + tldr + fira-code + haskellPackages.hledger + haskellPackages.hledger-ui + haskellPackages.hledger-web + haskellPackages.hledger-vty + moreutils + + #temporary + debootstrap + wget # haskellPackages.xmonad # haskellPackages.xmonad-contrib diff --git a/nixos/pincer.nix b/nixos/pincer.nix index 8d83954..449ee68 100644 --- a/nixos/pincer.nix +++ b/nixos/pincer.nix @@ -5,8 +5,8 @@ ./configuration.nix ]; networking.hostName = "pincer"; - networking.firewall.allowedTCPPorts = [5201]; - networking.firewall.allowedUDPPorts = [5201]; + networking.firewall.allowedTCPPorts = [5201 34196 34197 5556 5558]; + networking.firewall.allowedUDPPorts = [5201 34196 34197]; hardware.opengl.driSupport32Bit = true; boot.loader.systemd-boot.enable = true; @@ -53,7 +53,37 @@ myMinecraft = minecraft.override { jre = oraclejre8; }; - in [ myMinecraft ]; + pwFactorio = factorio.override { + username = "kjetil.orbekk@gmail.com"; + password = "6F[$~/v6I9HlGoiriI!q"; + releaseType = "alpha"; + }; + myFactorio = pwFactorio.overrideDerivation (o: { + version = "0.14.20"; + src = requireFile { + name = "factorio_alpha_x64_0.14.20.tar.gz"; + url = "test"; + sha256 = "c7955fdb19895a38d02a536e0bb225ac3bbbc434fcf9c4968fbb4bd5c49329ae"; + }; + }); + in [ + myMinecraft + myFactorio + tpacpi-bat + ]; + + systemd.services.battery_threshold = { + description = "Set battery charging thresholds."; + path = [ pkgs.tpacpi-bat ]; + after = [ "basic.target" ]; + wantedBy = [ "multi-user.target" ]; + script = '' + tpacpi-bat -s ST 1 39 + tpacpi-bat -s ST 2 39 + tpacpi-bat -s SP 1 80 + tpacpi-bat -s SP 2 80 + ''; + }; services.tlp.enable = true; services.tlp.extraConfig = '' |