adding basic window manager stuff

and vscodium
This commit is contained in:
marty 2025-12-16 12:54:59 +01:00
parent cc7fd013b0
commit e0a6580e64
7 changed files with 119 additions and 0 deletions

View file

@ -33,6 +33,13 @@
./marty-server.nix
];
};
marty-latitude = nixpkgs.lib.nixosSystem {
system = "x86_64";
modules = [
./configuration.nix
./marty-latitude.nix
];
};
};
};
}

12
marty-latitude.nix Normal file
View file

@ -0,0 +1,12 @@
{
config,
lib,
pkgs,
...
}:
{
networking = {
hostName = "marty-latitude";
};
}

View file

@ -7,6 +7,8 @@
{
imports = [
./window_manager/imports.nix
./git.nix
./vscodium.nix
];
}

35
modules/vscodium.nix Normal file
View 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
];
};
}

View 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;
};
};
}

View file

@ -0,0 +1,13 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [
./hyprland.nix
./waybar.nix
];
}

View 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;
};
};
}