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 let g:rustfmt_autosave = 1
" searching " searching
let $FZF_DEFAULT_COMMAND = 'rga --files --no-messages "" .' let $FZF_DEFAULT_COMMAND = 'rg --files --no-messages "" .'
set grepprg=rga\ --vimgrep set grepprg=rg\ --vimgrep
let g:fzf_command_prefix = 'Fzf' 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_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 " nerdtree startup
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1

View file

@ -39,6 +39,13 @@
enable = true; 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 = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../boot.nix ../../boot.nix

View file

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

View file

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

View file

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