WIP: hyprland
FEAT: iwd for korea FIX: iwd conf location
This commit is contained in:
parent
6171951c23
commit
243177409e
|
@ -56,7 +56,9 @@ in {
|
|||
|
||||
rekey.secrets.patrick.file = ./secrets/patrick.passwd.age;
|
||||
|
||||
environment.etc.issue.text = "<<< Welcome to NixOS 23.05.20230304.3c5319a (\m) - \l >>>";
|
||||
environment.etc.issue.text = ''
|
||||
<<< Welcome to NixOS 23.05.20230304.3c5319a (\m) - \l >>>
|
||||
'';
|
||||
|
||||
users.motd = "Guten Tach";
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
|
@ -97,6 +99,9 @@ in {
|
|||
age-plugin-yubikey
|
||||
rage
|
||||
file
|
||||
ripgrep
|
||||
killall
|
||||
fd
|
||||
# xournalpp needs this or else it will crash
|
||||
gnome3.adwaita-icon-theme
|
||||
];
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
general {
|
||||
gaps_in = 1
|
||||
gaps_out = 0
|
||||
}
|
||||
|
||||
input {
|
||||
sensitivity = -0.7
|
||||
kb_layout = de
|
||||
kb_variant = bone
|
||||
repeat_rate = 60
|
||||
repeat_delay = 235
|
||||
# Only change focus on mouse click
|
||||
follow_mouse = 2
|
||||
}
|
||||
|
||||
bind=SUPER,b,exec,firefox
|
||||
bind=SUPER,t,exec,kitty
|
||||
bind=SUPER + Shift,esc,exit
|
60
data/hyprland/config.nix
Normal file
60
data/hyprland/config.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
MOD: TAGS: pkgs:
|
||||
''
|
||||
general {
|
||||
gaps_in = 1
|
||||
gaps_out = 0
|
||||
}
|
||||
|
||||
input {
|
||||
sensitivity = -0.8
|
||||
kb_model = pc105
|
||||
kb_layout = de
|
||||
kb_variant = bone
|
||||
repeat_rate = 60
|
||||
repeat_delay = 235
|
||||
# Only change focus on mouse click
|
||||
follow_mouse = 2
|
||||
}
|
||||
|
||||
# keybinds
|
||||
bind=${MOD},q,killactive,
|
||||
bind=${MOD},return,fullscreen,
|
||||
bind=${MOD},f,togglefloating
|
||||
bind=${MOD},tab,cyclenext,
|
||||
bind=ALT,tab,cyclenext,
|
||||
bind=,Menu,exec,rofi -show drun
|
||||
|
||||
bind=${MOD},left,movefocus,l
|
||||
bind=${MOD},right,movefocus,r
|
||||
bind=${MOD},up,movefocus,u
|
||||
bind=${MOD},down,movefocus,d
|
||||
|
||||
bind=${MOD},n,movefocus,l
|
||||
bind=${MOD},s,movefocus,r
|
||||
bind=${MOD},l,movefocus,u
|
||||
bind=${MOD},r,movefocus,d
|
||||
|
||||
bind=${MOD} + Shift,left,movewindow,l
|
||||
bind=${MOD} + Shift,right,movewindow,r
|
||||
bind=${MOD} + Shift,up,movewindow,u
|
||||
bind=${MOD} + Shift,down,movewindow,d
|
||||
|
||||
bind=${MOD} + Shift,n,movewindow,l
|
||||
bind=${MOD} + Shift,s,movewindow,r
|
||||
bind=${MOD} + Shift,l,movewindow,u
|
||||
bind=${MOD} + Shift,r,movewindow,d
|
||||
|
||||
|
||||
|
||||
|
||||
bind=${MOD},b,exec,firefox
|
||||
bind=${MOD},t,exec,kitty
|
||||
bind=${MOD} + Shift,Escape,exit
|
||||
''
|
||||
+ builtins.concatStringsSep "\n" (map (
|
||||
x: ''
|
||||
bind=${MOD},${x},workspace,${x}
|
||||
bind=${MOD} + Shift,${x},movetoworkspace,${x}
|
||||
''
|
||||
)
|
||||
TAGS)
|
|
@ -247,11 +247,11 @@
|
|||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-b3t2blYgmHf/HXc152Fa7+YKJSS05vRnrs8i+H6SWA8=",
|
||||
"path": "/nix/store/hjmn6wjprx9h7cfh46h46byffb6y1z6w-source/templates",
|
||||
"path": "/nix/store/8snyk21w4xs6v6kn1pjhs7n7b7j8s29i-source/templates",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "/nix/store/hjmn6wjprx9h7cfh46h46byffb6y1z6w-source/templates",
|
||||
"path": "/nix/store/8snyk21w4xs6v6kn1pjhs7n7b7j8s29i-source/templates",
|
||||
"type": "path"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -2,11 +2,15 @@
|
|||
networking.wireless.iwd.enable = true;
|
||||
rekey.secrets.eduroam = {
|
||||
file = ../secrets/iwd/eduroam.8021x.age;
|
||||
path = "/etc/iwd/eduroam.8021x";
|
||||
path = "/var/lib/iwd/eduroam.8021x";
|
||||
};
|
||||
rekey.secrets.devoloog = {
|
||||
file = ../secrets/iwd/devolo-og.psk.age;
|
||||
path = "/etc/iwd/devolo-og.psk";
|
||||
path = "/var/lib/iwd/devolo-og.psk";
|
||||
};
|
||||
rekey.secrets.kaist = {
|
||||
file = ../secrets/iwd/kaist.8021x.age;
|
||||
path = "/var/lib/iwd/Welcome_KAIST.8021x";
|
||||
};
|
||||
|
||||
networking.useNetworkd = true;
|
||||
|
|
BIN
secrets/iwd/kaist.8021x.age
Normal file
BIN
secrets/iwd/kaist.8021x.age
Normal file
Binary file not shown.
|
@ -14,9 +14,6 @@
|
|||
home.packages = with pkgs; [
|
||||
sqlite
|
||||
bat
|
||||
ripgrep
|
||||
killall
|
||||
fd
|
||||
];
|
||||
|
||||
# has to be enabled to support zsh reverse search
|
||||
|
|
|
@ -1,7 +1,14 @@
|
|||
_: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
MOD = "SUPER";
|
||||
TAGS = map toString (lib.lists.range 1 9);
|
||||
in {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
nvidiaPatches = true;
|
||||
extraConfig = builtins.readFile ../../../data/hyprland/config;
|
||||
extraConfig = import ../../../data/hyprland/config.nix MOD TAGS pkgs;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
height: 32px !important;
|
||||
}
|
||||
'';
|
||||
search.default = "DuckDuckGo";
|
||||
search.default = "Kagi";
|
||||
search.force = true;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue