added noctalia shell
This commit is contained in:
parent
a1dcf6f772
commit
e64e07cfd5
2 changed files with 77 additions and 3 deletions
12
flake.nix
12
flake.nix
|
|
@ -74,7 +74,7 @@
|
||||||
flake-utils = { url = "github:numtide/flake-utils"; };
|
flake-utils = { url = "github:numtide/flake-utils"; };
|
||||||
|
|
||||||
## Flake parts - https://github.com/hercules-ci/flake-parts
|
## 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
|
## Secrets management - https://github.com/Mic92/sops-nix
|
||||||
sops-nix = { url = "github:Mic92/sops-nix"; };
|
sops-nix = { url = "github:Mic92/sops-nix"; };
|
||||||
|
|
@ -100,6 +100,11 @@
|
||||||
## Easy themeing - https://github.com/Misterio77/nix-colors
|
## Easy themeing - https://github.com/Misterio77/nix-colors
|
||||||
nix-colors = { url = "github: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 -
|
## Niri window manager -
|
||||||
## https://github.com/YaLTeR/niri
|
## https://github.com/YaLTeR/niri
|
||||||
## https://github.com/sodiboo/niri-flake/
|
## 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:
|
@inputs:
|
||||||
let
|
let
|
||||||
|
|
@ -158,7 +163,7 @@
|
||||||
hades = nixpkgs.lib.nixosSystem {
|
hades = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
inherit niri;
|
inherit niri noctalia;
|
||||||
inherit label version;
|
inherit label version;
|
||||||
inherit flakePath disksPath;
|
inherit flakePath disksPath;
|
||||||
inherit primaryUser userDesc homeDir;
|
inherit primaryUser userDesc homeDir;
|
||||||
|
|
@ -166,6 +171,7 @@
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./core/hosts/hades
|
./core/hosts/hades
|
||||||
|
./home/desktop/noctalia.nix
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
musnix.nixosModules.musnix
|
musnix.nixosModules.musnix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|
|
||||||
68
home/desktop/noctalia.nix
Normal file
68
home/desktop/noctalia.nix
Normal 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.
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue