add user to dialout group for access to Duet3DMC6HC

This commit is contained in:
Gabriella Bere 2024-08-29 23:06:08 +01:00
parent b20a1f400a
commit 442bbceb38
5 changed files with 92 additions and 94 deletions

9
home-manager/eza.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
programs.eza = {
enable = true;
enableZshIntegration = true;
git = true;
icons = true;
};
}

View file

@ -11,15 +11,40 @@
./flatpak.nix ./flatpak.nix
./sober.nix ./sober.nix
# ./librewolf.nix # ./librewolf.nix
./zsh.nix
./eza.nix
]; ];
# States home manager version that config was originally compatible with, do not change without reading all patch notes since this version and altering as needed # States home manager version that config was originally compatible with, do not change without reading all patch notes since this version and altering as needed
home.stateVersion = "24.05"; home.stateVersion = "24.05";
home.pointerCursor =
let
getFrom = url: hash: name: {
gtk.enable = true;
x11.enable = true;
name = name;
size = 48;
package =
pkgs.runCommand "moveUp" {} ''
mkdir -p $out/share/icons
ln -s ${pkgs.fetchzip {
url = url;
hash = hash;
}} $out/share/icons/${name}
'';
};
in
getFrom
"https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz"
"sha256-BvVE9qupMjw7JRqFUj1J0a4ys6kc9fOLBPx2bGaapTk="
"Fuchsia-Pop";
# General use home packages that dont require a separate module # General use home packages that dont require a separate module
home.packages = [ home.packages = [
# Add grimblast screenshot tool # Add grimblast screenshot tool
pkgs.grimblast pkgs.grimblast
pkgs.powerline-fonts
]; ];
home.sessionVariables = { home.sessionVariables = {
@ -47,6 +72,9 @@
lines = 3; lines = 3;
columns = 200; columns = 200;
}; };
font.normal = {
family = "hack";
};
# keyboard.bindings = [ # keyboard.bindings = [
# { # {
# key = "K"; # key = "K";

View file

@ -15,22 +15,16 @@
monitor = eDP-2, 2560x1600@165, 0x0, auto # main laptop monitor monitor = eDP-2, 2560x1600@165, 0x0, auto # main laptop monitor
monitor = DP-3, 1920x1080@119.98, -1280x-1080, auto # left external monitor monitor = DP-3, 1920x1080@119.98, -1280x-1080, auto # left external monitor
monitor = DP-2, 1920x1080@119.98, 640x-1080, auto # right external monitor monitor = DP-2, 1920x1080@119.98, 640x-1080, auto # right external monitor
debug:disable_logs = false
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mod, mouse:272, movewindow
bindm = $mod, mouse:273, resizewindow
xwayland {
force_zero_scaling = true
}
''; '';
}; };
# Hyprland configuration # Hyprland configuration
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
input = { kb_layout = "gb"; }; input = { kb_layout = "gb"; };
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
bind = bind =
[ [
# Keybinds for starting programs # Keybinds for starting programs
@ -53,17 +47,19 @@
# workspaces # workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10} # binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
builtins.concatLists (builtins.genList ( builtins.concatLists (builtins.genList (
x: let x: let
ws = let ws = let
c = (x + 1) / 10; c = (x + 1) / 10;
in in
builtins.toString (x + 1 - (c * 10)); builtins.toString (x + 1 - (c * 10));
in [ in [
"$mod, ${ws}, workspace, ${toString (x + 1)}" "$mod, ${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}" "$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
] ]
) ) 10)
10)
); );
xwayland = {
force_zero_scaling = true;
};
}; };
} }

View file

@ -5,25 +5,32 @@
enable = true; enable = true;
autocd = true; autocd = true;
dotDir = ".config/zsh"; dotDir = ".config/zsh";
enableAutosuggestions = true; autosuggestion.enable = true;
enableCompletion = true; enableCompletion = true;
# shellAliases = { shellAliases = {
# sl = "exa"; ls = "eza -lh";
# ls = "exa"; ip = "ip --color=auto";
# l = "exa -l";
# la = "exa -la";
# ip = "ip --color=auto";
# };
plugins = with pkgs; [ # Aliases for my nixos workflow, requires nh and home-manager
{ switch = "nh os switch";
name = "zsh-syntax-highlighting"; homeswitch = "home-manager switch --flake /home/blue/nixos";
src = fetchFromGitHub { };
owner = "zsh-users";
repo = "zsh-syntax-highlighting"; plugins = with pkgs; [
rev = "0.6.0"; {
sha256 = "0zmq66dzasmr5pwribyh4kbkk23jxbpdw4rjxx0i7dx8jjp2lzl4"; name = "zsh-syntax-highlighting";
}; src = fetchFromGitHub {
file = "agkozak-zsh-prompt.plugin.zsh"; owner = "zsh-users";
} repo = "zsh-syntax-highlighting";
rev = "0.6.0";
sha256 = "0zmq66dzasmr5pwribyh4kbkk23jxbpdw4rjxx0i7dx8jjp2lzl4";
};
file = "agkozak-zsh-prompt.plugin.zsh";
}
];
oh-my-zsh = {
enable = true;
theme = "agnoster";
};
};
} }

View file

@ -20,6 +20,7 @@
# default kernel causes issues with wpa_supplicant meaning shutdown times are > 10 mins updating to kernel 69+ fixes this # default kernel causes issues with wpa_supplicant meaning shutdown times are > 10 mins updating to kernel 69+ fixes this
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_10; boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_10;
# I was told that adding these helps but it doesnt seemt to work as monitors are still buggy at 144hz, may as well keep them
boot.kernelParams = [ boot.kernelParams = [
"video=DP-2:1920x1080@144" "video=DP-2:1920x1080@144"
"video=DP-3:1920x1080@144" "video=DP-3:1920x1080@144"
@ -101,7 +102,7 @@
users.users.blue = { users.users.blue = {
isNormalUser = true; isNormalUser = true;
description = "Gabriella Bere"; description = "Gabriella Bere";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" "dialout" ];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
@ -128,68 +129,25 @@
# Enable flatpak for delcarative-flatpak used in home-manager # Enable flatpak for delcarative-flatpak used in home-manager
services.flatpak.enable = true; services.flatpak.enable = true;
# Monolithic packaged declaration, using merge because it amuses me but this needs to be split up # Enable qmk for managing framework laptop keyboards
# lib.mkMerge [
# {
# environment.systemPackages = with pkgs; [
# neovim # nano is installed by default
# wget
# vesktop
# prismlauncher
# thunderbird
# kdePackages.bluedevil
# fastfetch
# ungoogled-chromium
# qbittorrent
# obsidian
# p7zip
# unrar
# wineWowPackages.stable
# wine
# (wine.override { wineBuild = "wine64"; })
# wine64
# wineWowPackages.staging
# winetricks
# wineWowPackages.waylandFull
# vlc
# krename
# kdePackages.filelight
# protonmail-bridge
# obs-studio
# pciutils
# vial
# git
# qmk
# dmidecode
# wl-clipboard
# lutris
# tree
# tenacity
# mediawriter
# home-manager
# ];
# }
# {
# environment.systemPackages = with stable; [
# librewolf
# ];
# }
# ];
hardware.keyboard.qmk.enable = true; hardware.keyboard.qmk.enable = true;
# Enable steam and enable steam remoteplay
programs.steam.enable = true; programs.steam.enable = true;
programs.steam.remotePlay.openFirewall = true; programs.steam.remotePlay.openFirewall = true;
services.protonmail-bridge.enable = true;
# protonmail daemon config # protonmail daemon config
systemd.user.services.protonmail-bridge = { # systemd.user.services.protonmail-bridge = {
enable = true; # enable = true;
wantedBy = [ "default.target" ]; # wantedBy = [ "default.target" ];
description = "autostart protonmail-bridge on login as a daemon"; # description = "autostart protonmail-bridge on login as a daemon";
serviceConfig = { # serviceConfig = {
Type = "simple"; # Type = "simple";
ExecStart = "/nix/store/protonmail-bridge --noninteractive --no-window"; # ExecStart = "${lib.getExe pkgs.protonmail-bridge} --noninteractive --no-window";
}; # };
}; # };
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.