home: PrusaSlicer and vscode from unstable

This commit is contained in:
fleaz 2023-04-28 13:28:55 +02:00
parent 13727d95cf
commit a81d311137
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
2 changed files with 109 additions and 105 deletions

View file

@ -2,8 +2,8 @@
let let
home-manager = (import ../nix/sources.nix).home-manager; home-manager = (import ../nix/sources.nix).home-manager;
unstable = import <nixos-unstable> {}; unstable = import <nixos-unstable> { };
fontSize = hiDPI : if hiDPI then "FiraCode:size=14" else "FiraCode:size=8"; fontSize = hiDPI: if hiDPI then "FiraCode:size=14" else "FiraCode:size=8";
in in
{ {
imports = [ imports = [
@ -107,8 +107,7 @@ in
ncmpcpp ncmpcpp
acpi acpi
#unstable.prusa-slicer unstable.prusa-slicer
prusa-slicer
htop htop
xdg-utils xdg-utils
moreutils moreutils
@ -167,109 +166,109 @@ in
}; };
programs.waybar = { programs.waybar = {
enable = true; enable = true;
settings = [ { settings = [{
layer = "top"; layer = "top";
position = "bottom"; position = "bottom";
height = 28; height = 28;
modules-left = [ modules-left = [
"sway/workspaces" "sway/workspaces"
"sway/window" "sway/window"
]; ];
modules-center = [ modules-center = [
]; ];
modules-right = [ modules-right = [
"sway/mode" "sway/mode"
"disk" "disk"
"pulseaudio" "pulseaudio"
"network" "network"
"memory" "memory"
"cpu" "cpu"
"temperature" "temperature"
"battery" "battery"
"tray" "tray"
"clock" "clock"
]; ];
modules = { modules = {
"battery" = { "battery" = {
states = { states = {
warning = 20; warning = 20;
critical = 10; critical = 10;
};
format = " {capacity}%";
format-discharging = "{icon} {capacity}%";
format-icons = [
""
""
""
""
""
""
""
""
""
""
];
}; };
format = " {capacity}%"; "cpu" = {
format-discharging = "{icon} {capacity}%"; format = " {}";
format-icons = [ };
"" "clock" = {
"" format = "{:%H:%M}";
"" tooltip = false;
"" };
"" "memory" = {
"" interval = 5;
"" format = " {}%";
"" tooltip-format = "{used:0.1f}/{total:0.1f} GB";
"" states = {
"" warning = 80;
]; critical = 90;
}; };
"cpu" = { };
format = " {}"; "network" = {
}; interface = "wl*";
"clock" = { format-wifi = " {essid}";
format = "{:%H:%M}"; format-icons = [
tooltip = false; ""
}; ];
"memory" = { tooltip-format-wifi = "{frequency} MHz, {signaldBm} dBm";
interval = 5; };
format = " {}%"; "pulseaudio" = {
tooltip-format = "{used:0.1f}/{total:0.1f} GB"; scroll-step = 1;
states = { format = "{icon} {volume}%";
warning = 80; format-bluetooth = "{icon} {volume}% ";
critical = 90; format-muted = "";
}; format-icons = {
}; headphones = "";
"network" = { handsfree = "";
interface = "wl*"; headset = "";
format-wifi = " {essid}"; phone = "";
format-icons = [ portable = "";
"" car = "";
]; default = [ "" "" ];
tooltip-format-wifi = "{frequency} MHz, {signaldBm} dBm"; };
}; on-click = "pavucontrol";
"pulseaudio" = { };
scroll-step = 1; "sway/workspaces" = {
format = "{icon} {volume}%"; all-outputs = false;
format-bluetooth = "{icon} {volume}% "; disable-scroll = false;
format-muted = ""; format = "{name}";
format-icons = { };
headphones = ""; "temperature" = {
handsfree = ""; format = " {temperatureC}°C";
headset = ""; hwmon-path = "/sys/class/hwmon/hwmon3/temp1_input";
phone = ""; critical-threshold = 75;
portable = ""; };
car = ""; "disk" = {
default = ["" ""]; interval = 30;
format = "{free} free";
path = "/";
}; };
on-click ="pavucontrol";
}; };
"sway/workspaces" = { }];
all-outputs = false; style = builtins.readFile ./waybar.css;
disable-scroll = false; };
format = "{name}";
};
"temperature" = {
format = " {temperatureC}°C";
hwmon-path = "/sys/class/hwmon/hwmon3/temp1_input";
critical-threshold = 75;
};
"disk" = {
interval= 30;
format= "{free} free";
path= "/";
};
};
} ];
style = builtins.readFile ./waybar.css;
};
programs.mako = { programs.mako = {

View file

@ -1,7 +1,12 @@
{ pkgs, ... }: { { pkgs, ... }:
let
unstable = import <nixos-unstable> { };
in
{
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = unstable.vscodium;
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions; [
# Dark Theme # Dark Theme
dracula-theme.theme-dracula dracula-theme.theme-dracula