Compare commits
2 Commits
776e4cd49c
...
a1d0ca2d65
Author | SHA1 | Date | |
---|---|---|---|
a1d0ca2d65 | |||
588190e7b6 |
@ -14,7 +14,6 @@ toplevel@{ inputs, withSystem, config, ... }:
|
|||||||
util
|
util
|
||||||
swayland
|
swayland
|
||||||
web
|
web
|
||||||
work
|
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -2,21 +2,9 @@ toplevel@{ moduleWithSystem, ... }: {
|
|||||||
flake.homeManagerModules = {
|
flake.homeManagerModules = {
|
||||||
base = moduleWithSystem (
|
base = moduleWithSystem (
|
||||||
top@{ ... }:
|
top@{ ... }:
|
||||||
perSystem@{ pkgs, config, ... }: {
|
perSystem@{ config, ... }: {
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
home = {
|
home.stateVersion = toplevel.config.flake.stateVersion;
|
||||||
stateVersion = toplevel.config.flake.stateVersion;
|
|
||||||
username = "ivand";
|
|
||||||
homeDirectory = "/home/ivand";
|
|
||||||
sessionVariables = {
|
|
||||||
EDITOR = "nvim";
|
|
||||||
PAGER = "bat";
|
|
||||||
TERM = "screen-256color";
|
|
||||||
MAKEFLAGS = "-j 4";
|
|
||||||
};
|
|
||||||
pointerCursor = with pkgs; { name = "catppuccin-mocha-green-cursors"; package = catppuccin-cursors.mochaGreen; size = 24; gtk.enable = true; };
|
|
||||||
packages = with pkgs; [ transmission_4 speedtest-cli nvim ];
|
|
||||||
};
|
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userDirs = with config; {
|
userDirs = with config; {
|
||||||
@ -47,6 +35,13 @@ toplevel@{ moduleWithSystem, ... }: {
|
|||||||
ivand = moduleWithSystem (
|
ivand = moduleWithSystem (
|
||||||
top@{ ... }:
|
top@{ ... }:
|
||||||
perSystem@{ pkgs, config, ... }: {
|
perSystem@{ pkgs, config, ... }: {
|
||||||
|
home = {
|
||||||
|
username = "ivand";
|
||||||
|
homeDirectory = "/home/ivand";
|
||||||
|
sessionVariables = { EDITOR = "nvim"; PAGER = "bat"; TERM = "screen-256color"; MAKEFLAGS = "-j 4"; };
|
||||||
|
pointerCursor = with pkgs; { name = "catppuccin-mocha-green-cursors"; package = catppuccin-cursors.mochaGreen; size = 24; gtk.enable = true; };
|
||||||
|
packages = with pkgs; [ transmission_4 speedtest-cli nvim ];
|
||||||
|
};
|
||||||
programs = {
|
programs = {
|
||||||
password-store = { enable = true; package = pkgs.pass.withExtensions (e: with e; [ pass-otp pass-file ]); settings = { PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store"; }; };
|
password-store = { enable = true; package = pkgs.pass.withExtensions (e: with e; [ pass-otp pass-file ]); settings = { PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store"; }; };
|
||||||
git = {
|
git = {
|
||||||
@ -60,22 +55,36 @@ toplevel@{ moduleWithSystem, ... }: {
|
|||||||
};
|
};
|
||||||
ssh = {
|
ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
matchBlocks = {
|
matchBlocks = { vpsfree = { hostname = "37.205.13.29"; user = "ivand"; }; vpsfree-root = { hostname = "37.205.13.29"; user = "root"; }; };
|
||||||
vpsfree = {
|
|
||||||
hostname = "37.205.13.29";
|
|
||||||
user = "ivand";
|
|
||||||
};
|
|
||||||
vpsfree-root = {
|
|
||||||
hostname = "37.205.13.29";
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
gpg.enable = true;
|
gpg.enable = true;
|
||||||
};
|
};
|
||||||
services = { gpg-agent = { enable = true; enableBashIntegration = true; enableZshIntegration = true; enableNushellIntegration = true; pinentryPackage = pkgs.pinentry-qt; }; };
|
services = { gpg-agent = { enable = true; enableBashIntegration = true; enableZshIntegration = true; enableNushellIntegration = true; pinentryPackage = pkgs.pinentry-qt; }; };
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
util = moduleWithSystem (
|
||||||
|
top@{ ... }:
|
||||||
|
perSystem@{ ... }: {
|
||||||
|
programs = {
|
||||||
|
tealdeer = {
|
||||||
|
enable = true;
|
||||||
|
settings = { display = { compact = true; }; updates = { auto_update = true; }; };
|
||||||
|
};
|
||||||
|
bottom = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
flags = { rate = "250ms"; };
|
||||||
|
row = [
|
||||||
|
{ ratio = 40; child = [{ type = "cpu"; } { type = "mem"; } { type = "net"; }]; }
|
||||||
|
{ ratio = 35; child = [{ type = "temp"; } { type = "disk"; }]; }
|
||||||
|
{ ratio = 40; child = [{ type = "proc"; default = true; }]; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
bat.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
shell = moduleWithSystem (
|
shell = moduleWithSystem (
|
||||||
top@{ ... }:
|
top@{ ... }:
|
||||||
perSystem@{ pkgs, ... }: {
|
perSystem@{ pkgs, ... }: {
|
||||||
@ -157,29 +166,6 @@ toplevel@{ moduleWithSystem, ... }: {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
util = moduleWithSystem (
|
|
||||||
top@{ ... }:
|
|
||||||
perSystem@{ ... }: {
|
|
||||||
programs = {
|
|
||||||
tealdeer = {
|
|
||||||
enable = true;
|
|
||||||
settings = { display = { compact = true; }; updates = { auto_update = true; }; };
|
|
||||||
};
|
|
||||||
bottom = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
flags = { rate = "250ms"; };
|
|
||||||
row = [
|
|
||||||
{ ratio = 40; child = [{ type = "cpu"; } { type = "mem"; } { type = "net"; }]; }
|
|
||||||
{ ratio = 35; child = [{ type = "temp"; } { type = "disk"; }]; }
|
|
||||||
{ ratio = 40; child = [{ type = "proc"; default = true; }]; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
bat.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
);
|
|
||||||
swayland = moduleWithSystem (
|
swayland = moduleWithSystem (
|
||||||
top@{ ... }:
|
top@{ ... }:
|
||||||
perSystem@{ pkgs, config, ... }: {
|
perSystem@{ pkgs, config, ... }: {
|
||||||
@ -273,137 +259,136 @@ toplevel@{ moduleWithSystem, ... }: {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd = { enable = true; target = "sway-session.target"; };
|
systemd = { enable = true; target = "sway-session.target"; };
|
||||||
style = /* CSS */
|
style = ''
|
||||||
''
|
@define-color rosewater #f5e0dc;
|
||||||
@define-color rosewater #f5e0dc;
|
@define-color flamingo #f2cdcd;
|
||||||
@define-color flamingo #f2cdcd;
|
@define-color pink #f5c2e7;
|
||||||
@define-color pink #f5c2e7;
|
@define-color mauve #cba6f7;
|
||||||
@define-color mauve #cba6f7;
|
@define-color red #f38ba8;
|
||||||
@define-color red #f38ba8;
|
@define-color maroon #eba0ac;
|
||||||
@define-color maroon #eba0ac;
|
@define-color peach #fab387;
|
||||||
@define-color peach #fab387;
|
@define-color yellow #f9e2af;
|
||||||
@define-color yellow #f9e2af;
|
@define-color green #a6e3a1;
|
||||||
@define-color green #a6e3a1;
|
@define-color teal #94e2d5;
|
||||||
@define-color teal #94e2d5;
|
@define-color sky #89dceb;
|
||||||
@define-color sky #89dceb;
|
@define-color sapphire #74c7ec;
|
||||||
@define-color sapphire #74c7ec;
|
@define-color blue #89b4fa;
|
||||||
@define-color blue #89b4fa;
|
@define-color lavender #b4befe;
|
||||||
@define-color lavender #b4befe;
|
@define-color text #cdd6f4;
|
||||||
@define-color text #cdd6f4;
|
@define-color subtext1 #bac2de;
|
||||||
@define-color subtext1 #bac2de;
|
@define-color subtext0 #a6adc8;
|
||||||
@define-color subtext0 #a6adc8;
|
@define-color overlay2 #9399b2;
|
||||||
@define-color overlay2 #9399b2;
|
@define-color overlay1 #7f849c;
|
||||||
@define-color overlay1 #7f849c;
|
@define-color overlay0 #6c7086;
|
||||||
@define-color overlay0 #6c7086;
|
@define-color surface2 #585b70;
|
||||||
@define-color surface2 #585b70;
|
@define-color surface1 #45475a;
|
||||||
@define-color surface1 #45475a;
|
@define-color surface0 #313244;
|
||||||
@define-color surface0 #313244;
|
@define-color base #1e1e2e;
|
||||||
@define-color base #1e1e2e;
|
@define-color mantle #181825;
|
||||||
@define-color mantle #181825;
|
@define-color crust #11111b;
|
||||||
@define-color crust #11111b;
|
* {
|
||||||
* {
|
font-family: FontAwesome, 'Fira Code';
|
||||||
font-family: FontAwesome, 'Fira Code';
|
font-size: 13px;
|
||||||
font-size: 13px;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: rgba(43, 48, 59, 0.1);
|
background-color: rgba(43, 48, 59, 0.1);
|
||||||
border-bottom: 2px solid rgba(100, 114, 125, 0.5);
|
border-bottom: 2px solid rgba(100, 114, 125, 0.5);
|
||||||
color: @rosewater;
|
color: @rosewater;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
background-color: @base;
|
background-color: @base;
|
||||||
color: @text;
|
color: @text;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
background: @mantle;
|
background: @mantle;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#workspaces button.focused {
|
||||||
background-color: @crust;
|
background-color: @crust;
|
||||||
box-shadow: inset 0 -2px @sky;
|
box-shadow: inset 0 -2px @sky;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background-color: @red;
|
background-color: @red;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
#clock,
|
||||||
#battery,
|
#battery,
|
||||||
#cpu,
|
#cpu,
|
||||||
#memory,
|
#memory,
|
||||||
#disk,
|
#disk,
|
||||||
#temperature,
|
#temperature,
|
||||||
#backlight,
|
#backlight,
|
||||||
#network,
|
#network,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#wireplumber,
|
#wireplumber,
|
||||||
#custom-media,
|
#custom-media,
|
||||||
#tray,
|
#tray,
|
||||||
#mode,
|
#mode,
|
||||||
#idle_inhibitor,
|
#idle_inhibitor,
|
||||||
#scratchpad,
|
#scratchpad,
|
||||||
#power-profiles-daemon,
|
#power-profiles-daemon,
|
||||||
#mpd {
|
#mpd {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
color: @text;
|
color: @text;
|
||||||
background-color: @base;
|
background-color: @base;
|
||||||
margin: 0 .5em;
|
margin: 0 .5em;
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock.week {
|
#clock.week {
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
color: @peach;
|
color: @peach;
|
||||||
border-radius: 9999px 0px 0px 9999px;
|
border-radius: 9999px 0px 0px 9999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock.year {
|
#clock.year {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
color: @pink;
|
color: @pink;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock.time {
|
#clock.time {
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
color: @sky;
|
color: @sky;
|
||||||
border-radius: 0px 9999px 9999px 0px;
|
border-radius: 0px 9999px 9999px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging, #battery.plugged {
|
#battery.charging, #battery.plugged {
|
||||||
color: @green;
|
color: @green;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.discharging {
|
#battery.discharging {
|
||||||
color: @yellow;
|
color: @yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
to {
|
to {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.warning:not(.charging) {
|
#battery.warning:not(.charging) {
|
||||||
background-color: @red;
|
background-color: @red;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||||
#battery.critical:not(.charging) {
|
#battery.critical:not(.charging) {
|
||||||
background-color: @red;
|
background-color: @red;
|
||||||
animation-name: blink;
|
animation-name: blink;
|
||||||
animation-duration: 0.5s;
|
animation-duration: 0.5s;
|
||||||
animation-timing-function: steps(12);
|
animation-timing-function: steps(12);
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
swaylock = {
|
swaylock = {
|
||||||
@ -431,8 +416,8 @@ toplevel@{ moduleWithSystem, ... }: {
|
|||||||
font = { package = pkgs.fira-code; name = "FiraCodeNFM-Reg"; };
|
font = { package = pkgs.fira-code; name = "FiraCodeNFM-Reg"; };
|
||||||
settings = { background_opacity = "0.90"; cursor_shape = "beam"; term = "screen-256color"; };
|
settings = { background_opacity = "0.90"; cursor_shape = "beam"; term = "screen-256color"; };
|
||||||
};
|
};
|
||||||
imv.enable = true;
|
imv = { enable = true; settings = { options.fullscreen = true; }; };
|
||||||
mpv.enable = true;
|
mpv = { enable = true; scripts = with pkgs.mpvScripts; [ uosc thumbfast ]; };
|
||||||
bash.profileExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
|
bash.profileExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
|
||||||
zsh.loginExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
|
zsh.loginExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
|
||||||
nushell.loginFile.text = '' if (tty) == "/dev/tty1" { sway } '';
|
nushell.loginFile.text = '' if (tty) == "/dev/tty1" { sway } '';
|
||||||
@ -507,11 +492,5 @@ toplevel@{ moduleWithSystem, ... }: {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
work = moduleWithSystem (
|
|
||||||
top@{ ... }:
|
|
||||||
perSystem@{ pkgs, ... }: {
|
|
||||||
programs.chromium = { enable = true; package = pkgs.ungoogled-chromium; };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user