diff --git a/Makefile b/Makefile index 50fc56c6..f8fb0fe4 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,7 @@ $(HOMEMANAGER_CONFIG_DIR)/home.nix: $(HOMEMANAGER_CONFIG) $(HOMEMANAGER_CONFIG_D -ln -s $(HOMEMANAGER_CONFIG) $@ $(CONFIG_DIR)/nvim: $(CONFIG_DIR) - -git clone https://git.xenia.me.uk/xenia/nvim.git $@ - touch $@ + -nix-shell -p git --run "git clone https://git.xenia.me.uk/xenia/nvim.git $@" $(CONFIG_DIR) $(HOMEMANAGER_CONFIG_DIR): mkdir -p $@ diff --git a/home/desktop/config/waybar/modules.json b/home/desktop/config/waybar/modules.json index 5b66c7bc..0d53cc4e 100644 --- a/home/desktop/config/waybar/modules.json +++ b/home/desktop/config/waybar/modules.json @@ -121,7 +121,7 @@ "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth-muted": "󰝟 {icon} {format_source}", - "format-muted": "󰝟 {format_source}", + "format-muted": "󰝟 {format_source}", "format-source": "{volume}% 󰍬", "format-source-muted": "󰍭", "format-icons": { @@ -139,6 +139,29 @@ }, "on-click": "pavucontrol" }, + "pulseaudio#compact": { + "scroll-step": 5, + "format": "{icon} {format_source}", + "format-bluetooth": "{icon} {format_source}", + "format-bluetooth-muted": "󰝟 {icon} {format_source}", + "format-muted": "󰝟 {format_source}", + "format-source": "󰍬", + "format-source-muted": "󰍭", + "format-icons": { + "headphone": "󰋋", + "hands-free": "󰥰", + "headset": "󰋎", + "phone": "󰏲", + "portable": "󰏳", + "car": "󰄍", + "default": [ + "󰕿", + "󰖀", + "󰕾" + ] + }, + "on-click": "pavucontrol" + }, "custom/power": { "format": "󰐥", "on-click": "powermenu" @@ -157,12 +180,6 @@ "urgent": "", "focused": "", "default": "" - }, - "persistent_workspaces": { - "1": [], - "2": [], - "3": [], - "4": [] } }, "sway/workspaces": { @@ -179,12 +196,6 @@ "urgent": "", "focused": "", "default": "" - }, - "persistent_workspaces": { - "1": [], - "2": [], - "3": [], - "4": [] } } } diff --git a/machines/N0245/default.nix b/machines/N0245/default.nix new file mode 100644 index 00000000..32673272 --- /dev/null +++ b/machines/N0245/default.nix @@ -0,0 +1,37 @@ +{pkgs, ...}: { + imports = [ + ../../common.nix + ../../hardware/audio.nix + ../../hardware/bluetooth.nix + ../../locales/en_GB.nix + ../../desktop/hyprland.nix + ../../services/syncthing/N0245.nix + ]; + + networking.hostName = "N0245"; # Define your hostname. + system.autoUpgrade = { + enable = false; + allowReboot = false; + }; + environment.etc."ppp/options".text = '' + ipcp-accept-remote + ''; + users.users.elitherl = { + isNormalUser = true; + description = "Evie Litherland-Smith"; + extraGroups = ["networkmanager" "wheel"]; + shell = pkgs.fish; + }; + home-manager.users.elitherl = import ./elitherl.nix; + + services.greetd = { + enable = true; + settings = rec { + initial_session = { + command = "Hyprland"; + user = "elitherl"; + }; + default_session = initial_session; + }; + }; +} diff --git a/machines/N0245/elitherl.nix b/machines/N0245/elitherl.nix new file mode 100644 index 00000000..8c4c5d69 --- /dev/null +++ b/machines/N0245/elitherl.nix @@ -0,0 +1,83 @@ +{pkgs, ...}: { + imports = [ + ../../home/work.nix + ../../home/gui + ../../home/desktop/hyprland.nix + ]; + home.username = "elitherl"; + home.homeDirectory = "/home/elitherl"; + home.stateVersion = "22.11"; + home.packages = with pkgs; [ + zotero + openfortivpn + nomachine-client + teams-for-linux + zoom-us + ]; + programs.firefox.package = pkgs.firefox-wayland; + + wayland.windowManager.hyprland.extraConfig = '' + source=./common.conf + monitor=eDP-1,preferred,auto,auto + monitor=DP-3,preferred,auto,auto + monitor=DP-4,preferred,auto,auto,transform,1 + windowrule = float, title:^([Zz]oom).*$ + windowrule = center, title:^([Zz]oom).*$ + windowrule = float, ^(Nxplayer.bin)$ + windowrule = center, ^(Nxplayer.bin)$ + windowrule = workspace 3, title:^([Zz]oom).*$ + windowrule = workspace 4, ^(Nxplayer.bin)$ + ''; + programs.waybar.settings = { + main = { + "output" = "DP-3"; + "modules-left" = [ + "wlr/workspaces" + "cpu" + "memory" + "temperature" + ]; + "modules-center" = ["clock"]; + "modules-right" = [ + "pulseaudio" + "bluetooth" + "network#compact" + "backlight" + "battery" + "tray" + ]; + }; + alt-integrated = { + "include" = [ + "~/.config/waybar/modules.json" + "~/.config/waybar/layout.json" + ]; + "output" = "eDP-1"; + "modules-left" = [ + "wlr/workspaces" + "cpu" + "memory" + "temperature" + ]; + "modules-center" = ["clock#compact"]; + "modules-right" = [ + "pulseaudio#compact" + "bluetooth" + "network#compact" + "backlight" + "battery" + "tray" + ]; + }; + alt-vertical = { + "include" = [ + "~/.config/waybar/modules.json" + "~/.config/waybar/layout.json" + ]; + "output" = "DP-4"; + "modules-left" = ["wlr/workspaces"]; + "modules-center" = ["clock#compact"]; + "modules-right" = ["tray"]; + }; + }; +} diff --git a/services/syncthing/N0245.nix b/services/syncthing/N0245.nix new file mode 100644 index 00000000..14907a89 --- /dev/null +++ b/services/syncthing/N0245.nix @@ -0,0 +1,27 @@ +{...}: { + imports = [ + ./default.nix + ./devices/H0615.nix + ./devices/Ion.nix + ./devices/Legion.nix + ./devices/Monarch.nix + ./devices/Northstar.nix + ./devices/Vanguard.nix + ./folders/notes.nix + ./folders/zotero.nix + ]; + services.syncthing = { + user = "elitherl"; + group = "users"; + dataDir = "/home/elitherl"; + extraOptions.options.globalAnnounceEnabled = true; + folders."Notes" = { + path = "~/notes"; + devices = ["H0615" "ion" "legion" "monarch" "northstar" "vanguard"]; + }; + folders."Zotero" = { + path = "~/Documents/Zotero"; + devices = ["ion" "H0615" "legion"]; + }; + }; +}