Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from crystal-linux/development
Browse files Browse the repository at this point in the history
Merge development into main
  • Loading branch information
axtloss authored Aug 15, 2022
2 parents d895294 + 8b7eac7 commit d10edac
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 3 deletions.
75 changes: 75 additions & 0 deletions flake.lock

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

47 changes: 47 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
};

outputs = { self, nixpkgs, utils, naersk }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
naersk-lib = naersk.lib."${system}";
in rec
{
packages.amethyst = naersk-lib.buildPackage {
pname = "ame";
root = ./.;
nativeBuildInputs = with pkgs; [
openssl
sqlite
pkg-config
];
};

packages.default = packages.amethyst;

apps.amethyst = utils.lib.mkApp {
drv = packages.amethyst;
};

apps.default = apps.amethyst;

devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rustc
cargo
rustfmt
cargo-audit
clippy
openssl
sqlite
pkg-config
];
};
});
}

6 changes: 3 additions & 3 deletions src/internal/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ pub fn read_config(configpath: PathBuf) {
/*if let Some(desktop) = &config.desktop {
desktops::install_desktop_setup(*desktop);
}*/
match config.desktop.as_str() {
match config.desktop.to_lowercase().as_str() {
// "onyx" => desktops::install_desktop_setup(DesktopSetup::Onyx),
"plasma" => desktops::install_desktop_setup(DesktopSetup::Kde),
"kde" => desktops::install_desktop_setup(DesktopSetup::Kde),
"mate" => desktops::install_desktop_setup(DesktopSetup::Mate),
"gnome" => desktops::install_desktop_setup(DesktopSetup::Gnome),
"cinnamon" => desktops::install_desktop_setup(DesktopSetup::Cinnamon),
Expand All @@ -172,7 +172,7 @@ pub fn read_config(configpath: PathBuf) {
"herbstluftwm" => desktops::install_desktop_setup(DesktopSetup::Herbstluftwm),
"awesome" => desktops::install_desktop_setup(DesktopSetup::Awesome),
"bspwm" => desktops::install_desktop_setup(DesktopSetup::Bspwm),
"None/DIY" => desktops::install_desktop_setup(DesktopSetup::None),
"none/diy" => desktops::install_desktop_setup(DesktopSetup::None),
_ => log::info!("No desktop setup selected!"),
}
println!();
Expand Down

0 comments on commit d10edac

Please sign in to comment.