diff options
Diffstat (limited to '')
| -rw-r--r-- | config/alacritty/alacritty.toml | 11 | ||||
| -rw-r--r-- | config/dunst/dunstrc (renamed from .config/dunst/dunstrc) | 12 | ||||
| -rw-r--r-- | config/fuzzel/fuzzel.ini | 16 | ||||
| -rw-r--r-- | config/hypr/hyprland.conf (renamed from .config/hypr/hyprland.conf) | 10 | ||||
| -rw-r--r-- | config/hypr/hyprpaper.conf (renamed from .config/hypr/hyprpaper.conf) | 1 | ||||
| -rw-r--r-- | config/nvim/init.lua (renamed from .config/nvim/init.lua) | 5 | ||||
| -rw-r--r-- | config/nvim/lua/compile.lua (renamed from .config/nvim/lua/compile.lua) | 0 | ||||
| -rw-r--r-- | config/waybar/config (renamed from .config/waybar/config) | 3 | ||||
| -rw-r--r-- | config/waybar/style.css (renamed from .config/waybar/style.css) | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | configuration.nix | 181 |
10 files changed, 184 insertions, 55 deletions
diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml new file mode 100644 index 0000000..3c39090 --- /dev/null +++ b/config/alacritty/alacritty.toml @@ -0,0 +1,11 @@ +[window] +dynamic_title = true + +[font] +normal = { family = "UbuntuMono Nerd Font Mono", style = "Regular" } +bold = { family = "UbuntuMono Nerd Font Mono", style = "Bold" } +italic = { family = "UbuntuMono Nerd Font Mono", style = "Italic" } +bold_italic = { family = "UbuntuMono Nerd Font Mono", style = "Bold Italic" } + +[cursor] +style = { shape = "Beam" } diff --git a/.config/dunst/dunstrc b/config/dunst/dunstrc index 52973b6..902ba1c 100644 --- a/.config/dunst/dunstrc +++ b/config/dunst/dunstrc @@ -1,11 +1,9 @@ [global] - monitor = 0 + monitor = 1 follow = none - geometry = "300x5-30+20" indicate_hidden = yes shrink = no transparency = 0 - notification_height = 0 separator_height = 2 padding = 8 horizontal_padding = 8 @@ -38,8 +36,6 @@ always_run_script = true title = Dunst class = Dunst - startup_notification = false - verbosity = mesg corner_radius = 0 ignore_dbusclose = false force_xinerama = false @@ -49,12 +45,6 @@ [experimental] per_monitor_dpi = false -[shortcuts] - close = ctrl+space - close_all = ctrl+shift+space - history = ctrl+grave - context = ctrl+shift+period - [urgency_low] background = "#131417" foreground = "#ffffff" diff --git a/config/fuzzel/fuzzel.ini b/config/fuzzel/fuzzel.ini new file mode 100644 index 0000000..42f47df --- /dev/null +++ b/config/fuzzel/fuzzel.ini @@ -0,0 +1,16 @@ +width=50 +font=UbuntuMono Nerd Font:size=8 +terminal=alacritty -e +prompt="> " +layer=overlay +line-height=16 +icons-enabled=no + +[colors] +background=272727ff +selection-text=272727ff +selection-match=272727ff +selection=f2f0faff +text=f2f0faff +match=f2f0faff +border=f2f0faff diff --git a/.config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 22d71f3..075dbec 100644 --- a/.config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -1,6 +1,7 @@ -monitor=,1920x1080@60,auto,1 +monitor=eDP-1,1920x1080@60,0x0,1 +monitor=HDMI-A-1,2560x1440@60,-2560x-350,1 -exec-once = waybar & hyprpaper & dunst & # /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec-once = waybar & hyprpaper & dunst & /nix/store/$(ls -la /nix/store | grep 'polkit-gnome' | grep 4096 | awk '{print $9}' | sed -n '$p')/libexec/polkit-gnome-authentication-agent-1 & blueman-applet & nm-applet xwayland { force_zero_scaling = true @@ -59,13 +60,14 @@ gestures { workspace_swipe = true } -bind = SUPER SHIFT, RETURN, exec, terminator +bind = SUPER SHIFT, RETURN, exec, alacritty bind = SUPER SHIFT, Q, killactive bind = SUPER SHIFT, B, exit bind = SUPER, E, exec, dolphin bind = SUPER SHIFT, F, togglefloating bind = SUPER, F, fullscreen, 1 -bind = SUPER, SPACE, exec, pkill tofi || tofi-drun +bind = SUPER, SPACE, exec, pkill fuzzel || fuzzel +bind = SUPER, X, exec, waylock bind = SUPER, RETURN, layoutmsg, swapwithmaster master bind = SUPER SHIFT, J, layoutmsg, swapnext diff --git a/.config/hypr/hyprpaper.conf b/config/hypr/hyprpaper.conf index 2af46e3..8204052 100644 --- a/.config/hypr/hyprpaper.conf +++ b/config/hypr/hyprpaper.conf @@ -1,2 +1,3 @@ preload = /home/compromyse/Pictures/wallpaper.jpg wallpaper = ,/home/compromyse/Pictures/wallpaper.jpg +splash = false diff --git a/.config/nvim/init.lua b/config/nvim/init.lua index ffb09a8..f3873b6 100644 --- a/.config/nvim/init.lua +++ b/config/nvim/init.lua @@ -185,6 +185,11 @@ vim.keymap.set('t', '<A-y>', '<cmd>ToggleTerm<cr>', { noremap = true }) vim.keymap.set('n', '<A-n>', '<cmd>bnext<cr>', { noremap = true }) vim.keymap.set('n', '<A-p>', '<cmd>bprev<cr>', { noremap = true }) +vim.keymap.set('n', '<C-h>', '<cmd>TmuxNavigateLeft<cr>', { noremap = true }) +vim.keymap.set('n', '<C-j>', '<cmd>TmuxNavigateDown<cr>', { noremap = true }) +vim.keymap.set('n', '<C-k>', '<cmd>TmuxNavigateUp<cr>', { noremap = true }) +vim.keymap.set('n', '<C-l>', '<cmd>TmuxNavigateRight<cr>', { noremap = true }) + vim.keymap.set('n', '<A-a>', '<cmd>lua oil.toggle_float()<cr>', { noremap = true }) -- Splitting The Window diff --git a/.config/nvim/lua/compile.lua b/config/nvim/lua/compile.lua index f529b90..f529b90 100644 --- a/.config/nvim/lua/compile.lua +++ b/config/nvim/lua/compile.lua diff --git a/.config/waybar/config b/config/waybar/config index 68f25d7..24cb4f0 100644 --- a/.config/waybar/config +++ b/config/waybar/config @@ -1,5 +1,6 @@ { "layer": "top", + "output": "eDP-1", "height": 40, "modules-left": ["custom/launcher", "hyprland/workspaces", "hyprland/window"], "modules-right": ["tray", "cpu", "backlight", "battery", "clock"], @@ -25,7 +26,7 @@ }, "hyprland/window": { "format": "> {title}", - "separate-outputs": true + "separate-outputs": false }, "tray": { "spacing": 10 diff --git a/.config/waybar/style.css b/config/waybar/style.css index a42db21..a42db21 100644 --- a/.config/waybar/style.css +++ b/config/waybar/style.css diff --git a/configuration.nix b/configuration.nix index c4940ef..691a311 100755..100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,10 +1,12 @@ { config, pkgs, ... }: { - imports = - [ - ./hardware-configuration.nix - ]; + imports = [ + ./hardware-configuration.nix + <home-manager/nixos> + ]; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; @@ -13,6 +15,11 @@ networking.hostName = "OwO"; networking.networkmanager.enable = true; + fileSystems."/data" = { + device = "/dev/sda"; + fsType = "ext4"; + }; + time.timeZone = "Asia/Kolkata"; nixpkgs.config.allowUnfree = true; @@ -55,6 +62,10 @@ }; }; + services.logind.extraConfig = '' + HandlePowerKey=ignore + ''; + systemd.services.greetd.serviceConfig = { Type = "idle"; StandardInput = "tty"; @@ -65,55 +76,146 @@ TTYVTDisallocate = true; }; - /* nixpkgs.overlays = [ - (self: super: { - waybar = super.waybar.overrideAttrs (oldAttrs: { - src = super.fetchFromGitHub { - owner = "Alexays"; - repo = "waybar"; - rev = "e46f66b4687eb807b6fc9c6714e52c52d0885926"; - hash = "sha256-bNzLLkkhH1MZmBneP3PH3xkED0hDWXyiaMqNWF2ilII="; - }; - }); - }) - ]; */ + environment.etc."inputrc".text = pkgs.lib.mkForce ( + builtins.readFile <nixpkgs/nixos/modules/programs/bash/inputrc> + '' + set completion-ignore-case on + '' + ); users.users.compromyse = { isNormalUser = true; extraGroups = [ "wheel" "storage" "libvirtd" ]; - packages = with pkgs; [ - neofetch - ]; }; - environment.systemPackages = with pkgs; [ - vim - wget - git + home-manager.useUserPackages = true; + home-manager.useGlobalPkgs = true; - polkit_gnome + home-manager.users.compromyse = { pkgs, ... }: { + home.packages = with pkgs; [ + wget + + tmux + fzf + fd + ripgrep + + cinnamon.nemo + mate.eom + + spotify + firefox + + pavucontrol + blueman + brillo + ]; + + programs.bash = { + enable = true; + initExtra= '' + export PS1="\[\e[38;5;243m\]\h \[\e[38;5;254m\]\w \[\033[0m\]> " + + sessionizer() { + DIR=$(fd . $HOME --type d -L -H | fzf) + SESSION_NAME="$DIR_$(date +%M%S)" + + if [ -n "$DIR" ] + then + if [ "$1" == "-cd" ] + then + cd $DIR + return + fi + tmux new-session -d -c "$DIR" -s "$SESSION_NAME" + if [ -n "$TMUX" ] + then + tmux switch -t "$SESSION_NAME" + else + tmux attach -t "$SESSION_NAME" + fi + fi + } + + if [[ $- != *i* ]] + then + sessionizer + fi + + bind '"\C-f": "sessionizer\n"' + bind '"\C-F": "sessionizer -cd\n"' + ''; + }; + + programs.git = { + enable = true; + userName = "Raghuram Subramani"; + userEmail = "raghus2247@gmail.com"; + }; + + programs.neovim = { + enable = true; + defaultEditor = true; + viAlias = true; + vimAlias = true; + vimdiffAlias = true; + }; + + + programs.alacritty = { + enable = true; + }; + + home.file = { + ".tmux.conf".source = ./.tmux.conf; + ".fdignore".source = ./.fdignore; + ".config" = { + source = ./config; + recursive = true; + }; + }; + + home.pointerCursor = { + gtk.enable = true; + package = pkgs.bibata-cursors; + name = "Bibata-Modern-Classic"; + size = 16; + }; + + gtk = { + enable = true; + + theme = { name = "adw-gtk3-dark"; package = pkgs.adw-gtk3; }; + iconTheme = { name = "Papirus-Light"; package = pkgs.papirus-icon-theme; }; + + font = { name = "UbuntuMono Nerd Font"; }; + }; + + qt = { + enable = true; + platformTheme = "gtk"; + style.name = "adwaita-dark"; + }; + + home.stateVersion = "23.11"; + programs.home-manager.enable = true; + }; + environment.systemPackages = with pkgs; [ waybar + tofi fuzzel dunst hyprpaper - greetd.tuigreet - greetd.greetd - terminator - firefox - spotify - virt-manager + networkmanagerapplet - pavucontrol - blueman + greetd.tuigreet + greetd.greetd + polkit_gnome + waylock libnotify libappindicator - - materia-theme - papirus-icon-theme - capitaine-cursors ]; fonts.packages = with pkgs; [ @@ -128,9 +230,10 @@ }; security.polkit.enable = true; + security.pam.services.waylock.text = '' + auth include login + ''; - system.copySystemConfiguration = true; - - system.stateVersion = "unstable"; + system.stateVersion = "23.11"; } |
