diff --git a/nixos/hosts/xps13_9350/configuration.nix b/nixos/hosts/xps13_9350/configuration.nix index 9a683b0a..63fbeb08 100644 --- a/nixos/hosts/xps13_9350/configuration.nix +++ b/nixos/hosts/xps13_9350/configuration.nix @@ -56,8 +56,8 @@ services.xserver.enable = true; - services.displayManager.sddm.enable = true; - services.desktopManager.plasma6.enable = true; + #services.displayManager.sddm.enable = true; + #services.desktopManager.plasma6.enable = true; services.xserver.xkb = { layout = "us"; @@ -89,6 +89,8 @@ systemd.services."getty@tty1".enable = false; systemd.services."autovt@tty1".enable = false; programs.firefox.enable = true; + programs.hyprland.enable = true; + programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland; nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ git diff --git a/nixos/hosts/xps13_9350/flake.nix b/nixos/hosts/xps13_9350/flake.nix index e523cfe9..40af24ba 100644 --- a/nixos/hosts/xps13_9350/flake.nix +++ b/nixos/hosts/xps13_9350/flake.nix @@ -2,6 +2,7 @@ description = "joey@joey-laptop"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; + hyprland.url = "github:hyprwm/Hyprland"; home-manager.url = "github:nix-community/home-manager/release-24.05"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/nixos/hosts/xps13_9350/home.nix b/nixos/hosts/xps13_9350/home.nix index bac27c10..925a3d64 100644 --- a/nixos/hosts/xps13_9350/home.nix +++ b/nixos/hosts/xps13_9350/home.nix @@ -9,8 +9,24 @@ ]; home.file = {}; home.sessionVariables = {}; - programs.home-manager.enable = true; - wayland.windowManager.hyprland.enable = false; + + # Programs + + wayland.windowManager.hyprland = { + enable = true; + settings = { + decoration = { + shadow_offset = "0 5"; + "col.shadow" = "rgba(00000099)"; + }; + "$mod" = "SUPER"; + bindm = [ + "$mod, mouse:272, movewindow" + "$mod, mouse:273, resizewindow" + "$mod, ALT, mouse:272, resizewindow" + ]; + }; + }; programs.git = { enable = true; @@ -22,6 +38,8 @@ enable = true; dotDir = ".config/zsh"; enableCompletion = true; + autosuggestion.enable = true; + autosuggestion.strategy = [ "history" ]; initExtra = '' bindkey -e bindkey '^[[1;5D' backward-word @@ -66,5 +84,9 @@ } ]; }; + + programs.home-manager = { + enable = true; + }; }