Compare commits

...

2 Commits

Author SHA1 Message Date
grimhilt
f986493354 add gnome/nix 2023-01-09 20:59:55 +01:00
grimhilt
d79a29f67c start nvim configuration 2023-01-09 20:36:18 +01:00
8 changed files with 88 additions and 42 deletions

View File

@ -1,12 +1,40 @@
call plug#begin('~/.config/nvim/plugged')
Plug 'sonph/onehalf', { 'rtp': 'vim' }
Plug 'vifm/vifm.vim'
Plug 'preservim/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'jiangmiao/auto-pairs'
"Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'sheerun/vim-polyglot'
Plug 'itchyny/lightline.vim'
call plug#end()
syntax on
colorscheme onehalfdark
" lightline
let g:lightline = {
\ 'colorscheme': 'onehalfdark',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component': {
\ 'helloworld': 'Hello, world!'
\ },
\ }
set number
set relativenumber
set tabstop=4 softtabstop=4
set tabstop=4 softtabstop=0
set shiftwidth=4
set expandtab
set smartindent
set ignorecase
set incsearch
set scrolloff=8
set noshowmode
"set colorcolumn=80
"set mouse=a
"set clipboard=unnamedplus

View File

@ -95,15 +95,15 @@ super + ctrl + {m,x,y,z}
#
# Focus the node in the given direction
super + {Left,Down,Up,Right}
bspc node -f {west,south,north,east}
#super + {Left,Down,Up,Right}
# bspc node -f {west,south,north,east}
super + {h, j, k, l}
bspc node -f {west,south,north,east}
# Move the node to the given direction
super + shift + {Left,Down,Up,Right}
bspc node -s {west,south,north,east}
#super + shift + {Left,Down,Up,Right}
# bspc node -s {west,south,north,east}
super + shift + {h, j, k, l}
bspc node -s {west,south,north,east}

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.config/nvim/plugged

39
configuration.nix → nixos/configuration.nix Executable file → Normal file
View File

@ -23,8 +23,6 @@ programs.nix-ld.enable = true;
#networking.hostName = "nixos"; # Define your hostname.
networking.networkmanager.enable = true;
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Set your time zone.
@ -48,8 +46,6 @@ programs.nix-ld.enable = true;
# keyMap = "us";
# };
# Enable the X11 windowing system.
services.xserver = {
enable = true;
@ -65,23 +61,17 @@ programs.nix-ld.enable = true;
autoRepeatDelay = 200;
autoRepeatInterval = 35;
windowManager.bspwm.enable = true;
#desktopManager.xterm.enable = true;
# gnome
#displayManager.gdm.enable = true;
#desktopManager.gnome.enable = true;
displayManager.defaultSession = "none+bspwm";
#displayManager.startx.enable = true;
libinput = {
libinput = {
# Enable touchpad support (enabled default in most desktopManager).
enable = true;
touchpad.accelSpeed = "0.155";
};
};
virtualisation.docker.enable = true;
# Enable CUPS to print documents.
@ -106,7 +96,7 @@ programs.nix-ld.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
environment.systemPackages = with pkgs; [
# editors
vim
neovim
@ -161,30 +151,8 @@ programs.nix-ld.enable = true;
python311
geany
nasm
# tmp
# gsettings-desktop-schemas
];
# environment.gnome.excludePackages = (with pkgs; [
# gnome-photos
# gnome-tour
# ]) ++ (with pkgs.gnome; [
# cheese # webcam tool
# gnome-music
# gnome-terminal
# gedit # text editor
# epiphany # web browser
# geary # email reader
# evince # document viewer
# gnome-characters
# totem # video player
# tali # poker game
# iagno # go game
# hitori # sudoku game
# atomix # puzzle game
# ]);
fonts.fonts = [ pkgs.font-awesome ];
nixpkgs.config.allowUnfree = true;
@ -197,6 +165,7 @@ programs.nix-ld.enable = true;
enable = true;
theme = "candy-kingdom";
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;

27
nixos/gnome.nix Normal file
View File

@ -0,0 +1,27 @@
{
services.xserver = {
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
}
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
cheese
gnome-music
gnome-terminal
gedit
epiphany
geary
evince
gnome-characters
totem
tali
iagno
hitori
atomix
]);
}

21
nixos/xfce_bspwm.nix Normal file
View File

@ -0,0 +1,21 @@
{ config, lib, pkgs, ...}: with lib;
{
services.xserver = {
desktopManager.xfce = {
enable = true;
enableXfwm = false;
};
windowManager.bspwm.enable = true;
#iwindowManager.bspwm.configFile = "/home/grimhilt/dotfiles/common/bspwm/bspwmrc";
#windowManager.bspwm.sxhkd.configFile = "/home/grimhilt/dotfiles/common/bspwm/sxhkdrc";
desktopManager.xterm.enable = false;
};
#services.xserver.displayManager.defaultSession = "none+bspwm";
}