Added cosmic
This commit is contained in:
1 parent
8913c706c9
commit
5eebe93f72
6 files changed
+185
-1
No files matched your search
Generated
+145
@@ -33,6 +33,44 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717312683,
|
||||||
|
"narHash": "sha256-FrlieJH50AuvagamEvWMIE6D2OAnERuDboFDYAED/dE=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "38fd3954cf65ce6faf3d0d45cd26059e059f07ea",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nixos-cosmic",
|
||||||
|
"nix-update",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1719994518,
|
||||||
|
"narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
@@ -297,6 +335,53 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-update": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixos-cosmic",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726334963,
|
||||||
|
"narHash": "sha256-L8ICz9iELkvQl/ufdSWy9lRm8DLNpKDFxoeHQfPu4E8=",
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "nix-update",
|
||||||
|
"rev": "84d7535d076c5e06fba272738448c80698eb3d40",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "nix-update",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixos-cosmic": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"nix-update": "nix-update",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
|
"rust-overlay": "rust-overlay"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726412209,
|
||||||
|
"narHash": "sha256-QgwbKp6e6oHidv3BMPdLdw+t7PHUaR9VNpkDny53a7I=",
|
||||||
|
"owner": "lilyinstarlight",
|
||||||
|
"repo": "nixos-cosmic",
|
||||||
|
"rev": "c893f7113553b8dcc27f398deb285e3ada568577",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lilyinstarlight",
|
||||||
|
"repo": "nixos-cosmic",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1725477728,
|
"lastModified": 1725477728,
|
||||||
@@ -329,6 +414,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726062281,
|
||||||
|
"narHash": "sha256-PyFVySdGj3enKqm8RQuo4v1KLJLmNLOq2yYOHsI6e2Q=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "e65aa8301ba4f0ab8cb98f944c14aa9da07394f8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1725407940,
|
"lastModified": 1725407940,
|
||||||
@@ -352,6 +453,7 @@
|
|||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprspace": "hyprspace",
|
"hyprspace": "hyprspace",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
|
"nixos-cosmic": "nixos-cosmic",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"systems": "systems_2",
|
"systems": "systems_2",
|
||||||
@@ -359,6 +461,27 @@
|
|||||||
"unstable-home-manager": "unstable-home-manager"
|
"unstable-home-manager": "unstable-home-manager"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rust-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixos-cosmic",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726280639,
|
||||||
|
"narHash": "sha256-YfLRPlFZWrT2oRLNAoqf7G3+NnUTDdlIJk6tmBU7kXM=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "e9f8641c92f26fd1e076e705edb12147c384171d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
@@ -389,6 +512,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixos-cosmic",
|
||||||
|
"nix-update",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1719887753,
|
||||||
|
"narHash": "sha256-p0B2r98UtZzRDM5miGRafL4h7TwGRC4DII+XXHDHqek=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "bdb6355009562d8f9313d9460c0d3860f525bc6c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1725638002,
|
"lastModified": 1725638002,
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
# Nixpkgs
|
# Nixpkgs
|
||||||
unstable.url = "github:NixOS/nixpkgs/master";
|
unstable.url = "github:NixOS/nixpkgs/master";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||||
|
# Cosmic
|
||||||
|
nixos-cosmic = {
|
||||||
|
url = "github:lilyinstarlight/nixos-cosmic";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
# Hyprland
|
# Hyprland
|
||||||
hyprland = {
|
hyprland = {
|
||||||
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
@@ -45,6 +50,7 @@
|
|||||||
, gBar
|
, gBar
|
||||||
, hyprland
|
, hyprland
|
||||||
, hyprspace
|
, hyprspace
|
||||||
|
, nixos-cosmic
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
user = {
|
user = {
|
||||||
@@ -94,6 +100,7 @@
|
|||||||
nix-darwin
|
nix-darwin
|
||||||
hlCommonSettings
|
hlCommonSettings
|
||||||
systems
|
systems
|
||||||
|
nixos-cosmic
|
||||||
;
|
;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|||||||
+6
-1
@@ -15,13 +15,14 @@ in
|
|||||||
skyg.nixos.desktop = {
|
skyg.nixos.desktop = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
kde.enabled = true;
|
kde.enabled = true;
|
||||||
|
cosmic.enabled = true;
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
useNWG = false;
|
useNWG = false;
|
||||||
};
|
};
|
||||||
crypto.enabled = true;
|
crypto.enabled = true;
|
||||||
};
|
};
|
||||||
services.displayManager.defaultSession = "hyprland";
|
services.displayManager.defaultSession = "plasma";
|
||||||
skyg.nixos.common.hardware.sound.enable = true;
|
skyg.nixos.common.hardware.sound.enable = true;
|
||||||
# Firmware updater
|
# Firmware updater
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
@@ -65,8 +66,12 @@ in
|
|||||||
dvc-with-remotes
|
dvc-with-remotes
|
||||||
google-cloud-sdk
|
google-cloud-sdk
|
||||||
awscli
|
awscli
|
||||||
|
dbeaver-bin
|
||||||
# Web
|
# Web
|
||||||
chromium
|
chromium
|
||||||
|
# Photo Editing
|
||||||
|
krita
|
||||||
|
gimp-with-plugins
|
||||||
];
|
];
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
, nix-darwin
|
, nix-darwin
|
||||||
, systems
|
, systems
|
||||||
, hlCommonSettings
|
, hlCommonSettings
|
||||||
|
, nixos-cosmic
|
||||||
, specialArgs
|
, specialArgs
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -32,6 +33,13 @@ let
|
|||||||
modules = (makeImports {
|
modules = (makeImports {
|
||||||
attrs = joinedttrs;
|
attrs = joinedttrs;
|
||||||
extraConfiguration = [
|
extraConfiguration = [
|
||||||
|
{
|
||||||
|
nix.settings = {
|
||||||
|
substituters = [ "https://cosmic.cachix.org/" ];
|
||||||
|
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
nixos-cosmic.nixosModules.default
|
||||||
home-manager.nixosModules.default
|
home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.cosmic.kde;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.nixos.desktop.cosmic = {
|
||||||
|
enabled = mkEnableOption
|
||||||
|
"Cosmic";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enabled {
|
||||||
|
services.desktopManager.cosmic.enable = true;
|
||||||
|
services.displayManager.cosmic-greeter.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,6 +8,7 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
./hyprland
|
./hyprland
|
||||||
./kde.nix
|
./kde.nix
|
||||||
|
./cosmic.nix
|
||||||
./wayland.nix
|
./wayland.nix
|
||||||
./x11.nix
|
./x11.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
|||||||
Reference in new issue
Block a user