fixed skyg command + added cosmic icons

This commit is contained in:
ari committed 2024-10-27 21:51:55 -04:00
1 parent 0e9442d116
commit c7e04cd568
2 files changed
+18 -12

No files matched your search

+14 -11
View File
@@ -45,10 +45,10 @@ function run-switch() {
exit 1
fi
fi
sudo nixos-rebuild switch --flake .
unlock
}
function run-rollback() {
@@ -60,11 +60,14 @@ function run-rollback() {
function run-update() {
: Updates a single flake and runs update
: Usage: skyg update {name-of-input}
echo "updating ${1}"
cmd="nix flake lock --update-input ${1}"
echo $cmd
$cmd
run-update
input_name=${1}
if [ ! -z $input_name ]; then
cmd="nix flake lock --update-input $input_name"
else
cmd="nix flake update"
fi
echo $cmd
$cmd
}
function run-diff() {
@@ -94,16 +97,16 @@ function run-build-all() {
: Builds all remote and local configurations
: Usage: skyg build-all
mkdir -p results
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building current $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result
mv result results/$i-result
done
nix flake update
rm -f diffs
mkdir diffs
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
@@ -113,7 +116,7 @@ function run-build-all() {
mv result results/$i-result-post
nvd diff results/$i-result results/$i-result-post > diffs/$i
done
}
+4 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.nixos.desktop.cosmic;
in
@@ -10,6 +10,9 @@ in
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [
pkgs.cosmic-icons
];
services.desktopManager.cosmic.enable = true;
# services.displayManager.cosmic-greeter.enable = true;
};