Add Lenovo laptop

This commit is contained in:
jimjam4real 2024-09-08 21:45:54 -04:00
parent 7bbc3ac209
commit fd0316e588
14 changed files with 201 additions and 17 deletions

View file

@ -37,13 +37,14 @@
./services/udiskie.nix
];
# Rebuild this entire system
# ZSH rebuild commands
programs.zsh = {
shellAliases = let
auth = import ./common/auth.nix;
hostname = "JimDeck";
in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimDeck";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@JimDeck";
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
};
};

View file

@ -39,13 +39,14 @@
./services/udiskie.nix
];
# Rebuild this entire system
# ZSH rebuild commands
programs.zsh = {
shellAliases = let
auth = import ./common/auth.nix;
hostname = "JimDesktop";
in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimDesktop";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@JimDesktop";
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
};
};

View file

@ -0,0 +1,58 @@
{config, ...}: {
imports = [
# Common modules
./home.nix
./users/jimbo.nix
./tuiapps/git.nix
# GUI Apps
./misc/guifiles.nix
./sway/sway.nix
./sway/swaylock.nix
./guiapps/gtk.nix
./guiapps/foot.nix
./guiapps/librewolf.nix
./guiapps/mangohud.nix
./guiapps/mpv.nix
./guiapps/obs.nix
./guiapps/pcmanfm-qt.nix
./guiapps/rofi.nix
./guiapps/swappy.nix
./guiapps/easyeffects.nix
./tuiapps/ncmpcpp.nix
# Misc apps and tools
./misc/useful.nix
./misc/avtools.nix
./misc/filemanager.nix
./misc/gaming.nix
./misc/xash3d.nix
./misc/remotedesktop.nix
./misc/school.nix
./misc/variables.nix
# Services
./services/gnome-keyring.nix
./services/mako.nix
./services/udiskie.nix
];
# ZSH rebuild commands
programs.zsh = {
shellAliases = let
auth = import ./common/auth.nix;
hostname = "JimLenovo";
in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
};
};
# Symlinks
home.file = {
"VMs" = {
source = config.lib.file.mkOutOfStoreSymlink "/etc/libvirt/VMs";
};
};
}

View file

@ -6,14 +6,15 @@
./tuiapps/git.nix
];
# Rebuild this entire system
# ZSH rebuild commands
programs.zsh = {
shellAliases = let
auth = import ./common/auth.nix;
hostname = "JimServer";
in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimServer";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@JimServer";
nixdate = "sysdate; homedate";
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'";
};
};
}

View file

@ -9,8 +9,9 @@
programs.zsh = {
shellAliases = let
auth = import ./common/auth.nix;
hostname = "SSH";
in {
homedate = "home-manager switch --flake ~/.home-manager/.#jimbo@SSH --extra-experimental-features 'nix-command flakes'";
homedate = "home-manager switch --flake ~/.home-manager/.#jimbo@${hostname} --extra-experimental-features 'nix-command flakes'";
};
};
}

View file

@ -23,7 +23,7 @@
# Foreground apps
{command = "librewolf -P Misc --name=MiscBrowser";}
{command = "vesktop --ozone-platform-hint=auto";}
{command = "vesktop";}
{command = "element-desktop";}
{command = "thunderbird";}
];

View file

@ -97,8 +97,8 @@
# Communication
"${ws.w3a}" = [{class = "zoom";}];
"${ws.w7}" = [{app_id = "MiscBrowser";} {app_id = "vesktop";}];
"${ws.w8}" = [{app_id = "Element";}];
"${ws.w7}" = [{app_id = "MiscBrowser";} {app_id = "vesktop";} {class = "vesktop";}];
"${ws.w8}" = [{app_id = "Element";} {class = "Element";}];
"${ws.w9}" = [{app_id = "thunderbird";}];
# Else