edging towards sway

This commit is contained in:
Cyryl Płotnicki 2020-07-24 22:54:17 +01:00
parent d5b01a52ac
commit 1a9ff8cf3f
7 changed files with 81 additions and 20 deletions

View file

@ -9,12 +9,12 @@ au BufWrite * :Autoformat
let g:rustfmt_autosave = 1
" searching
let $FZF_DEFAULT_COMMAND = 'rga --files --no-messages "" .'
set grepprg=rga\ --vimgrep
let $FZF_DEFAULT_COMMAND = 'rg --files --no-messages "" .'
set grepprg=rg\ --vimgrep
let g:fzf_command_prefix = 'Fzf'
command! -bang -nargs=* Find call fzf#vim#grep('rga --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>), 1, <bang>0)
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>), 1, <bang>0)
let g:ctrlp_show_hidden = 1
let g:ctrlp_user_command = 'rga %s --files --hidden --color=never --glob ""'
let g:ctrlp_user_command = 'rg %s --files --hidden --color=never --glob ""'
" nerdtree startup
autocmd StdinReadPre * let s:std_in=1

View file

@ -39,6 +39,13 @@
enable = true;
};
nix.nixPath = [
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
"nixos-config=/etc/nixos/configuration.nix"
"/nix/var/nix/profiles/per-user/root/channels"
"home-manager=https://github.com/rycee/home-manager/archive/master.tar.gz"
];
imports = [
./hardware-configuration.nix
../../boot.nix

View file

@ -1,22 +1,41 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
genpass bitwarden-cli
gdb lldb
wget git gnupg curl tmux htop atop pciutils powertop ripgrep fd dnsutils du-dust
( pass.withExtensions (ext: [ ext.pass-otp ext.pass-import ext.pass-genphrase ext.pass-audit ext.pass-update ]))
hsetroot lm_sensors
wirelesstools ranger apvlv
apvlv
aria
atop
binutils
bitwarden-cli
curl
dnsutils
docker-compose
du-dust
fd
file
fontconfig
binutils veracrypt gitAndTools.diff-so-fancy
restic jq
hugo mercurial terraform
unzip aria
calcurse file python37Packages.binwalk-full
nixops imagemagick
docker-compose rustup
knockknock
python38Packages.pygments
canto-curses
genpass
git
gitAndTools.diff-so-fancy
gnupg
hsetroot
htop
imagemagick
jq
lm_sensors
mercurial
nixops
pciutils
powertop
ranger
restic
ripgrep
rustup
terraform
tmux
unzip
veracrypt
wget
wirelesstools
];
}

View file

@ -8,7 +8,6 @@
services = {
udev.packages = [ pkgs.android-udev-rules ];
ratbagd.enable = true;
flatpak.enable = true;
fwupd = {
enable = true;

View file

@ -7,6 +7,7 @@
displayManager.gdm.nvidiaWayland = true;
desktopManager.gnome3.enable = true;
};
services.flatpak.enable = true;
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.dconf ];
users.users.cyryl.packages = with pkgs.gnomeExtensions; [
caffeine clipboard-indicator sound-output-device-chooser gsconnect

28
nixos/sway/home.nix Normal file
View file

@ -0,0 +1,28 @@
{ config, pkgs, ... }:
{
programs.mako.enable = true;
imports = [
];
home.sessionVariables = {
};
wayland.windowManager.sway.enable = true;
wayland.windowManager.sway.wrapperFeatures.base = true;
wayland.windowManager.sway.wrapperFeatures.gtk = true;
services = {
kdeconnect = {
enable = true;
indicator = true;
};
network-manager-applet.enable = true;
pasystray.enable = true;
};
services.udiskie.enable = true;
}

7
nixos/sway/system.nix Normal file
View file

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.dconf ];
programs.sway.enable = true;
systemd.defaultUnit = "graphical.target";
}