Skip to content

Commit

Permalink
Remove custom metals + enable docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
kczulko committed Nov 22, 2021
1 parent 7951b00 commit 4b6e9c9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 27 deletions.
4 changes: 3 additions & 1 deletion common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ in
git
git-crypt
git-lfs
htop
lshw
lsof
mkpasswd
Expand Down Expand Up @@ -99,6 +100,7 @@ in
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;

media-session.config.bluez-monitor.rules = [
{
# Matches all cards
Expand Down Expand Up @@ -128,7 +130,7 @@ in
};

# Enable sound.
config.sound.enable = true;
# config.sound.enable = true;
config.hardware = {

bluetooth = {
Expand Down
1 change: 0 additions & 1 deletion users/kczulko/customizations/all.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{pkgs,...}:

{
metals = import ./metals.nix { inherit pkgs; };
polybar-launcher = import ./polybar-launcher.nix { inherit pkgs; };
setup-resolution = import ./setup-resolution.nix { inherit pkgs; };
}
11 changes: 0 additions & 11 deletions users/kczulko/customizations/metals.nix

This file was deleted.

17 changes: 5 additions & 12 deletions users/kczulko/user-profile.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@ let
secrets = import ../../secrets.nix;
customizations = import ./customizations/all.nix { inherit pkgs; };

# TODO: fix with overlay
sbtJava8 = pkgs.sbt.override { jre = pkgs.openjdk8; };

metalsJava8 = unstable.metals.override { jdk = pkgs.openjdk8; jre = pkgs.openjdk8; };
bloopJava8 = pkgs.bloop.override { jre = pkgs.openjdk8; };

# for cisco vpn connection
openconnect-sso = import (
fetchTarball https://github.com/kczulko/openconnect-sso/archive/15114b75d6735ce723b843a4e804dc74efd4073b.tar.gz
fetchTarball https://github.com/kczulko/openconnect-sso/archive/aa2264471b0a02eddba54b995fbb3d5daca07c12.tar.gz
);

in {
Expand Down Expand Up @@ -58,8 +52,7 @@ in {
TERM = "xterm-256color";
};
home.packages = with pkgs; [
# customizations.metals
bloopJava8
bloop
cabal2nix
calcurse
customizations.polybar-launcher
Expand All @@ -68,12 +61,12 @@ in {
gnome3.gnome-screenshot
gscan2pdf
ispell
metalsJava8
unstable.metals
nix-prefetch-git
noisetorch
openconnect-sso
openjdk8
sbtJava8
openjdk
sbt
slack-dark
unrar
unstable.cabal-install
Expand Down
7 changes: 5 additions & 2 deletions workstation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware/workstation.nix
"${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/common/cpu/intel"
./common.nix
./desktops/default-desktop.nix
./users/kczulko/user-profile.nix
Expand All @@ -20,6 +21,8 @@
boot.zfs.requestEncryptionCredentials = true;
boot.supportedFilesystems = [ "zfs" ];

virtualisation.docker.enable = true;

# enable virtualisation
#virtualisation.virtualbox.host.enable = true;
#users.extraGroups.vboxusers.members = [ "kczulko" ];
Expand All @@ -29,12 +32,12 @@
useDHCP = false;
interfaces = {
enp2s0.useDHCP = true;
wlp0s20f0u6.useDHCP = true;
wlp0s20f0u5.useDHCP = true;
};
# required by zfs
hostId ="acef45ac";
hostName = "workstation";
wireless.interfaces = [ "wlp0s20f0u6" ];
wireless.interfaces = [ "wlp0s20f0u5" ];
# Network (Wireless and cord)
networkmanager.enable = true;

Expand Down

0 comments on commit 4b6e9c9

Please sign in to comment.