added noctalia shell

This commit is contained in:
serenity-F 2025-12-29 02:18:06 +10:00
parent a1dcf6f772
commit e64e07cfd5
2 changed files with 77 additions and 3 deletions

View file

@ -74,7 +74,7 @@
flake-utils = { url = "github:numtide/flake-utils"; };
## Flake parts - https://github.com/hercules-ci/flake-parts
flake-parts = { url = "github:hercules-ci/flake-parts"; };
flake-parts = { url =https://docs.noctalia.dev/getting-started/nixos/ "github:hercules-ci/flake-parts"; };
## Secrets management - https://github.com/Mic92/sops-nix
sops-nix = { url = "github:Mic92/sops-nix"; };
@ -100,6 +100,11 @@
## Easy themeing - https://github.com/Misterio77/nix-colors
nix-colors = { url = "github:misterio77/nix-colors"; };
noctalia = { # cool desktop shell - https://docs.noctalia.dev/getting-started/nixos/
url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs";
};
## Niri window manager -
## https://github.com/YaLTeR/niri
## https://github.com/sodiboo/niri-flake/
@ -130,7 +135,7 @@
};
outputs = { self, nixpkgs, sops-nix, home-manager, musnix, niri, ... }
outputs = { self, nixpkgs, sops-nix, home-manager, musnix, niri, noctalia, ... }
@inputs:
let
@ -158,7 +163,7 @@
hades = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs outputs;
inherit niri;
inherit niri noctalia;
inherit label version;
inherit flakePath disksPath;
inherit primaryUser userDesc homeDir;
@ -166,6 +171,7 @@
};
modules = [
./core/hosts/hades
./home/desktop/noctalia.nix
sops-nix.nixosModules.sops
musnix.nixosModules.musnix
home-manager.nixosModules.home-manager

68
home/desktop/noctalia.nix Normal file
View file

@ -0,0 +1,68 @@
{ pkgs, inputs, ... }:
{
home-manager.users.drfoobar = {
# import the home manager module
imports = [
inputs.noctalia.homeModules.default
];
# configure options
programs.noctalia-shell = {
enable = true;
settings = {
# configure noctalia here
bar = {
density = "compact";
position = "right";
showCapsule = false;
widgets = {
left = [
{
id = "ControlCenter";
useDistroLogo = true;
}
{
id = "WiFi";
}
{
id = "Bluetooth";
}
];
center = [
{
hideUnoccupied = false;
id = "Workspace";
labelMode = "none";
}
];
right = [
{
alwaysShowPercentage = false;
id = "Battery";
warningThreshold = 30;
}
{
formatHorizontal = "HH:mm";
formatVertical = "HH mm";
id = "Clock";
useMonospacedFont = true;
usePrimaryColor = true;
}
];
};
};
colorSchemes.predefinedScheme = "Monochrome";
general = {
avatarImage = "/home/drfoobar/.face";
radiusRatio = 0.2;
};
location = {
monthBeforeDay = true;
name = "Marseille, France";
};
};
# this may also be a string or a path to a JSON file,
# but in this case must include *all* settings.
};
};
}