Compare commits
No commits in common. "1f0cf8369bfd1a1fded407499709057e6ba7c12a" and "02c5938cadad838c87a83fb4f9f5a70e612d1084" have entirely different histories.
1f0cf8369b
...
02c5938cad
5 changed files with 7 additions and 147 deletions
|
@ -46,7 +46,7 @@
|
||||||
home-manager.backupFileExtension = "HMBackup";
|
home-manager.backupFileExtension = "HMBackup";
|
||||||
home-manager.users.regent.imports = [
|
home-manager.users.regent.imports = [
|
||||||
./home/regent/home.nix
|
./home/regent/home.nix
|
||||||
catppuccin.homeModules.catppuccin
|
catppuccin.homeManagerModules.catppuccin
|
||||||
];
|
];
|
||||||
home-manager.extraSpecialArgs = { inherit inputs; system = "x86_64-linux";};
|
home-manager.extraSpecialArgs = { inherit inputs; system = "x86_64-linux";};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,122 +7,27 @@
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
accent = "rosewater";
|
accent = "blue";
|
||||||
/*waybar = { doesnt work for some reason
|
|
||||||
enable = true;
|
|
||||||
};*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
style =
|
|
||||||
''
|
|
||||||
@define-color rosewater #f5e0dc;
|
|
||||||
@define-color flamingo #f2cdcd;
|
|
||||||
@define-color pink #f5c2e7;
|
|
||||||
@define-color mauve #cba6f7;
|
|
||||||
@define-color red #f38ba8;
|
|
||||||
@define-color maroon #eba0ac;
|
|
||||||
@define-color peach #fab387;
|
|
||||||
@define-color yellow #f9e2af;
|
|
||||||
@define-color green #a6e3a1;
|
|
||||||
@define-color teal #94e2d5;
|
|
||||||
@define-color sky #89dceb;
|
|
||||||
@define-color sapphire #74c7ec;
|
|
||||||
@define-color blue #89b4fa;
|
|
||||||
@define-color lavender #b4befe;
|
|
||||||
@define-color text #cdd6f4;
|
|
||||||
@define-color subtext1 #bac2de;
|
|
||||||
@define-color subtext0 #a6adc8;
|
|
||||||
@define-color overlay2 #9399b2;
|
|
||||||
@define-color overlay1 #7f849c;
|
|
||||||
@define-color overlay0 #6c7086;
|
|
||||||
@define-color surface2 #585b70;
|
|
||||||
@define-color surface1 #45475a;
|
|
||||||
@define-color surface0 #313244;
|
|
||||||
@define-color base #1e1e2e;
|
|
||||||
@define-color mantle #181825;
|
|
||||||
@define-color crust #11111b;
|
|
||||||
|
|
||||||
|
|
||||||
* {
|
|
||||||
font-family: FantasqueSansMono Nerd Font;
|
|
||||||
font-size: 17px;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
padding: 0px;
|
|
||||||
margin: 0px;
|
|
||||||
border: 0px;
|
|
||||||
background-color:rgb(0, 0, 0);
|
|
||||||
color: @text;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar.empty {
|
|
||||||
background-color:rgba(255, 255, 255, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces {
|
|
||||||
border-radius: 1rem;
|
|
||||||
margin: 5px;
|
|
||||||
background-color: @surface0;
|
|
||||||
margin-left: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
color: @lavender;
|
|
||||||
border-radius: 1rem;
|
|
||||||
padding: 0.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
color: @sky;
|
|
||||||
border-radius: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:hover {
|
|
||||||
color: @sapphire;
|
|
||||||
border-radius: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-music,
|
|
||||||
#tray,
|
|
||||||
#backlight,
|
|
||||||
#clock,
|
|
||||||
#battery,
|
|
||||||
#pulseaudio,
|
|
||||||
#custom-lock,
|
|
||||||
#custom-power {
|
|
||||||
background-color: @surface0;
|
|
||||||
padding: 0.5rem 1rem;
|
|
||||||
margin: 5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock {
|
|
||||||
color: @blue;
|
|
||||||
border-radius: 0px 1rem 1rem 0px;
|
|
||||||
margin-right: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
'';
|
|
||||||
settings = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
layer = "top";
|
layer = "top";
|
||||||
position = "top";
|
position = "top";
|
||||||
height = 34;
|
height = 30;
|
||||||
output = [
|
output = [
|
||||||
"HDMI-A-1"
|
"HDMI-A-1"
|
||||||
"DP-2"
|
"DP-2"
|
||||||
];
|
];
|
||||||
modules-left = [ "sway/workspaces" ];
|
modules-left = [ "sway/workspaces" "sway/mode" "wlr/taskbar" ];
|
||||||
modules-center = [ "sway/window" ];
|
modules-center = [ "sway/window" ];
|
||||||
modules-right = [ "clock" ];
|
modules-right = [ "mpd" ];
|
||||||
|
|
||||||
"sway/workspaces" = {
|
"sway/workspaces" = {
|
||||||
disable-scroll = true;
|
disable-scroll = true;
|
||||||
sort-by-name = true;
|
all-outputs = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,9 +15,6 @@
|
||||||
# Desktop modules
|
# Desktop modules
|
||||||
../../modules/desktop/core.nix
|
../../modules/desktop/core.nix
|
||||||
../../modules/desktop/sway.nix
|
../../modules/desktop/sway.nix
|
||||||
|
|
||||||
# Nvidia
|
|
||||||
../../modules/common/nvidia.nix
|
|
||||||
|
|
||||||
# Services specific to this host
|
# Services specific to this host
|
||||||
#../../services/xyz.nix
|
#../../services/xyz.nix
|
||||||
|
@ -45,8 +42,6 @@
|
||||||
code-server
|
code-server
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.sessionVariables.WLR_RENDERER = "vulkan";
|
|
||||||
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableOnBoot = true;
|
enableOnBoot = true;
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
# Enable OpenGL
|
|
||||||
hardware.graphics = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Load nvidia driver for Xorg and Wayland
|
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
|
||||||
|
|
||||||
hardware.nvidia = {
|
|
||||||
|
|
||||||
# Modesetting is required.
|
|
||||||
modesetting.enable = true;
|
|
||||||
|
|
||||||
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
|
||||||
# Enable this if you have graphical corruption issues or application crashes after waking
|
|
||||||
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
|
||||||
# of just the bare essentials.
|
|
||||||
powerManagement.enable = false;
|
|
||||||
|
|
||||||
# Fine-grained power management. Turns off GPU when not in use.
|
|
||||||
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
|
||||||
powerManagement.finegrained = false;
|
|
||||||
|
|
||||||
# Use the NVidia open source kernel module (not to be confused with the
|
|
||||||
# independent third-party "nouveau" open source driver).
|
|
||||||
# Support is limited to the Turing and later architectures. Full list of
|
|
||||||
# supported GPUs is at:
|
|
||||||
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
|
||||||
# Only available from driver 515.43.04+
|
|
||||||
open = false;
|
|
||||||
|
|
||||||
# Enable the Nvidia settings menu,
|
|
||||||
# accessible via `nvidia-settings`.
|
|
||||||
nvidiaSettings = true;
|
|
||||||
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -18,7 +18,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway --unsupported-gpu";
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue