migrate wezterm + awesome to home-manager

This commit is contained in:
♥ Minnie ♥ 2023-04-18 20:28:04 +08:00
parent e9c7f70b4f
commit 09f84ab07b
2 changed files with 33 additions and 15 deletions

View file

@ -18,7 +18,7 @@
./programs/nvim.nix
./programs/zsh.nix
# Services
./services/picom.nix
# ./services/picom.nix
];
nixpkgs = {
@ -38,6 +38,10 @@
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
(final: prev: {
awesome = inputs.nixpkgs-f2k.packages.${pkgs.system}.awesome-git;
wezterm = inputs.nixpkgs-f2k.packages.${pkgs.system}.wezterm-git;
})
];
# Configure your nixpkgs instance
config = {
@ -63,10 +67,26 @@
discord
hilbish
spotify
# nixpkgs-f2k
wezterm
# pkgs.unstable
unstable.prismlauncher
];
};
xsession = {
enable = true;
scriptPath = ".xsession-hm";
# Git version provided by nixpkgs-f2k
windowManager.awesome = {
enable = true;
luaModules = with pkgs.luaPackages; [
luarocks # it the package manager for Lua modules
luadbi-mysql # Database abstraction layer
];
};
};
# Setup user configuration
xdg.configFile = {
awesome = { source = ../config/awesome; recursive = true; };

View file

@ -35,10 +35,6 @@
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
(final: prev: {
awesome = inputs.nixpkgs-f2k.packages.${pkgs.system}.awesome-git;
wezterm = inputs.nixpkgs-f2k.packages.${pkgs.system}.wezterm-git;
})
];
# Configure your nixpkgs instance
config = {
@ -160,7 +156,7 @@
blender freecad openscad
# Misc
openrgb wezterm
openrgb
];
# Completions for system packages
@ -198,24 +194,26 @@
# Configure display manager
displayManager = {
sddm.enable = true;
defaultSession = "plasma";
# Setup dual monitors
setupCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-A-0 --mode 1920x1080 --output DisplayPort-0 --mode 2560x1440 --right-of HDMI-A-0
'';
};
# Git version provided by nixpkgs-f2k
windowManager.awesome = {
enable = true;
luaModules = with pkgs.luaPackages; [
luarocks # is the package manager for Lua modules
luadbi-mysql # Database abstraction layer
];
desktopManager = {
plasma5.enable = true;
session = [{
name = "home-manager";
start = ''
${pkgs.stdenv.shell} $HOME/.xsession-hm &
waitPID=$!
'';
}];
};
};
};
desktopManager.plasma5.enable = true;
};
};
# Install docker
virtualisation.docker = {