From 7506a1df0c6001d7009a41bdda8b83d127a86494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 26 Mar 2019 12:32:59 +0000 Subject: [PATCH] Add gnome shell extensions --- .vimrc.plugins | 1 + nixos/configuration.nix | 45 +++++++++++++++++++++++++++-------------- 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/.vimrc.plugins b/.vimrc.plugins index bf9f7a88..3a43c436 100644 --- a/.vimrc.plugins +++ b/.vimrc.plugins @@ -42,5 +42,6 @@ Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'will133/vim-dirdiff' Plug 'Xuyuanp/nerdtree-git-plugin' +Plug 'LnL7/vim-nix' call plug#end() diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 176423e8..1b0cbb9a 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -1,11 +1,24 @@ { config, pkgs, ... }: +let + unstableTarball = + fetchTarball + https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz; +in { imports = - [ + [ /etc/nixos/hardware-configuration.nix ]; + nixpkgs.config = { + packageOverrides = pkgs: { + unstable = import unstableTarball { + config = config.nixpkgs.config; + }; + }; + }; + environment.systemPackages = with pkgs; [ wget vim git zsh gnupg curl tmux ]; @@ -15,13 +28,15 @@ users.users.cyryl = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" ]; - packages = with pkgs; [ - firefox terminator zsh keepass fontconfig go nodejs rustup gcc gdb binutils xclip pkgconfig veracrypt gitAndTools.diff-so-fancy - ]; + packages = with pkgs; [ + firefox chromium terminator zsh keepass fontconfig go nodejs rustup gcc gdb binutils xclip pkgconfig veracrypt gitAndTools.diff-so-fancy gnome3.gnome-shell-extensions chrome-gnome-shell gnomeExtensions.clipboard-indicator gnomeExtensions.caffeine gnomeExtensions.no-title-bar unstable.gnomeExtensions.gsconnect + ]; uid = 1000; shell = pkgs.zsh; }; + services.gnome3.chrome-gnome-shell.enable = true; + services.syncthing = { enable = true; user = "cyryl"; @@ -30,18 +45,17 @@ }; services.xserver = { - enable = true; - layout = "pl"; - libinput.enable = true; - - desktopManager = { - gnome3.enable = true; - default="gnome3"; - xterm.enable=false; - }; - displayManager.gdm.enable = true; + enable = true; + layout = "pl"; + libinput.enable = true; + + desktopManager = { + gnome3.enable = true; + xterm.enable = false; + }; + displayManager.gdm.enable = true; }; - + sound.enable = true; hardware.pulseaudio.enable = true; @@ -65,3 +79,4 @@ system.stateVersion = "18.09"; } +