mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
Compare commits
11 commits
8d388cb10e
...
e690e4d487
Author | SHA1 | Date | |
---|---|---|---|
e690e4d487 | |||
19dda73c5b | |||
151e8533d6 | |||
176dd36f2d | |||
e15d80af4b | |||
5b219a6829 | |||
027bdc0568 | |||
bb63cc5b0f | |||
6f13527810 | |||
a958fc976e | |||
623eda78a2 |
7 changed files with 58 additions and 31 deletions
29
flake.lock
29
flake.lock
|
@ -70,6 +70,22 @@
|
|||
"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": [
|
||||
|
@ -1039,6 +1055,7 @@
|
|||
},
|
||||
"viminal": {
|
||||
"inputs": {
|
||||
"cellular-automaton": "cellular-automaton",
|
||||
"flake-parts": "flake-parts_2",
|
||||
"haskell-tools": "haskell-tools",
|
||||
"lsp-progress": "lsp-progress",
|
||||
|
@ -1050,11 +1067,11 @@
|
|||
"satellite": "satellite"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726615423,
|
||||
"narHash": "sha256-cX5zX8US0E5Aw1xzFuumTlQTxZSzwqp7kz7i+qFDBIQ=",
|
||||
"lastModified": 1726653943,
|
||||
"narHash": "sha256-YZpbHH96hiNbxx1p/FU8ABxw+gVsY9nBgiloHLCDhYg=",
|
||||
"owner": "youwen5",
|
||||
"repo": "viminal",
|
||||
"rev": "0fff5154e69feb5bbb0e634e654eb65feee9c5cf",
|
||||
"rev": "570fddee2d5b5b0ed1d13837cc4dbb6cbe567056",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1086,11 +1103,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726001766,
|
||||
"narHash": "sha256-ADvEWfo0AuHR06ah1nnzOyhsG05/b5QpUc7vFNbiEfM=",
|
||||
"lastModified": 1726634128,
|
||||
"narHash": "sha256-SE7USQHYRh3FN/3NWVLJ7pbEPMrVIs2JeI+nQXLgkXM=",
|
||||
"owner": "youwen5",
|
||||
"repo": "zen-browser-flake",
|
||||
"rev": "06505a088396e2c0b9ad100302502783a6bcdb40",
|
||||
"rev": "830d6cab49d32d14d38f9b0f6ed0b097ebd8bc49",
|
||||
"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}="80"
|
||||
KERNEL=="macsmc-battery", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}="90", ATTR{charge_control_start_threshold}="85"
|
||||
'';
|
||||
|
||||
# Allow unfree packages
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
{
|
||||
environment.systemPackages = [
|
||||
inputs.viminal.packages.${pkgs.system}.default
|
||||
inputs.viminal.packages.${pkgs.system}.vimg
|
||||
];
|
||||
|
||||
security.sudo.enable = false;
|
||||
|
|
|
@ -8,11 +8,7 @@
|
|||
grim
|
||||
slurp
|
||||
swappy
|
||||
pavucontrol
|
||||
waypaper
|
||||
swaybg
|
||||
pamixer
|
||||
brightnessctl
|
||||
|
||||
bibata-cursors
|
||||
libsForQt5.qtstyleplugin-kvantum
|
||||
|
@ -24,7 +20,7 @@
|
|||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
settings = {
|
||||
exec-once = [ "waypaper --restore" ];
|
||||
exec-once = [ "${pkgs.waypaper}/bin/waypaper --restore" ];
|
||||
"$mod" = "SUPER";
|
||||
"$Left" = "H";
|
||||
"$Right" = "L";
|
||||
|
@ -41,11 +37,12 @@
|
|||
# External reserved keys: SUPER + Z and SUPER + X for zen-browser.
|
||||
|
||||
# Application Keybinds
|
||||
"$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"
|
||||
"$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"
|
||||
|
||||
# Window actions
|
||||
"$mod, Q, killactive"
|
||||
|
@ -113,10 +110,10 @@
|
|||
"$mod, I, exec, hyprlock"
|
||||
|
||||
# Media controls
|
||||
",XF86AudioMute, exec, pamixer -t"
|
||||
",XF86AudioPlay, exec, playerctl play-pause"
|
||||
",XF86AudioNext, exec, playerctl next"
|
||||
",XF86AudioRewind, exec, playerctl previous"
|
||||
",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"
|
||||
]
|
||||
++ (
|
||||
if pkgs.system != "aarch64-linux" then [ "$mod, F, exec, zen" ] else [ "$mod, F, exec, floorp" ]
|
||||
|
@ -126,10 +123,10 @@
|
|||
"$mod, mouse:273, resizewindow"
|
||||
];
|
||||
bindel = [
|
||||
",XF86MonBrightnessDown, exec, brightnessctl set 5%-"
|
||||
",XF86MonBrightnessUp, exec, brightnessctl set 5%+"
|
||||
",XF86AudioRaiseVolume, exec, pamixer -i 5"
|
||||
",XF86AudioLowerVolume, exec, pamixer -d 5"
|
||||
",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"
|
||||
];
|
||||
binde = [
|
||||
# Resize windows
|
||||
|
@ -154,6 +151,7 @@
|
|||
"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)$"
|
||||
|
@ -351,7 +349,7 @@
|
|||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
||||
lock_cmd = "pidof hyprlock || ${pkgs.hyprlock}/bin/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,6 +9,7 @@ pkgs: with pkgs; [
|
|||
|
||||
# utils
|
||||
nurl # helps fetch git data for nixpkgs
|
||||
ffmpeg
|
||||
|
||||
# nix related
|
||||
#
|
||||
|
|
|
@ -24,6 +24,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
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 = "brightnessctl set +4";
|
||||
on-scroll-down = "brightnessctl set 4-";
|
||||
on-scroll-up = "${pkgs.brightnessctl}/bin/brightnessctl set +4";
|
||||
on-scroll-down = "${pkgs.brightnessctl}/bin/brightnessctl set 4-";
|
||||
};
|
||||
|
||||
wireplumber = {
|
||||
format = "{icon} {volume}%";
|
||||
format-muted = " ";
|
||||
on-click = "pamixer -t";
|
||||
on-scroll-up = "pamixer set 5%+";
|
||||
on-scroll-down = "pamixer set 5%-";
|
||||
on-scroll-up = "${pkgs.pamixer}/bin/pamixer set 5%+";
|
||||
on-scroll-down = "${pkgs.pamixer}/bin/pamixer set 5%-";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
|
|
Loading…
Reference in a new issue