diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-02-08 03:19:30 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-02-08 03:19:30 -0800 |
commit | 504b765606f02b610d74d259ddf2c85292e1f6c0 (patch) | |
tree | 49908b9e9064b0f0fc8bf8070e8cf5cdf547e3a6 /nix/modules/home | |
parent | 56faa5e9caf4408c2c4d6df50287c3b1c9e6c1b4 (diff) |
add nix-topology; make configuration options less bad; restructure project a bit; add flake system looping
Diffstat (limited to 'nix/modules/home')
-rw-r--r-- | nix/modules/home/default.nix | 17 | ||||
-rw-r--r-- | nix/modules/home/hyprland.nix | 6 | ||||
-rw-r--r-- | nix/modules/home/user.nix | 11 |
3 files changed, 15 insertions, 19 deletions
diff --git a/nix/modules/home/default.nix b/nix/modules/home/default.nix index 45b0890..13966da 100644 --- a/nix/modules/home/default.nix +++ b/nix/modules/home/default.nix @@ -42,23 +42,8 @@ music.enable = lib.mkEnableOption "Enables mpd"; workstation.enable = lib.mkEnableOption "Enables workstation packages (music production and others)"; cuda.enable = lib.mkEnableOption "Enables CUDA user package builds"; + hyprland.enable = lib.mkEnableOption "Enables hyprland"; - hyprland = { - enable = lib.mkEnableOption "Enables hyprland"; - monitors = lib.mkOption { - type = lib.types.listOf lib.types.str; - default = [ - "HDMI-A-1" - "eDP-1" - "DP-2" - "DP-3" - "LVDS-1" - "DP-4" - ]; - example = []; - description = "Hyprland monitors"; - }; - }; email = { email = lib.mkOption { type = lib.types.str; diff --git a/nix/modules/home/hyprland.nix b/nix/modules/home/hyprland.nix index 36e1621..1463f90 100644 --- a/nix/modules/home/hyprland.nix +++ b/nix/modules/home/hyprland.nix @@ -7,6 +7,12 @@ systemd.enable = true; settings = { "$mod" = "SUPER"; + bezier = [ + "overshot,0,1,0,0.95" + ]; + animation = [ + "workspaces, 1, 10, overshot" + ]; exec-once = [ "waybar" "swww-daemon --format xrgb" diff --git a/nix/modules/home/user.nix b/nix/modules/home/user.nix index 882041b..85b6a70 100644 --- a/nix/modules/home/user.nix +++ b/nix/modules/home/user.nix @@ -62,12 +62,17 @@ pfetch libnotify htop - (writeShellScriptBin "install_vps" + (writeShellScriptBin "remote-build" '' #!/bin/bash -nix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config ./systems/spontaneity/hardware-configuration.nix --flake .#spontaneity --target-host "$1" - '' +nixos-rebuild --target-host "$1" switch --flake .#spontaneity +'' ) + (writeShellScriptBin "install-vps" + '' +#!/bin/bash +nix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config ./systems/spontaneity/hardware-configuration.nix --flake .#spontaneity --target-host "$1" + '') ] else [ pfetch |