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/nvim.nix
./programs/zsh.nix ./programs/zsh.nix
# Services # Services
./services/picom.nix # ./services/picom.nix
]; ];
nixpkgs = { nixpkgs = {
@ -38,6 +38,10 @@
# patches = [ ./change-hello-to-hi.patch ]; # 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 # Configure your nixpkgs instance
config = { config = {
@ -63,10 +67,26 @@
discord discord
hilbish hilbish
spotify spotify
# nixpkgs-f2k
wezterm
# pkgs.unstable
unstable.prismlauncher 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 # Setup user configuration
xdg.configFile = { xdg.configFile = {
awesome = { source = ../config/awesome; recursive = true; }; awesome = { source = ../config/awesome; recursive = true; };

View file

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