Skip to content

Commit

Permalink
Add cosmic DE
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Sep 22, 2024
1 parent a5cd009 commit 01dca83
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 39 deletions.
181 changes: 163 additions & 18 deletions flake.lock

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

23 changes: 6 additions & 17 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
# DEs
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs.follows = "nixpkgs-unstable";
# inputs.nixpkgs.follows = "nixpkgs";
};
plasma-manager = {
url = "github:nix-community/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down Expand Up @@ -80,23 +86,6 @@
# image = "anime/jjk/satoru-gojo-jujutsu-kaisen-5k-ac.jpg";
# image = "anime/gruvbox/skull2.png";
image = "anime/gruvbox/boonies.png";
# secure-boot = [
# lanzaboote.nixosModules.lanzaboote
# ({
# pkgs,
# lib,
# ...
# }: {
# environment.systemPackages = [pkgs.sbctl];
# boot = {
# loader.systemd-boot.enable = lib.mkForce false;
# lanzaboote = {
# enable = true;
# pkiBundle = "/etc/secureboot";
# };
# };
# })
# ];
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
Expand Down
6 changes: 2 additions & 4 deletions hosts/yhwach/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
config,
...
}: {
# imports = [
# ../../modules/nixos
# ];

# Set hostname
networking.hostName = lib.mkForce "yhwach"; # Define your hostname.

Expand All @@ -20,6 +16,8 @@
# Set system time
time.hardwareClockInLocalTime = true;

cosmic.enable = true;

# Eanble fingerprint for framework laptop
# fingerprint.enable = true;

Expand Down
21 changes: 21 additions & 0 deletions modules/nixos/desktop/cosmic.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
inputs,
lib,
config,
...
}: {
imports = [
inputs.nixos-cosmic.nixosModules.default
];

options.cosmic.enable = lib.mkEnableOption "Enable System76 DE: Cosmic (Alpha)";

config = lib.mkIf config.cosmic.enable {
nix.settings = {
substituters = ["https://cosmic.cachix.org/"];
trusted-public-keys = ["cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="];
};

services.desktopManager.cosmic.enable = true;
};
}
2 changes: 2 additions & 0 deletions modules/nixos/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
...
}: {
imports = [
./cosmic.nix
./gnome.nix
./hyprland.nix
./kde.nix
Expand All @@ -21,6 +22,7 @@
# sway.enable = lib.mkForce false;
# hyprland.enable = lib.mkForce false;

cosmic.enable = lib.mkDefault false;
gnome.enable = lib.mkDefault true;
kde.enable = lib.mkDefault false;
sway.enable = lib.mkDefault true;
Expand Down

0 comments on commit 01dca83

Please sign in to comment.