mirror of
https://github.com/youwen5/nixos.git
synced 2024-12-01 04:33:51 -08:00
Compare commits
No commits in common. "e690e4d487cec64a95188fc66b515cab78ba0970" and "8d388cb10e4cbcf57f3aee26439d25e2c0347fe7" have entirely different histories.
e690e4d487
...
8d388cb10e
7 changed files with 31 additions and 58 deletions
29
flake.lock
29
flake.lock
|
@ -70,22 +70,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"cellular-automaton": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1719777869,
|
||||
"narHash": "sha256-nIv7ISRk0+yWd1lGEwAV6u1U7EFQj/T9F8pU6O0Wf0s=",
|
||||
"owner": "Eandrju",
|
||||
"repo": "cellular-automaton.nvim",
|
||||
"rev": "11aea08aa084f9d523b0142c2cd9441b8ede09ed",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Eandrju",
|
||||
"repo": "cellular-automaton.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"crane": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -1055,7 +1039,6 @@
|
|||
},
|
||||
"viminal": {
|
||||
"inputs": {
|
||||
"cellular-automaton": "cellular-automaton",
|
||||
"flake-parts": "flake-parts_2",
|
||||
"haskell-tools": "haskell-tools",
|
||||
"lsp-progress": "lsp-progress",
|
||||
|
@ -1067,11 +1050,11 @@
|
|||
"satellite": "satellite"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726653943,
|
||||
"narHash": "sha256-YZpbHH96hiNbxx1p/FU8ABxw+gVsY9nBgiloHLCDhYg=",
|
||||
"lastModified": 1726615423,
|
||||
"narHash": "sha256-cX5zX8US0E5Aw1xzFuumTlQTxZSzwqp7kz7i+qFDBIQ=",
|
||||
"owner": "youwen5",
|
||||
"repo": "viminal",
|
||||
"rev": "570fddee2d5b5b0ed1d13837cc4dbb6cbe567056",
|
||||
"rev": "0fff5154e69feb5bbb0e634e654eb65feee9c5cf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1103,11 +1086,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726634128,
|
||||
"narHash": "sha256-SE7USQHYRh3FN/3NWVLJ7pbEPMrVIs2JeI+nQXLgkXM=",
|
||||
"lastModified": 1726001766,
|
||||
"narHash": "sha256-ADvEWfo0AuHR06ah1nnzOyhsG05/b5QpUc7vFNbiEfM=",
|
||||
"owner": "youwen5",
|
||||
"repo": "zen-browser-flake",
|
||||
"rev": "830d6cab49d32d14d38f9b0f6ed0b097ebd8bc49",
|
||||
"rev": "06505a088396e2c0b9ad100302502783a6bcdb40",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
|
||||
services.udev.extraRules = ''
|
||||
KERNEL=="cpu_dma_latency", GROUP="realtime"
|
||||
KERNEL=="macsmc-battery", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}="90", ATTR{charge_control_start_threshold}="85"
|
||||
KERNEL=="macsmc-battery", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}="90", ATTR{charge_control_start_threshold}="80"
|
||||
'';
|
||||
|
||||
# Allow unfree packages
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
{
|
||||
environment.systemPackages = [
|
||||
inputs.viminal.packages.${pkgs.system}.default
|
||||
inputs.viminal.packages.${pkgs.system}.vimg
|
||||
];
|
||||
|
||||
security.sudo.enable = false;
|
||||
|
|
|
@ -8,7 +8,11 @@
|
|||
grim
|
||||
slurp
|
||||
swappy
|
||||
pavucontrol
|
||||
waypaper
|
||||
swaybg
|
||||
pamixer
|
||||
brightnessctl
|
||||
|
||||
bibata-cursors
|
||||
libsForQt5.qtstyleplugin-kvantum
|
||||
|
@ -20,7 +24,7 @@
|
|||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
settings = {
|
||||
exec-once = [ "${pkgs.waypaper}/bin/waypaper --restore" ];
|
||||
exec-once = [ "waypaper --restore" ];
|
||||
"$mod" = "SUPER";
|
||||
"$Left" = "H";
|
||||
"$Right" = "L";
|
||||
|
@ -37,12 +41,11 @@
|
|||
# External reserved keys: SUPER + Z and SUPER + X for zen-browser.
|
||||
|
||||
# Application Keybinds
|
||||
"$mod, T, exec, ${pkgs.kitty}/bin/kitty"
|
||||
"$mod, E, exec, ${pkgs.dolphin}/bin/dolphin"
|
||||
"$mod, R, exec, ${pkgs.pavucontrol}/bin/pavucontrol -t 3" # open pavucontrol on 'outputs' tab
|
||||
"$mod, M, exec, ${pkgs.thunderbird}/bin/thunderbird"
|
||||
"$mod, B, exec, ${pkgs.waypaper}/bin/waypaper"
|
||||
"$mod, A, exec, ${pkgs.neovide}/bin/neovide"
|
||||
"$mod, T, exec, kitty"
|
||||
"$mod, E, exec, dolphin"
|
||||
"$mod, R, exec, pavucontrol -t 3" # open pavucontrol on 'outputs' tab
|
||||
"$mod, M, exec, thunderbird"
|
||||
"$mod, B, exec, waypaper"
|
||||
|
||||
# Window actions
|
||||
"$mod, Q, killactive"
|
||||
|
@ -110,10 +113,10 @@
|
|||
"$mod, I, exec, hyprlock"
|
||||
|
||||
# Media controls
|
||||
",XF86AudioMute, exec, ${pkgs.pamixer}/bin/pamixer -t"
|
||||
",XF86AudioPlay, exec, ${pkgs.playerctl}/bin/playerctl play-pause"
|
||||
",XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next"
|
||||
",XF86AudioRewind, exec, ${pkgs.playerctl}/bin/playerctl previous"
|
||||
",XF86AudioMute, exec, pamixer -t"
|
||||
",XF86AudioPlay, exec, playerctl play-pause"
|
||||
",XF86AudioNext, exec, playerctl next"
|
||||
",XF86AudioRewind, exec, playerctl previous"
|
||||
]
|
||||
++ (
|
||||
if pkgs.system != "aarch64-linux" then [ "$mod, F, exec, zen" ] else [ "$mod, F, exec, floorp" ]
|
||||
|
@ -123,10 +126,10 @@
|
|||
"$mod, mouse:273, resizewindow"
|
||||
];
|
||||
bindel = [
|
||||
",XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 5%-"
|
||||
",XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 5%+"
|
||||
",XF86AudioRaiseVolume, exec, ${pkgs.pamixer}/bin/pamixer -i 5"
|
||||
",XF86AudioLowerVolume, exec, ${pkgs.pamixer}/bin/pamixer -d 5"
|
||||
",XF86MonBrightnessDown, exec, brightnessctl set 5%-"
|
||||
",XF86MonBrightnessUp, exec, brightnessctl set 5%+"
|
||||
",XF86AudioRaiseVolume, exec, pamixer -i 5"
|
||||
",XF86AudioLowerVolume, exec, pamixer -d 5"
|
||||
];
|
||||
binde = [
|
||||
# Resize windows
|
||||
|
@ -151,7 +154,6 @@
|
|||
"opacity 0.80 0.80,class:^(code-url-handler)$"
|
||||
"opacity 0.80 0.80,class:^(code-insiders-url-handler)$"
|
||||
"opacity 0.80 0.80,class:^(kitty)$"
|
||||
"opacity 0.80 0.80,class:^(neovide)$"
|
||||
"opacity 0.80 0.80,class:^(org.kde.dolphin)$"
|
||||
"opacity 0.80 0.80,class:^(org.kde.ark)$"
|
||||
"opacity 0.80 0.80,class:^(nwg-look)$"
|
||||
|
@ -349,7 +351,7 @@
|
|||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
lock_cmd = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; # avoid starting multiple hyprlock instances.
|
||||
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
||||
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||
};
|
||||
|
|
|
@ -9,7 +9,6 @@ pkgs: with pkgs; [
|
|||
|
||||
# utils
|
||||
nurl # helps fetch git data for nixpkgs
|
||||
ffmpeg
|
||||
|
||||
# nix related
|
||||
#
|
||||
|
|
|
@ -24,16 +24,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.neovide = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font = {
|
||||
normal = [ ];
|
||||
size = 12;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# programs.firefox = {
|
||||
# enable = true;
|
||||
# # package = pkgs.librewolf;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# home.file.".config/waybar/config".source = ./config.jsonc;
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
style = ./style.css;
|
||||
|
@ -67,16 +67,16 @@
|
|||
backlight = {
|
||||
interval = 2;
|
||||
format = " {percent}%";
|
||||
on-scroll-up = "${pkgs.brightnessctl}/bin/brightnessctl set +4";
|
||||
on-scroll-down = "${pkgs.brightnessctl}/bin/brightnessctl set 4-";
|
||||
on-scroll-up = "brightnessctl set +4";
|
||||
on-scroll-down = "brightnessctl set 4-";
|
||||
};
|
||||
|
||||
wireplumber = {
|
||||
format = "{icon} {volume}%";
|
||||
format-muted = " ";
|
||||
on-click = "pamixer -t";
|
||||
on-scroll-up = "${pkgs.pamixer}/bin/pamixer set 5%+";
|
||||
on-scroll-down = "${pkgs.pamixer}/bin/pamixer set 5%-";
|
||||
on-scroll-up = "pamixer set 5%+";
|
||||
on-scroll-down = "pamixer set 5%-";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
|
|
Loading…
Reference in a new issue