noctalia-shell: init (#2077)

Link: https://github.com/nix-community/stylix/pull/2077

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
(cherry picked from commit dd14de4432)
This commit is contained in:
rwxae 2025-12-11 20:34:04 +03:00 committed by NAHO
parent 93c8a26eee
commit a7fb3944d1
8 changed files with 128 additions and 0 deletions

21
flake/dev/flake.lock generated
View file

@ -154,6 +154,26 @@
"type": "github"
}
},
"noctalia-shell": {
"inputs": {
"nixpkgs": [
"dev-nixpkgs"
]
},
"locked": {
"lastModified": 1765201259,
"narHash": "sha256-6btxUos1OY0LSk9hBVnLRcklLGBKCA2SCq9WkoLa91E=",
"owner": "noctalia-dev",
"repo": "noctalia-shell",
"rev": "c2b245703021e65a761a7de06b3b6b91d609a6c5",
"type": "github"
},
"original": {
"owner": "noctalia-dev",
"repo": "noctalia-shell",
"type": "github"
}
},
"nvf": {
"inputs": {
"flake-compat": [],
@ -191,6 +211,7 @@
"git-hooks": "git-hooks",
"home-manager": "home-manager",
"nixvim": "nixvim",
"noctalia-shell": "noctalia-shell",
"nvf": "nvf",
"spicetify-nix": "spicetify-nix",
"treefmt-nix": "treefmt-nix",

View file

@ -156,6 +156,11 @@
};
};
noctalia-shell = {
url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "dev-nixpkgs";
};
nvf = {
url = "github:NotAShelf/nvf";
inputs = {

View file

@ -203,6 +203,12 @@
githubId = 45952970;
name = "repparw";
};
rwxae = {
email = "wardxela@gmail.com";
github = "rwxae";
githubId = 63157919;
name = "Alexander";
};
skiletro = {
email = "git@skilet.ro";
github = "skiletro";

View file

@ -0,0 +1,69 @@
{
mkTarget,
lib,
options,
...
}:
mkTarget {
config = lib.optionals (options.programs ? noctalia-shell) [
(
{ colors }:
{
programs.noctalia-shell = {
colors = with colors.withHashtag; {
mPrimary = base05;
mOnPrimary = base00;
mSecondary = base05;
mOnSecondary = base00;
mTertiary = base04;
mOnTertiary = base00;
mError = base08;
mOnError = base00;
mSurface = base00;
mOnSurface = base05;
mHover = base04;
mOnHover = base00;
mSurfaceVariant = base01;
mOnSurfaceVariant = base04;
mOutline = base02;
mShadow = base00;
};
};
}
)
(
{ opacity }:
{
programs.noctalia-shell = {
settings = {
bar.backgroundOpacity = opacity.desktop;
bar.capsuleOpacity = opacity.desktop;
ui.panelBackgroundOpacity = opacity.desktop;
dock.backgroundOpacity = opacity.desktop;
osd.backgroundOpacity = opacity.popups;
notifications.backgroundOpacity = opacity.popups;
};
};
}
)
(
{ fonts }:
{
programs.noctalia-shell = {
settings = {
ui.fontDefault = fonts.sansSerif.name;
ui.fontFixed = fonts.monospace.name;
};
};
}
)
(
{ image }:
{
home.file.".cache/noctalia/wallpapers.json" = {
text = builtins.toJSON { defaultWallpaper = image; };
};
}
)
];
}

View file

@ -0,0 +1,6 @@
{ lib, ... }:
{
name = "Noctalia shell";
homepage = "https://docs.noctalia.dev";
maintainers = [ lib.maintainers.rwxae ];
}

View file

@ -0,0 +1,11 @@
{ lib, ... }:
{
stylix.testbed.ui = {
graphicalEnvironment = "hyprland";
command.text = "noctalia-shell --no-duplicate";
};
home-manager.sharedModules = lib.singleton {
programs.noctalia-shell.enable = true;
};
}

View file

@ -65,6 +65,12 @@
github = "osipog";
githubId = 87434959;
};
rwxae = {
email = "wardxela@gmail.com";
name = "Alexander";
github = "rwxae";
githubId = 63157919;
};
skiletro = {
email = "git@skilet.ro";
name = "jamie";

View file

@ -43,6 +43,10 @@ let
;
};
noctalia-shell.home-manager.sharedModules = [
inputs.noctalia-shell.homeModules.default
];
nvf = inputs.nvf.nixosModules.default;
vicinae.home-manager.sharedModules = [