try out i3 config from: https://github.com/jifuwater/Cattendeavou
This commit is contained in:
26
modules/graphical/awesome.nix
Normal file
26
modules/graphical/awesome.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let cfg = config.custom.graphical.awesome;
|
||||
in {
|
||||
options.custom.graphical.awesome = {
|
||||
enable = lib.mkEnableOption "Enables awesome";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
displayManager = {
|
||||
sddm.enable = true;
|
||||
defaultSession = "none+awesome";
|
||||
};
|
||||
|
||||
windowManager.awesome = {
|
||||
enable = true;
|
||||
luaModules = with pkgs.luaPackages; [
|
||||
luarocks # is the package manager for Lua modules
|
||||
luadbi-mysql # Database abstraction layer
|
||||
];
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,7 +4,9 @@
|
||||
imports = [
|
||||
./audio.nix
|
||||
./code.nix
|
||||
./awesome.nix
|
||||
./emulators.nix
|
||||
./i3.nix
|
||||
./gamemode.nix
|
||||
./games.nix
|
||||
./gnome.nix
|
||||
|
||||
52
modules/graphical/i3.nix
Normal file
52
modules/graphical/i3.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let cfg = config.custom.graphical.i3;
|
||||
in {
|
||||
|
||||
options = {
|
||||
custom.graphical.i3.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable i3 window manager";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.pathsToLink = [
|
||||
"/libexec"
|
||||
]; # links /libexec from derivations to /run/current-system/sw
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
desktopManager = { xterm.enable = false; };
|
||||
|
||||
displayManager = { defaultSession = "none+i3"; };
|
||||
|
||||
windowManager.i3 = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
i3status # gives you the default i3 status bar
|
||||
i3lock # default i3 screen locker
|
||||
i3blocks # if you are planning on using i3blocks over i3status
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
#picom # compositor
|
||||
rofi # application
|
||||
maim # takes screenshots
|
||||
xclip
|
||||
dex # starts applications according to .desktop files
|
||||
xss-lock # locks the screen when the system is idle
|
||||
pavucontrol
|
||||
libsForQt5.dolphin
|
||||
playerctl
|
||||
brightnessctl
|
||||
i3blocks
|
||||
autotiling
|
||||
feh # sets the wallpaper
|
||||
nm-tray # NetworkManager tray icon
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -6,7 +6,7 @@ in {
|
||||
enable = mkEnableOption "Enables stylix";
|
||||
image = mkOption {
|
||||
type = types.path;
|
||||
default = ../../yuyukowallpaper1809.png;
|
||||
default = ../../yuyukowallpaper.png;
|
||||
description = ''
|
||||
The wallpaper to use.
|
||||
'';
|
||||
@@ -33,6 +33,10 @@ in {
|
||||
config =
|
||||
let nerdfonts = pkgs.nerdfonts.override { fonts = [ "Hack" "Noto" ]; };
|
||||
in mkIf cfg.enable {
|
||||
|
||||
home-manager = lib.mkIf config.custom.graphical.i3.enable {
|
||||
users.${config.mainUser.name}.stylix.targets.kde.enable = false;
|
||||
};
|
||||
stylix = {
|
||||
autoEnable = mkForce true;
|
||||
polarity = "dark";
|
||||
|
||||
Reference in New Issue
Block a user