Add awesome configuration
This commit is contained in:
parent
f2c7453b02
commit
5347c04b3e
9 changed files with 912 additions and 11 deletions
lib/nixos
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
self,
|
||||
username,
|
||||
}:
|
||||
|
@ -37,7 +38,14 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
};
|
||||
}
|
||||
|
||||
(import ./modules/awesome.nix)
|
||||
(import ./modules/awesome.nix {
|
||||
inherit
|
||||
inputs
|
||||
pkgs
|
||||
self
|
||||
username
|
||||
;
|
||||
})
|
||||
(import ./modules/gnome.nix)
|
||||
# (import ./modules/sway.nix { inherit inputs username; })
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
imports = [
|
||||
./modules/alacritty.nix
|
||||
./modules/autorandr.nix
|
||||
./modules/awesome.nix
|
||||
# ./modules/awesome.nix
|
||||
./modules/copyq.nix
|
||||
./modules/dunst.nix
|
||||
./modules/espanso.nix
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
xsession.windowManager.awesome = {
|
||||
enable = true;
|
||||
noArgb = true;
|
||||
};
|
||||
}
|
|
@ -1,9 +1,35 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ nitrogen ];
|
||||
pkgs,
|
||||
self,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (pkgs) writeShellScriptBin;
|
||||
|
||||
script-autostart = writeShellScriptBin "awesome-autostart" ''
|
||||
set -o errexit
|
||||
|
||||
${pkgs.nitrogen}/bin/nitrogen --set-zoom-fill --random "''${HOME}/Pictures/Wallpaper"
|
||||
'';
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
script-autostart
|
||||
|
||||
nitrogen
|
||||
];
|
||||
|
||||
services.xserver.windowManager.awesome = {
|
||||
enable = true;
|
||||
noArgb = true;
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
xdg.configFile.awesome = {
|
||||
source = "${self}/config/awesome";
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue