migrate wezterm + awesome to home-manager
This commit is contained in:
parent
e9c7f70b4f
commit
09f84ab07b
|
@ -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; };
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue