Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
222 changes: 213 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
inputs.nixpkgs.follows = "nixpkgs";
};

niri.url = "github:sodiboo/niri-flake";

noctalia = {
url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};

# Catppuccin
# https://github.com/catppuccin/nix
catppuccin = {
Expand Down
26 changes: 21 additions & 5 deletions homes/_modules/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,26 @@ let
cfg = config.modules.desktop;
in
{
imports = [
./niri
];

options.modules.desktop = {
enable = lib.mkEnableOption "desktop applications";
};
config = lib.mkIf cfg.enable {
programs = {
discord.enable = true;
firefox.enable = true;
fuzzel.enable = true;
swaylock.enable = true;
vesktop.enable = true;

ghostty = {
enable = true;
enableFishIntegration = true;
settings = {
confirm-close-surface = false;
link-url = true;

window-width = 160;
window-height = 50;
maximize = true;
};
};

Expand All @@ -32,5 +36,17 @@ in
package = pkgs.unstable.vscode;
};
};
services = {
mako.enable = true; # notification daemon
swayidle.enable = true; # idle management daemon
polkit-gnome.enable = true; # polkit
};

home.packages = with pkgs; [
nerd-fonts.fira-code
nerd-fonts.monaspace
swaybg
xfce.thunar
];
};
}
10 changes: 10 additions & 0 deletions homes/_modules/desktop/niri/applications.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
pkgs,
}:

{
browser = "${pkgs.firefox}/bin/firefox";
terminal = "ghostty";
fileManager = "thunar";
appLauncher = "${pkgs.fuzzel}/bin/fuzzel";
}
9 changes: 9 additions & 0 deletions homes/_modules/desktop/niri/autostart.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
...
}:

{
programs.niri.settings.spawn-at-startup = [
{ command = [ "noctalia-shell" ]; }
];
}
12 changes: 12 additions & 0 deletions homes/_modules/desktop/niri/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
...
}:
{
imports = [
./autostart.nix
./keybinds.nix
./noctalia.nix
./rules.nix
./settings.nix
];
}
Loading
Loading