feat: start migration of wm-dots to nix

This commit is contained in:
matt1432 2023-06-27 16:13:14 +02:00
parent 450a82dc53
commit 102e3de7e7
44 changed files with 1752 additions and 9 deletions

View file

@ -50,11 +50,8 @@
jelly = "mosh matt@10.0.0.121 -- ssh -t matt@10.0.0.123 'tmux -2u new -At laptop'";
qbit = "mosh matt@10.0.0.121 -- ssh -t matt@10.0.0.128 'tmux -2u new -At laptop'";
};
sessionVariables = {
sessionVariables = { # see hyprland.nix
TERM = "xterm-color";
#MOZ_ENABLE_WAYLAND = 1;
#QT_QPA_PLATFORM = "wayland-egl";
XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:\$XDG_DATA_DIRS";
};
profileExtra = ''

54
nixos/home/dotfiles.nix Normal file
View file

@ -0,0 +1,54 @@
{ ... }:
let
configDir = "/home/matt/.nix/configs";
in
{
programs.eww = {
enable = true;
configDir = "${configDir}/eww"; # see hyprland.nix for scripts path
package =
(builtins.getFlake "github:matt1432/eww-exclusiver").packages.x86_64-linux.default;
};
programs.alacritty = {
enable = true;
settings = {
env = {
POKE = "true";
};
window = {
padding = {
x = 0;
y = 10;
};
opacity = 0.8;
};
colors = {
primary = {
background = "0x0c0c0c";
foreground = "0xfcfcfc";
dim_foreground = "0xeff0f1";
bright_foreground = "0xffffff";
dim_background = "0x31363b";
bright_background = "0x000000";
};
normal = {
black = "0x232627";
red = "0xed1515";
green = "0x11d116";
yellow = "0xf67400";
blue = "0x1d99f3";
magenta = "0x9b59b6";
cyan = "0x1abc9c";
white = "0xfcfcfc";
};
};
};
};
}

View file

@ -1,4 +1,7 @@
{ pkgs, ... }: let
configDir = "/home/matt/.nix/configs";
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
hyprland = (import flake-compat {
@ -30,9 +33,18 @@ in
];
extraConfig = ''
env = XDG_DATA_DIRS, ${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:$XDG_DATA_DIRS
env = EWW_PATH, $HOME/.nix/configs/eww/scripts
env = HYPR_PATH, $HOME/.nix/configs/hypr/scripts
exec-once = ${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1
source = ~/.config/hypr/main.conf
env = XDG_DATA_DIRS, ${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:$XDG_DATA_DIRS
'';
};
xdg.configFile = {
"hypr/main.conf".source = "${configDir}/hypr/main.conf";
"hypr/hyprpaper.conf".source = "${configDir}/hypr/hyprpaper.conf";
};
}

View file

@ -22,8 +22,9 @@
home-manager.users.matt = {
imports = [
./bashdots.nix
./hyprland.nix
./bashdots.nix
./dotfiles.nix
./packages.nix
./misc.nix
];

View file

@ -42,7 +42,7 @@
[
(writeShellScriptBin "Gparted" ''
(
sleep 0.5
sleep 1.5
while killall -r -0 ksshaskpass > /dev/null 2>&1
do
sleep 0.1
@ -55,7 +55,6 @@
exec env SUDO_ASKPASS=${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname} sudo -k -EA "${gparted}/bin/${gparted.pname}" "$@"
'')
(builtins.getFlake "github:matt1432/eww-exclusiver").packages.x86_64-linux.default
swayosd
qt5.qtwayland
qt6.qtwayland
@ -79,7 +78,6 @@
spicetify-cli # TODO
vlc
discord
alacritty
brightnessctl
pulseaudio
alsa-utils