adding basic window manager stuff
and vscodium
This commit is contained in:
parent
cc7fd013b0
commit
e0a6580e64
7 changed files with 119 additions and 0 deletions
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./window_manager/imports.nix
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
35
modules/vscodium.nix
Normal file
35
modules/vscodium.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
enable_vscode =
|
||||
if config.networking.hostName == "marty-pc"
|
||||
then true
|
||||
else if config.networking.hostName == "marty-latitude"
|
||||
then true
|
||||
else false;
|
||||
in
|
||||
|
||||
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = enable_vscode;
|
||||
package = pkgs.vscodium;
|
||||
defaultEditor = enable_vscode;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
catppuccin.catppuccin-vsc
|
||||
catppuccin.catppuccin-vsc-icons
|
||||
jnoortheen.nix-ide
|
||||
alefragnani.project-manager
|
||||
naumovs.color-highlight
|
||||
geequlim.godot-tools
|
||||
stylelint.vscode-stylelint
|
||||
ecmel.vscode-html-css
|
||||
esbenp.prettier-vscode
|
||||
];
|
||||
};
|
||||
}
|
||||
27
modules/window_manager/hyprland.nix
Normal file
27
modules/window_manager/hyprland.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
enable_hyprland =
|
||||
if config.networking.hostName == "marty-pc"
|
||||
then true
|
||||
else if config.networking.hostName == "marty-latitude"
|
||||
then true
|
||||
else false;
|
||||
in
|
||||
|
||||
{
|
||||
programs = {
|
||||
hyprland = {
|
||||
enable = enable_hyprland;
|
||||
xwayland.enable = enable_hyprland;
|
||||
};
|
||||
hyprlock = {
|
||||
enable = enable_hyprland;
|
||||
};
|
||||
};
|
||||
}
|
||||
13
modules/window_manager/imports.nix
Normal file
13
modules/window_manager/imports.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hyprland.nix
|
||||
./waybar.nix
|
||||
];
|
||||
}
|
||||
23
modules/window_manager/waybar.nix
Normal file
23
modules/window_manager/waybar.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
enable_waybar =
|
||||
if config.networking.hostName == "marty-pc"
|
||||
then true
|
||||
else if config.networking.hostName == "marty-latitude"
|
||||
then true
|
||||
else false;
|
||||
in
|
||||
|
||||
{
|
||||
programs = {
|
||||
waybar = {
|
||||
enable = enable_waybar;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue