diff --git a/home/xmonad/.xmonad/lib/DraculaColors.hi b/home/xmonad/.xmonad/lib/DraculaColors.hi deleted file mode 100755 index 5654086..0000000 Binary files a/home/xmonad/.xmonad/lib/DraculaColors.hi and /dev/null differ diff --git a/home/xmonad/.xmonad/lib/GruvboxColors.hi b/home/xmonad/.xmonad/lib/GruvboxColors.hi deleted file mode 100755 index dea7997..0000000 Binary files a/home/xmonad/.xmonad/lib/GruvboxColors.hi and /dev/null differ diff --git a/nix/README.md b/nix/README.md new file mode 100644 index 0000000..3c11607 --- /dev/null +++ b/nix/README.md @@ -0,0 +1,43 @@ +# NixOS setup + +1. Backup your old config +```bash +$ sudo mv /etc/nixos /etc/nixos.old +``` + +2. Copy repo and symlink new config from dotfiles +```bash +$ git clone https://github.com/horhik/dotfiles +$ cd dotfiles +$ sudo ln -s $HOME/dotfiles/nix /etc/nixos +``` + +3. Past your hardware-configuration +```bash +$ sudo cp /etc/nixos.old/hardware-configuration.nix /etc/nixos/ +``` + +4. Install home-manager +```bash +$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager +$ nix-channel --update + +$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manager +$ nix-channel --update + +export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH + +$ nix-shell '' -A install +``` + +5. Copy dotfiles + ```bash + stow --adopt -vt ~ $HOME/dotfiles/home/* + ``` +6. Build nixos +```bash + cd /etc/nixos + sudo nixos-rebuild build --flake "#." +``` + + diff --git a/nix/configuration.nix b/nix/configuration.nix index 001b110..298830c 100755 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -121,7 +121,7 @@ mononoki fontmatrix firefox connman - wpa_supplicant python3 xkblayout-state acpi yaru-theme + wpa_supplicant python3 xkblayout-state acpi yaru-theme xkb-switch pipewire pulsemixer nerdfonts feh compton ninja meson cmake anki clang_12 zathura redshift rustup neofetch tree @@ -131,6 +131,7 @@ spotify obsidian discord nfs-utils cifs-utils nfs-ganesha + transmission ]; # Some programs need SUID wrappers, can be configured further or are @@ -219,7 +220,7 @@ nixpkgs.overlays = [ (import (builtins.fetchTarball { url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz; - sha256 = "0c2p2ycx6c50rzfd5k56cc411cb0ilhc3zyhhxlwcjnz1ysn5laj"; + sha256 = "039kk45r6pqsfd865lgfiwbaqlpll4p9pmndbzhi6l5w5r8dbabm"; })) ]; } diff --git a/nix/flake.nix b/nix/flake.nix index 95865de..0fb5cd4 100755 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -74,9 +74,12 @@ imports = [ ./modules/picom.nix ./modules/tmux.nix + ./modules/bspwm ]; }; }) + + { nixpkgs.overlays = overlays; } ]; inherit pkgs; }; diff --git a/nix/hardware-configuration.nix b/nix/hardware-configuration.nix index 0ef6ae0..e5525c2 100755 --- a/nix/hardware-configuration.nix +++ b/nix/hardware-configuration.nix @@ -14,17 +14,17 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/1dd41f8e-142f-4799-a5e5-cc916cf016c1"; + { device = "/dev/disk/by-uuid/906b2b92-4e31-4a91-938f-14ac752dffe7"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/7555-74BA"; + { device = "/dev/disk/by-uuid/8200-D543"; fsType = "vfat"; }; swapDevices = - [ { device = "/dev/disk/by-uuid/4d03f0d2-c4d2-4f50-9b0c-86ab4df15cfd"; } + [ { device = "/dev/disk/by-uuid/98b5b158-730a-470c-95f1-d8a32ebff9ad"; } ]; } diff --git a/nix/modules/bspwm.nix b/nix/modules/bspwm.nix new file mode 100644 index 0000000..b33c2cc --- /dev/null +++ b/nix/modules/bspwm.nix @@ -0,0 +1,5 @@ +{ pkgs, ... }: +{ + services.xserver.windowManager.bspwm.enable = true; + home.packages = [pkgs.sxhdkd]; +} diff --git a/nix/modules/picom.nix b/nix/modules/picom.nix index b8e228f..eb0e73a 100755 --- a/nix/modules/picom.nix +++ b/nix/modules/picom.nix @@ -74,7 +74,7 @@ rounded-corners-exclude = [ "window_type = 'dock'", "_NET_WM_STATE@:32a *= '_NET_WM_STATE_FULLSCREEN'", - "class_g = 'keynav'", + "class_g = 'keynav'" ]; round-borders = 0; round-borders-exclude = [ diff --git a/nix/modules/tmux.nix b/nix/modules/tmux.nix index a5642cd..8c704bf 100644 --- a/nix/modules/tmux.nix +++ b/nix/modules/tmux.nix @@ -1,8 +1,8 @@ {config, pkgs, ...}: -programs.tmux = { + { enable = true; clock24 = true; - extraPackages = tmuxPlugins : [tmux-gruvbox.gruvbox ]; + home.packages = [pkgs.tmuxPlugins.gruvbox ]; extraTmuxConf = '' set -g @plugin 'egel/tmux-gruvbox' set -g @tmux-gruvbox 'dark' # or 'light'