From 18cab7b9364c519415f4ccd199364fc896993473 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Fri, 30 Oct 2020 13:37:31 +0200 Subject: [PATCH] feat: docker and wine I think --- modules/applications/default.nix | 2 ++ modules/applications/docker.nix | 7 +++++++ modules/applications/misc.nix | 1 + modules/applications/wakatime/default.nix | 7 +++++-- modules/applications/wine.nix | 7 +++++++ modules/overlay.nix | 1 + modules/users.nix | 2 +- 7 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 modules/applications/docker.nix create mode 100644 modules/applications/wine.nix diff --git a/modules/applications/default.nix b/modules/applications/default.nix index c228589..a51a073 100644 --- a/modules/applications/default.nix +++ b/modules/applications/default.nix @@ -5,6 +5,8 @@ ./wakatime ./xmonad + ./wine.nix + ./docker.nix ./misc.nix ./locale.nix ./memes.nix diff --git a/modules/applications/docker.nix b/modules/applications/docker.nix new file mode 100644 index 0000000..487eb15 --- /dev/null +++ b/modules/applications/docker.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: { + virtualisation.docker.enable = true; + home-manager.users.adrielus.home.packages = with pkgs; [ + docker + docker-compose + ]; +} diff --git a/modules/applications/misc.nix b/modules/applications/misc.nix index a80ff8c..a7c70b4 100644 --- a/modules/applications/misc.nix +++ b/modules/applications/misc.nix @@ -50,6 +50,7 @@ akonadi obs-studio # video recorder # blueman # bluetooth manager + freesweep # minesweeper I can play w the keyboard. # Nes emulators and stuff zsnes diff --git a/modules/applications/wakatime/default.nix b/modules/applications/wakatime/default.nix index b332937..6c7779d 100644 --- a/modules/applications/wakatime/default.nix +++ b/modules/applications/wakatime/default.nix @@ -1,3 +1,6 @@ -{ ... }: { - home-manager.users.adrielus.home.file.".wakatime.cfg".source = ./wakatime.cfg; +{ pkgs, ... }: { + home-manager.users.adrielus.home = { + file.".wakatime.cfg".source = ./wakatime.cfg; + packages = with pkgs; [ wakatime ]; + }; } diff --git a/modules/applications/wine.nix b/modules/applications/wine.nix new file mode 100644 index 0000000..fae1fe0 --- /dev/null +++ b/modules/applications/wine.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: { + home-manager.users.adrielus.home.packages = with pkgs; [ + wineWowPackages.stable + winetricks + playonlinux + ]; +} diff --git a/modules/overlay.nix b/modules/overlay.nix index abaec84..ca54717 100644 --- a/modules/overlay.nix +++ b/modules/overlay.nix @@ -29,6 +29,7 @@ in { brave = unstable.brave; ngrok = unstable.ngrok; vscodium = unstable.vscodium; + docker-compose = unstable.docker-compose; deno = unstable.deno; discord-canary = unstable.discord-canary; dotnet-sdk = dotnet-sdk_3; diff --git a/modules/users.nix b/modules/users.nix index ba09266..73d90a1 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -5,7 +5,7 @@ with import ../secrets.nix; { users.adrielus = { inherit hashedPassword; - extraGroups = [ "wheel" "networkmanager" "lp" ]; + extraGroups = [ "wheel" "networkmanager" "lp" "docker" ]; isNormalUser = true; shell = pkgs.fish; };