Compare commits

..

6 Commits

16 changed files with 67 additions and 35 deletions

View File

@@ -1,5 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
programs.adb.enable = true; programs.adb.enable = true;
virtualisation.waydroid.enable = true;
} }

View File

@@ -40,7 +40,7 @@
networkmanager networkmanager
networkmanagerapplet networkmanagerapplet
nmap nmap
# nvtopPackages.full # <- Build failure: https://github.com/nixos/nixpkgs/issues/456928 nvtopPackages.full
openrgb-with-all-plugins openrgb-with-all-plugins
pciutils pciutils
rofi-bluetooth rofi-bluetooth

View File

@@ -1,8 +1,14 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
virtualisation.containers.policy = {
default = [ { type = "insecureAcceptAnything"; } ];
};
virtualisation.podman = { virtualisation.podman = {
enable = true; enable = true;
dockerCompat = true; dockerCompat = true;
dockerSocket.enable = true;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View File

@@ -25,6 +25,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
arandr arandr
bemenu
dunst dunst
grim grim
hyprpaper hyprpaper
@@ -39,7 +40,7 @@
swayimg swayimg
wl-clipboard wl-clipboard
wlogout wlogout
bemenu
]; ];
} }

View File

@@ -4,6 +4,7 @@
enable = true; enable = true;
extraRules = [ extraRules = [
{ {
groups = [ "wheel" ];
commands = [ commands = [
{ {
command = "${pkgs.systemd}/bin/reboot"; command = "${pkgs.systemd}/bin/reboot";
@@ -14,7 +15,16 @@
options = [ "NOPASSWD" ]; options = [ "NOPASSWD" ];
} }
]; ];
groups = [ "wheel" ]; }
{
users = [ "caperren" ];
commands = [
{
command = "${pkgs.nvtopPackages.full}/bin/nvtop";
options = [ "NOPASSWD" "SETENV" ];
}
];
} }
]; ];
}; };

View File

@@ -13,12 +13,13 @@ in
isNormalUser = true; isNormalUser = true;
description = "Corwin Perren"; description = "Corwin Perren";
extraGroups = [ extraGroups = [
"networkmanager"
"wheel"
"input"
"dialout"
"plugdev"
"adbusers" "adbusers"
"dialout"
"input"
"networkmanager"
"plugdev"
"podman"
"wheel"
]; ];
}; };
@@ -43,7 +44,11 @@ in
programs.bemenu.enable = true; programs.bemenu.enable = true;
programs.kitty = { programs.kitty = {
enable = true;
font.name = "JetBrains Mono"; font.name = "JetBrains Mono";
settings = {
allow_remote_control = true;
};
}; };
# Assets/scripts # Assets/scripts
@@ -51,6 +56,7 @@ in
home.file.".config/hypr/scripts".source = ./dotfiles/.config/hypr/scripts; home.file.".config/hypr/scripts".source = ./dotfiles/.config/hypr/scripts;
# Application config files # Application config files
home.file.".config/containers/policy.json".source = ./dotfiles/.config/containers/policy.json;
home.file.".config/glances/glances.conf".source = ./dotfiles/.config/glances/glances.conf; home.file.".config/glances/glances.conf".source = ./dotfiles/.config/glances/glances.conf;
home.file.".config/hypr/hypridle.conf".source = ./dotfiles/hypridle/hypridle.conf; home.file.".config/hypr/hypridle.conf".source = ./dotfiles/hypridle/hypridle.conf;
home.file.".config/hypr/hyprpaper.conf".source = ./dotfiles/hyprpaper/hyprpaper.conf; home.file.".config/hypr/hyprpaper.conf".source = ./dotfiles/hyprpaper/hyprpaper.conf;
@@ -74,16 +80,19 @@ in
home.file.".config/wlogout/layout".source = ./dotfiles/wlogout/layout; home.file.".config/wlogout/layout".source = ./dotfiles/wlogout/layout;
# Desktop entry files so bemenu can find them # Desktop entry files so bemenu can find them
home.file.".local/share/glava.desktop".source = ./dotfiles/.local/share/glava.desktop; home.file.".local/share/applications/alltop.desktop".source =
home.file.".local/share/jetbrains-toolbox.desktop".source = ./dotfiles/.local/share/applications/alltop.desktop;
./dotfiles/.local/share/jetbrains-toolbox.desktop; home.file.".local/share/applications/glava.desktop".source =
home.file.".local/share/spotify-player.desktop".source = ./dotfiles/.local/share/applications/glava.desktop;
./dotfiles/.local/share/spotify-player.desktop; home.file.".local/share/applications/phonerdp.desktop".source =
./dotfiles/.local/share/applications/phonerdp.desktop;
home.file.".local/share/applications/spotify-player.desktop".source =
./dotfiles/.local/share/applications/spotify-player.desktop;
# Custom bash aliases # Custom bash aliases
home.shellAliases = { home.shellAliases = {
# Phone remote desktop over usb (adb), with some default flags I want # Phone remote desktop over usb (adb), with some default flags I want
phonerdp = "scrcpy --no-audio --orientation=0 --turn-screen-off --fullscreen"; phonerdp = "scrcpy --no-audio --orientation=0 --turn-screen-off --stay-awake --power-off-on-close";
# Streamdeck isn't easy to manually edit, so make a save command to copy any updates to the repo # Streamdeck isn't easy to manually edit, so make a save command to copy any updates to the repo
savestreamdeck = "cp ~/.streamdeck_ui.json ~/.nixos-configs/users/caperren/dotfiles/streamdeck/.streamdeck_ui.json"; savestreamdeck = "cp ~/.streamdeck_ui.json ~/.nixos-configs/users/caperren/dotfiles/streamdeck/.streamdeck_ui.json";

View File

@@ -0,0 +1,7 @@
{
"default": [
{
"type": "insecureAcceptAnything"
}
]
}

View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=All Top
Exec=bash -c "kitty --single-instance --detach bash -c 'kitten @ launch --type=window --title btop btop ; kitten @ launch --type=window --title nvtop nvtop'"
Icon=alltop
Terminal=false
Categories=Utilities;

View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=Phone RDP
Exec=bash -c "scrcpy --no-audio --orientation=0 --turn-screen-off --stay-awake --power-off-on-close"
Icon=phonerdp
Terminal=false
Categories=Utilities;

View File

@@ -1,7 +0,0 @@
[Desktop Entry]
Type=Application
Name=JetBrains Toolbox
Exec=jetbrains-toolbox
Icon=jetbrains-toolbox
Terminal=false
Categories=Development;IDE;

View File

@@ -1,7 +0,0 @@
[Desktop Entry]
Type=Application
Name=Phone RDP
Exec=bash -c "phonerdp"
Icon=phonerdp
Terminal=false
Categories=Utilities;

View File

@@ -4,7 +4,7 @@ monitor=,preferred,auto,1
# Set programs that you use # Set programs that you use
$terminal = kitty $terminal = kitty
$fileManager = thunar $fileManager = thunar
$menu = bemenu-run --line-height 22 --hf "##10AC25" --ff "##10AC25" --tf "##10AC25" $menu = j4-dmenu-desktop --dmenu='bemenu --ignorecase --line-height 22 --hf "##10AC25" --ff "##10AC25" --tf "##10AC25"' --term='kitty'
# Some default env vars # Some default env vars
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24

View File

@@ -176,14 +176,14 @@
"states": { "states": {
"0": { "0": {
"text": "", "text": "",
"icon": "/home/caperren/.config/streamdeck-ui/icons/glances-logo.png", "icon": "/home/caperren/.config/streamdeck-ui/icons/btop-logo.png",
"keys": "", "keys": "",
"write": "", "write": "",
"command": "kitty -e glances", "command": "bash -c \"kitty --single-instance --detach bash -c 'kitten @ launch --type=window --title btop btop ; kitten @ launch --type=window --title nvtop nvtop'\"",
"brightness_change": 0, "brightness_change": 0,
"switch_page": 0, "switch_page": 0,
"switch_state": 0, "switch_state": 0,
"text_vertical_align": "middle", "text_vertical_align": "top",
"text_horizontal_align": "", "text_horizontal_align": "",
"font": "", "font": "",
"font_color": "", "font_color": "",
@@ -582,7 +582,7 @@
"write": "", "write": "",
"command": "kitty -e bash -i -c nrs", "command": "kitty -e bash -i -c nrs",
"brightness_change": 0, "brightness_change": 0,
"switch_page": 0, "switch_page": 1,
"switch_state": 0, "switch_state": 0,
"text_vertical_align": "middle", "text_vertical_align": "middle",
"text_horizontal_align": "", "text_horizontal_align": "",
@@ -603,7 +603,7 @@
"write": "", "write": "",
"command": "kitty -e bash -i -c nus", "command": "kitty -e bash -i -c nus",
"brightness_change": 0, "brightness_change": 0,
"switch_page": 0, "switch_page": 1,
"switch_state": 0, "switch_state": 0,
"text_vertical_align": "middle", "text_vertical_align": "middle",
"text_horizontal_align": "", "text_horizontal_align": "",

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB