summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2024-03-03 14:46:45 +0000
committerGitHub <noreply@github.com>2024-03-03 14:46:45 +0000
commit5c9694b0df330ed63cf5fa65393759505da667a4 (patch)
treedb37e7c1e66ccb4d13dfa83f00dfd7aec8f3b16d
parentba07ecfded5c2ab3c7b7acd8cd432ea337d64e6c (diff)
add dev shell
-rw-r--r--apps/firefox.nix (renamed from firefox.nix)0
-rw-r--r--apps/powermenu.nix (renamed from powermenu.nix)0
-rw-r--r--configuration.nix2
-rw-r--r--flake.nix15
-rw-r--r--home.nix2
-rw-r--r--shells/rust.nix13
6 files changed, 22 insertions, 10 deletions
diff --git a/firefox.nix b/apps/firefox.nix
index 6a974c0..6a974c0 100644
--- a/firefox.nix
+++ b/apps/firefox.nix
diff --git a/powermenu.nix b/apps/powermenu.nix
index c1763bc..c1763bc 100644
--- a/powermenu.nix
+++ b/apps/powermenu.nix
diff --git a/configuration.nix b/configuration.nix
index 477ea47..f1099e0 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -110,7 +110,7 @@
rev = "9e533dcb56f3d34a85b5ba7f279c2870ebcc4034";
};
})
- (callPackage ./powermenu.nix {})
+ (callPackage ./apps/powermenu.nix {})
networkmanager_dmenu
sxiv
xwallpaper
diff --git a/flake.nix b/flake.nix
index cd1d812..4b9885a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -16,14 +16,13 @@
pkgs = nixpkgs.legacyPackages.${system};
in
{
-
nixosConfigurations.ozpv = nixpkgs.lib.nixosSystem {
- specialArgs = {inherit inputs;};
- modules = [
- ./configuration.nix
- inputs.home-manager.nixosModules.default
- ];
- };
-
+ specialArgs = {inherit inputs;};
+ modules = [
+ ./configuration.nix
+ inputs.home-manager.nixosModules.default
+ ];
+ };
+ devShells.x86_64-linux.default = (import ./shells/rust.nix {inherit pkgs; });
};
}
diff --git a/home.nix b/home.nix
index d5f6b87..20b94d2 100644
--- a/home.nix
+++ b/home.nix
@@ -1,7 +1,7 @@
{ config, pkgs, libs, ... }:
{
- imports = [ ./firefox.nix ];
+ imports = [ ./apps/firefox.nix ];
gtk.enable = true;
diff --git a/shells/rust.nix b/shells/rust.nix
new file mode 100644
index 0000000..f715813
--- /dev/null
+++ b/shells/rust.nix
@@ -0,0 +1,13 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+pkgs.mkShell {
+ nativeBuildInputs = with pkgs; [
+ clang
+ llvmPackages.bintools
+ rustup
+ rustfmt
+ trunk
+ rustc-wasm32
+ dioxus-cli
+ ];
+}