Skip to content

Commit

Permalink
feat: xfce+i3 for virtualis
Browse files Browse the repository at this point in the history
  • Loading branch information
erictossell committed Jul 25, 2024
1 parent 63fb00a commit 6281e65
Show file tree
Hide file tree
Showing 11 changed files with 122 additions and 19 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
} // attrs;
modules = [
./.
./modules/ssh
];
}; # virtualis
}; # configurations
Expand Down
4 changes: 3 additions & 1 deletion hosts/virtualis/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

services.xrdp = {
enable = true;
defaultWindowManager = "startxfce4";
#defaultWindowManager = "i3";
openFirewall = true;
audio.enable = true;
};
services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true;
}
22 changes: 22 additions & 0 deletions modules/awesome/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ pkgs, ... }:
{
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
];

};
};

}
61 changes: 61 additions & 0 deletions modules/core/terminal/alacritty/alacritty.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Alacritty configuration file

[window]
dimensions = { columns = 100, lines = 30 }
padding = { x = 10, y = 10 }
decorations = "full" # Options: "full", "none", "transparent", "buttonless"

[font]
normal = { family = "JetBrains Mono", style = "Regular" }
bold = { family = "JetBrains Mono", style = "Bold" }
italic = { family = "JetBrains Mono", style = "Italic" }
size = 12.0

[colors]
[colors.primary]
background = "0x282a36"
foreground = "0xf8f8f2"

[colors.cursor]
text = "0x000000"
cursor = "0xffffff"

[colors.selection]
text = "0x000000"
background = "0x44475a"

[colors.normal]
black = "0x000000"
red = "0xff5555"
green = "0x50fa7b"
yellow = "0xf1fa8c"
blue = "0xbd93f9"
magenta = "0xff79c6"
cyan = "0x8be9fd"
white = "0xbfbfbf"

[colors.bright]
black = "0x4d4d4d"
red = "0xff6e67"
green = "0x5af78e"
yellow = "0xf4f99d"
blue = "0xcaa9fa"
magenta = "0xff92d0"
cyan = "0x9aedfe"
white = "0xe6e6e6"

[[keyboard.bindings]]
key = "V"
mods = "Control|Shift"
action = "Paste"

[[keyboard.bindings]]
key = "C"
mods = "Control|Shift"
action = "Copy"

[[keyboard.bindings]]
key = "Q"
mods = "Control|Shift"
action = "Quit"

11 changes: 11 additions & 0 deletions modules/core/terminal/alacritty/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ pkgs, username, ... }:
{
environment.systemPackages = with pkgs; [ alacritty ];

home-manager.users.${username} = _: {
home.file = {
".config/alacritty/alacritty.toml".source = ./alacritty.toml;
};
};

}
1 change: 1 addition & 0 deletions modules/core/terminal/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ pkgs, username, ... }:
{
imports = [
./alacritty
./cava
./fonts
./foot
Expand Down
18 changes: 16 additions & 2 deletions modules/core/terminal/foot/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{ pkgs, ... }:
{ pkgs, username, ... }:
{
imports = [ ./dots ];
environment.systemPackages = with pkgs; [ foot ];


home-manager.users.${username} = _: {
home.file = {
".config/foot/foot.ini".text = ''
font=Jetbrains Mono:size=13
pad=15x15
[colors]
alpha=0.5
background=232136
'';
};
};
}

15 changes: 0 additions & 15 deletions modules/core/terminal/foot/dots/default.nix

This file was deleted.

3 changes: 2 additions & 1 deletion modules/plasma/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
services = {
displayManager.sddm.wayland.enable = true;
#displayManager.sddm.x11.enable = true;
displayManager.defaultSession = "plasmax11";
desktopManager.plasma6.enable = true;
};
qt = {
Expand Down
1 change: 1 addition & 0 deletions modules/ssh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
ports = [ 4545 ];
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
settings.X11Forwarding = true;
};
}
4 changes: 4 additions & 0 deletions modules/xfce/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{ pkgs, ... }:
{
services.xserver = {
enable = true;
Expand All @@ -12,4 +13,7 @@
windowManager.i3.enable = true;
};
services.displayManager.defaultSession = "xfce+i3";
environment.systemPackages = with pkgs; [
xorg.xinit
];
}

0 comments on commit 6281e65

Please sign in to comment.