Skip to content

Commit

Permalink
refactor: change tofi font to have icon, nits
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnossiom committed Jan 4, 2024
1 parent 46b5445 commit 0d9f480
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 53 deletions.
16 changes: 4 additions & 12 deletions home-manager/assets/workstyle.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,14 @@
"firefox" = ""

"kitty" = ""
"file manager" = ""
"libreoffice calc" = ""
"ya" = ""

"nvim" = ""
"helix" = "🧬"
"transmission" = ""
"music" = ""
"visual studio code" = "󰘐"

# TODO fix
"libreoffice writer" = ""
"libreoffice" = ""
"calculator" = ""
"videostream" = ""
"mpv" = ""
"disk usage" = ""
".pdf" = ""
"mpv" = ""
"imv" = ""

[other]
"fallback_icon" = ""
5 changes: 1 addition & 4 deletions home-manager/modules/vm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ in
}];
};

startup = [
# TODO: pipe to other log file, like a standard log output folder
{ command = "${getExe' pkgs.workstyle "workstyle"} &> /tmp/workstyle.log"; always = true; }
];
startup = [{ command = "${getExe' pkgs.workstyle "workstyle"} &> /var/log/workstyle.log"; always = true; }];

focus.followMouse = false;

Expand Down
2 changes: 1 addition & 1 deletion home-manager/modules/vm/search.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let
in
{
config = {
wayland.windowManager.sway.config.menu = "${getExe' pkgs.tofi "tofi-drun"} --font ${pkgs.inter}/share/fonts/opentype/Inter-Regular.otf | xargs ${getExe' pkgs.sway "swaymsg"} exec --";
wayland.windowManager.sway.config.menu = "${getExe' pkgs.tofi "tofi-drun"} --font ${pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; }}/share/fonts/truetype/JetBrainsMonoNerdFont-Regular.ttf | xargs ${getExe' pkgs.sway "swaymsg"} exec --";

xdg.configFile."tofi/config".text = keyValueFormat {
font-size = 14;
Expand Down
68 changes: 37 additions & 31 deletions nixos/hardware/archaic-wiro-laptop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,46 @@
, modulesPath
, ...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

fileSystems."/" = {
device = "/dev/disk/by-uuid/c3e74034-2dc2-4462-a4f1-82fc5f8e7daf";
fsType = "ext4";
};
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

fileSystems."/boot" = {
device = "/dev/disk/by-uuid/A18B-9B1D";
fsType = "vfat";
};
config = {
local.screen = {
width = 1920;
height = 1080;
};

system.stateVersion = "23.05";

swapDevices = [
{ device = "/dev/disk/by-uuid/6206464f-5261-404c-b2f5-dbb450d30550"; }
];
# --- Generated by `nixos-generate-config` ---
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
fileSystems."/" = {
device = "/dev/disk/by-uuid/c3e74034-2dc2-4462-a4f1-82fc5f8e7daf";
fsType = "ext4";
};

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/A18B-9B1D";
fsType = "vfat";
};

system.stateVersion = "23.05";
swapDevices = [
{ device = "/dev/disk/by-uuid/6206464f-5261-404c-b2f5-dbb450d30550"; }
];

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}
10 changes: 5 additions & 5 deletions nixos/modules/backup.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@
with lib;

let

inherit (config.age.secrets) restic-backup-pass googledrive-rclone-config;
hostname = config.networking.hostName;
mainUsername = config.local.user.username;

in
{
config.services.restic.backups = {
# Backup documents and repos code
google-drive = {
repository = "rclone:googledrive:/Backups/${hostname}";
initialize = true;
passwordFile = config.age.secrets.restic-backup-pass.path;
rcloneConfigFile = config.age.secrets.googledrive-rclone-config.path;
passwordFile = restic-backup-pass.path;
rcloneConfigFile = googledrive-rclone-config.path;

paths = [
"/home/${mainUsername}/Documents"
Expand Down Expand Up @@ -63,8 +62,9 @@ in
# Backup documents and large files
archaic-bak = {
initialize = true;
passwordFile = config.age.secrets.restic-backup-pass.path;
passwordFile = restic-backup-pass.path;
paths = [ "/home/${mainUsername}/Documents" ];
# TODO
repository = "/mnt/${mainUsername}/ArchaicBak/Backups/${hostname}";
};
};
Expand Down

0 comments on commit 0d9f480

Please sign in to comment.