cosmic config

This commit is contained in:
RingOfStorms (Joshua Bell) 2024-10-10 17:22:45 -05:00
parent e5ade464b9
commit 85813eadcd
11 changed files with 77 additions and 39 deletions

View file

@ -136,15 +136,14 @@
in
(lib.nixosSystem {
modules =
[ cosmic.nixosModules.default ]
[
cosmic.nixosModules.default
settings.home-manager.nixosModules.home-manager
]
++ ylib.umport {
path = lib.fileset.maybeMissing ./modules;
recursive = true;
}
++ ylib.umport {
path = lib.fileset.maybeMissing ./modules_post;
recursive = true;
}
++ [
./hosts/configuration.nix
];

View file

@ -1,34 +0,0 @@
{
cosmic,
config,
lib,
pkgs,
settings,
...
}:
with lib;
let
name = "de_cosmic";
cfg = config.mods.${name};
in
{
options = {
mods.${name} = {
enable = mkEnableOption (lib.mdDoc "Enable COSMIC desktop environment");
};
};
config = mkIf cfg.enable {
# Use cosmic binary cache
nix.settings = {
substituters = [ "https://cosmic.cachix.org/" ];
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
# Enable cosmic
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
environment.cosmic.excludePackages = with pkgs; [ cosmic-edit cosmic-term cosmic-store ];
};
}

View file

@ -0,0 +1,9 @@
(
output: "all",
source: Color(Single((0.0, 0.0, 0.0))),
filter_by_theme: false,
rotation_frequency: 900,
filter_method: Lanczos,
scaling_mode: Zoom,
sampling_method: Alphanumeric,
)

View file

@ -0,0 +1 @@
false

View file

@ -0,0 +1,3 @@
[
Single((0.0, 0.0, 0.0)),
]

View file

@ -0,0 +1 @@
Compact

View file

@ -0,0 +1 @@
Compact

View file

@ -0,0 +1,55 @@
{
config,
lib,
pkgs,
settings,
...
}:
with lib;
let
name = "de_cosmic";
cfg = config.mods.${name};
cosmicConfigDir = ./config;
cosmicFiles = builtins.attrNames (builtins.readDir cosmicConfigDir);
cosmicConfigFiles = map (fileName: {
name = "cosmic/${fileName}";
value = {
source = "${cosmicConfigDir}/${fileName}";
# enable = true;
};
}) cosmicFiles;
cosmicConfigFilesAttrs = builtins.listToAttrs cosmicConfigFiles;
in
{
options = {
mods.${name} = {
enable = mkEnableOption (lib.mdDoc "Enable COSMIC desktop environment");
};
};
config = mkIf cfg.enable {
# Use cosmic binary cache
nix.settings = {
substituters = [ "https://cosmic.cachix.org/" ];
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
# Enable cosmic
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
environment.cosmic.excludePackages = with pkgs; [
cosmic-edit
cosmic-term
cosmic-store
];
# Config
home-manager.backupFileExtension = "bak";
home-manager.users.${settings.user.username} = {
xdg.configFile = cosmicConfigFilesAttrs;
};
};
}