added hyprland settings

This commit is contained in:
ari committed 2024-04-21 15:04:41 -04:00
1 parent 8abbf16b08
commit de275fc2a4
12 files changed
+2116 -84

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
{
"recommendations": [
"pinage404.nix-extension-pack"
]
}
+183
View File
@@ -0,0 +1,183 @@
########################################################################################
AUTOGENERATED HYPR CONFIG.
PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
########################################################################################
#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#
#autogenerated = 1 # remove this line to remove the warning
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
exec-once = waybar & dunst & firefox & kitty
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# Some default env vars.
env = XCURSOR_SIZE,24
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 5
gaps_out = 20
border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
layout = dwindle
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 10
blur {
enabled = true
size = 3
passes = 1
}
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
}
animations {
enabled = yes
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = off
}
misc {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
force_default_wallpaper = 0
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
device:epic-mouse-v1 {
sensitivity = -0.5
}
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, F, exec, firefox
bind = $mainMod, T, exec, kitty
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, dolphin
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, wofi --show drun
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
File diff suppressed because it is too large. Load diff
+20 -20
View File
@@ -3,11 +3,11 @@
"devenv": { "devenv": {
"locked": { "locked": {
"dir": "src/modules", "dir": "src/modules",
"lastModified": 1708141957, "lastModified": 1713632052,
"narHash": "sha256-IWkw+jsVpu7HFNPbOTJaQeMYQ5/eh7ZVScPvtlSo8vc=",
"owner": "cachix", "owner": "cachix",
"repo": "devenv", "repo": "devenv",
"rev": "40b567388381137a3c49acdff5f4b6946d645a5f", "rev": "9c134f73b11b298674317b84292fa126744a65fb",
"treeHash": "b23850beedbddb3c23ecd5320f95d8c4525aeb18",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -21,10 +21,10 @@
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1696426674, "lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra", "owner": "edolstra",
"repo": "flake-compat", "repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -38,11 +38,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1701680307, "lastModified": 1710146030,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725", "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"treeHash": "bd263f021e345cb4a39d80c126ab650bebc3c10c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -59,11 +59,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1703887061, "lastModified": 1709087332,
"narHash": "sha256-gGPa9qWNc6eCXT/+Z5/zMkyYOuRZqeFZBDbopNZQkuY=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "gitignore.nix", "repo": "gitignore.nix",
"rev": "43e1aa1308018f37118e34d3a9cb4f5e75dc11d5", "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"treeHash": "ca14199cabdfe1a06a7b1654c76ed49100a689f9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -74,11 +74,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1708151420, "lastModified": 1713596654,
"narHash": "sha256-MGT/4aGCWQPQiu6COqJdCj9kSpLPiShgbwpbC38YXC8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6e2f00c83911461438301db0dba5281197fe4b3a", "rev": "fd16bb6d3bcca96039b11aa52038fafeb6e4f4be",
"treeHash": "fadc8eefb11cd63b3a7f59eaf6fac47ece269476",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -90,11 +90,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1704874635, "lastModified": 1713564160,
"narHash": "sha256-YWuCrtsty5vVZvu+7BchAxmcYzTMfolSPP5io8+WYCg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3dc440faeee9e889fe2d1b4d25ad0f430d449356", "rev": "bc194f70731cc5d2b046a6c1b3b15f170f05999c",
"treeHash": "f0682fcd74b6547997b0a93d9d7d1047ef695b3f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -115,11 +115,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1708018599, "lastModified": 1712897695,
"narHash": "sha256-M+Ng6+SePmA8g06CmUZWi1AjG2tFBX9WCXElBHEKnyM=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "5df5a70ad7575f6601d91f0efec95dd9bc619431", "rev": "40e6053ecb65fcbf12863338a6dcefb3f55f1bf8",
"treeHash": "9ba338feee8e6b2193c305f46b65b0fef49816b7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -138,10 +138,10 @@
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems", "owner": "nix-systems",
"repo": "default", "repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"treeHash": "cce81f2a0f0743b2eb61bc2eb6c7adbe2f2c6beb",
"type": "github" "type": "github"
}, },
"original": { "original": {
+6
View File
@@ -2,4 +2,10 @@
{ {
languages.nix.enable = true; languages.nix.enable = true;
packages = [
pkgs.nixpkgs-fmt
];
pre-commit = {
hooks.nixpkgs-fmt.enable = true;
};
} }
+42 -42
View File
@@ -1,49 +1,49 @@
{ { systemStateVersion ? "23.11"
systemStateVersion ? "23.11", , homeMangerVersion ? "23.11"
homeMangerVersion ? "23.11", , enableHomeManager ? true
enableHomeManager ? true, , hostName
hostName, , user
user, , enableSSHServer ? false
enableSSHServer ? false, , firewall ? { enable = true; }
firewall ? {enable = true;}, , enableFingerPrint ? false
enableFingerPrint ? false, ,
}: }:
{ pkgs, ... }: { pkgs, ... }:
let let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${homeMangerVersion}.tar.gz"; home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${homeMangerVersion}.tar.gz";
in in
{ {
imports = [ imports = [
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
(import ./modules/os/nix.nix { (import ./modules/os/nix.nix {
systemStateVersion = systemStateVersion; systemStateVersion = systemStateVersion;
}) })
(import ./modules/os/core.nix { (import ./modules/os/core.nix {
user = user; user = user;
hostName = hostName; hostName = hostName;
firewall = firewall; firewall = firewall;
}) })
(import ./modules/os/hardware.nix { (import ./modules/os/hardware.nix {
enableFingerPrint = enableFingerPrint; enableFingerPrint = enableFingerPrint;
}) })
(import ./modules/os/ssh.nix { (import ./modules/os/ssh.nix {
user = user; user = user;
enableSSHServer = enableSSHServer; enableSSHServer = enableSSHServer;
}) })
./modules/os/services.nix ./modules/os/services.nix
./modules/docker/core.nix ./modules/docker/core.nix
(import ./modules/user.nix { (import ./modules/user.nix {
user = user; user = user;
}) })
(import ./modules/rootUser.nix { (import ./modules/rootUser.nix {
hostName = hostName; hostName = hostName;
}) })
] ++ (if enableHomeManager then [ ] ++ (if enableHomeManager then [
(import "${home-manager}/nixos") (import "${home-manager}/nixos")
(import ./modules/home-manager-config.nix { (import ./optional/home-manager-config.nix {
homeMangerVersion = homeMangerVersion; homeMangerVersion = homeMangerVersion;
hostName = hostName; hostName = hostName;
user = user; user = user;
}) })
] else []); ] else [ ]);
} }
+18
View File
@@ -0,0 +1,18 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
rocmPackages.rocm-smi
rocmPackages.rpp
rocmPackages.rocm-core
rocmPackages.rocm-runtime
rocmPackages.hipblas
rocmPackages.llvm.clang
amdgpu_top
amdctl
];
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.opengl.extraPackages = with pkgs; [
rocmPackages.clr.icd
amdvlk
];
}
+16
View File
@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
environment.systemPackages = with pkgs; [
gnomeExtensions.vitals
];
# Exclude Gnome packages
environment.gnome.excludePackages = [
pkgs.gnome-tour
pkgs.gnome-console
];
services.xserver.excludePackages = [
pkgs.xterm
];
}
@@ -5,7 +5,7 @@
home.stateVersion = homeMangerVersion; home.stateVersion = homeMangerVersion;
programs.git = { programs.git = {
enable = true; enable = true;
userName = "root"; userName = "root";
userEmail = "root@${hostName}"; userEmail = "root@${hostName}";
}; };
programs.zsh = { programs.zsh = {
@@ -39,7 +39,7 @@
}; };
git = { git = {
enable = true; enable = true;
userName = user.fullName; userName = user.fullName;
userEmail = user.email; userEmail = user.email;
}; };
zsh = { zsh = {
+12
View File
@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
programs.hyprland.enable = true;
programs.waybar.enable = true;
environment.systemPackages = with pkgs; [
kitty
xdg-desktop-portal-hyprland
dunst
];
services.pipewire.enable = true;
services.pipewire.wireplumber.enable = true;
}
+1 -16
View File
@@ -31,21 +31,18 @@
docker-compose docker-compose
usbutils usbutils
wget wget
ollama
appimage-run appimage-run
htop htop
nfs-utils nfs-utils
cachix cachix
rocmPackages.rpp
rocmPackages.rocm-smi
glib glib
glibc glibc
glib-networking glib-networking
gnomeExtensions.vitals
(import (fetchTarball "https://install.devenv.sh/latest")).default (import (fetchTarball "https://install.devenv.sh/latest")).default
]; ];
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
services.nfs.server.enable = true; services.nfs.server.enable = true;
services.hydra.useSubstitutes = true;
nix.settings.trusted-substituters = [ nix.settings.trusted-substituters = [
"https://cache.flox.dev" "https://cache.flox.dev"
"https://devenv.cachix.org" "https://devenv.cachix.org"
@@ -55,18 +52,6 @@
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs=" "flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
]; ];
# Default Session Variables
environment.sessionVariables = rec {
};
# Exclude Gnome packages
environment.gnome.excludePackages = [
pkgs.gnome-tour
pkgs.gnome-console
];
services.xserver.excludePackages = [
pkgs.xterm
];
# Fonts # Fonts
fonts = { fonts = {
packages = with pkgs; [ packages = with pkgs; [
-4
View File
@@ -3,10 +3,6 @@
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11 # Configure keymap in X11
services.xserver = { services.xserver = {
layout = "us"; layout = "us";