add dev shell

This commit is contained in:
Patrick Neff 2024-03-10 12:27:44 +01:00
parent c7a0c297cd
commit b1b38cef35
2 changed files with 38 additions and 17 deletions

View File

@ -496,11 +496,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1709988192, "lastModified": 1710062421,
"narHash": "sha256-qxwIkl85P0I1/EyTT+NJwzbXdOv86vgZxcv4UKicjK8=", "narHash": "sha256-FiCNRfyUgJOLYIokLiFsfI7B+Zn9HDnOzFR3uVr5qsQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b0b0c3d94345050a7f86d1ebc6c56eea4389d030", "rev": "36f873dfc8e2b6b89936ff3e2b74803d50447e0a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -521,11 +521,11 @@
"nur": "nur" "nur": "nur"
}, },
"locked": { "locked": {
"lastModified": 1709999282, "lastModified": 1710069451,
"narHash": "sha256-8tcRPSMPJUc4gQaZS0X7YROMUTqXPt8nlqEV8fFwUeQ=", "narHash": "sha256-r9ZQji6W+N4Q2i074mGa/YTP0QeZkw5z5kmZGgMa6Xk=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "6d85a0a4f3da81c13b71add48927c4abecffd675", "rev": "cc46761cf2ea99d394b72838d9e3ac0d1df8b551",
"revCount": 11, "revCount": 14,
"type": "git", "type": "git",
"url": "ssh://gitea@pi1.odie.intranet/odie/home-manager-flake.git" "url": "ssh://gitea@pi1.odie.intranet/odie/home-manager-flake.git"
}, },
@ -816,11 +816,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1709479366, "lastModified": 1709703039,
"narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=", "narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b8697e57f10292a6165a20f03d2f42920dfaf973", "rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -896,16 +896,16 @@
}, },
"nixpkgs_13": { "nixpkgs_13": {
"locked": { "locked": {
"lastModified": 1709703039, "lastModified": 1710021367,
"narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=", "narHash": "sha256-FuMVdWqXMT38u1lcySYyv93A7B8wU0EGzUr4t4jQu8g=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d", "rev": "b94a96839afcc56de3551aa7472b8d9a3e77e05d",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-unstable", "ref": "nixos-23.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@ -2,12 +2,14 @@
description = "A very basic flake"; description = "A very basic flake";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nixos-wsl.url = "github:nix-community/NixOS-WSL";
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
home-manager-flake.url = "git+ssh://gitea@pi1.odie.intranet/odie/home-manager-flake.git"; home-manager-flake.url = "git+ssh://gitea@pi1.odie.intranet/odie/home-manager-flake.git";
neovim-flake.url = "git+ssh://gitea@pi1.odie.intranet/odie/neovim-flake.git"; neovim-flake.url = "git+ssh://gitea@pi1.odie.intranet/odie/neovim-flake.git";
nixos-wsl.url = "github:nix-community/NixOS-WSL";
}; };
outputs = inputs@{ self, nixpkgs, flake-utils, nixos-wsl, home-manager, ... }: outputs = inputs@{ self, nixpkgs, flake-utils, nixos-wsl, home-manager, ... }:
@ -35,8 +37,27 @@
]; ];
}; };
}; };
overlays = [];
mkPkgs = system:
import nixpkgs {
inherit system overlays;
config.allowUnfree = true;
};
in in
{ {
nixosConfigurations = mkSystem "x86_64-linux" "wsl-dev" // { }; nixosConfigurations = mkSystem "x86_64-linux" "wsl-dev" // { };
}; }
// flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = mkPkgs system;
in
{
formatter = pkgs.alejandra;
devShells = {
default = pkgs.mkShell {
name = "nixos";
};
};
});
} }