Add services expression for H0615, update waybar and switch to hyprland

This commit is contained in:
Evie Litherland-Smith 2023-05-31 09:46:34 +01:00
parent 164b2d6d02
commit 1db5364696
4 changed files with 24 additions and 14 deletions

View file

@ -2,15 +2,15 @@
imports = [ imports = [
./home ./home
./common.nix ./common.nix
./locales/en_GB.nix
./desktop/plasma.nix
./hardware/audio.nix ./hardware/audio.nix
./syncthing/H0615.nix ./locales/en_GB.nix
./desktop/hyprland.nix
./services/H0615.nix
]; ];
networking.hostName = "H0615"; # Define your hostname. networking.hostName = "H0615"; # Define your hostname.
# Define a user account. Don't forget to set a password with passwd. users.users.root.shell = pkgs.zsh;
users.users.elitherl = { users.users.elitherl = {
isNormalUser = true; isNormalUser = true;
description = "Evie Litherland-Smith"; description = "Evie Litherland-Smith";

View file

@ -4,6 +4,7 @@
home.homeDirectory = "/home/elitherl"; home.homeDirectory = "/home/elitherl";
home.stateVersion = "22.11"; home.stateVersion = "22.11";
programs.fish.shellAbbrs.hypr = "exec Hyprland";
xdg.configFile."hypr/hyprpaper.conf".text = '' xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = /etc/nixos/config/wallpaper/images_dark/1920x1080.png preload = /etc/nixos/config/wallpaper/images_dark/1920x1080.png
preload = /etc/nixos/config/wallpaper/images_dark/1920x1200.png preload = /etc/nixos/config/wallpaper/images_dark/1920x1200.png
@ -25,9 +26,6 @@
exec-once = teams exec-once = teams
''; '';
programs.waybar = { programs.waybar = {
style = ''
@import 'common.css';
'';
settings = { settings = {
main = { main = {
"include" = [ "include" = [
@ -35,15 +33,26 @@
"~/.config/waybar/layout.json" "~/.config/waybar/layout.json"
]; ];
"output" = "HDMI-A-1"; "output" = "HDMI-A-1";
"modules-left" = ["custom/launcher" "cpu" "memory" "temperature"]; "modules-left" = ["wlr/workspaces"];
"modules-center" = ["wlr/workspaces"]; "modules-center" = ["clock"];
"modules-right" = ["pulseaudio" "network" "backlight" "clock" "tray" "custom/power"]; "modules-right" = [
"cpu"
"memory"
"temperature"
"pulseaudio"
"bluetooth"
"network"
"backlight"
"battery"
"battery#bat2"
"tray"
];
}; };
alt = { alt = {
"output" = "DP-1"; "output" = "DP-1";
"modules-left" = ["custom/launcher"]; "modules-left" = ["wlr/workspaces"];
"modules-center" = ["wlr/workspaces"]; "modules-center" = ["clock"];
"modules-right" = ["custom/power"]; "modules-right" = [];
}; };
}; };
}; };

1
services/H0615.nix Normal file
View file

@ -0,0 +1 @@
{...}:{ imports = [ ./syncthing/H0615.nix ]; }

View file

@ -1,5 +1,5 @@
{...}: { {...}: {
imports = [./default.nix ./devices/ion.nix]; imports = [./default.nix ./devices];
services.syncthing = { services.syncthing = {
user = "elitherl"; user = "elitherl";
group = "users"; group = "users";