Compare commits

...

3 commits

Author SHA1 Message Date
Laureηt d4397cf836
feat: add packages in devshell 2023-03-19 15:13:24 +01:00
Laureηt a18316278c
feat: add udev rules for adb 2023-03-19 14:27:25 +01:00
Laureηt e331fe0121
feat: switch to devshells 2023-03-19 14:26:56 +01:00
5 changed files with 86 additions and 76 deletions

2
.envrc
View file

@ -1 +1 @@
use nix use flake

View file

@ -3,7 +3,9 @@
"agenix": { "agenix": {
"inputs": { "inputs": {
"agenix": "agenix_2", "agenix": "agenix_2",
"flake-utils": "flake-utils", "flake-utils": [
"flake-utils"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
@ -218,11 +220,11 @@
}, },
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1676283394, "lastModified": 1678901627,
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=", "narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073", "rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -302,11 +304,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1678729503, "lastModified": 1679067095,
"narHash": "sha256-j+h4Bdqbe+qjzhxdhkRmVgSx2lxJ8HnKeYcAhhnd1zM=", "narHash": "sha256-G2dJQURL/CCi+8RP6jNJG8VqgtzEMCA+6mNodd3VR6E=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "24c1a6335e3da6a3ecf82f33ac50c2ad66aee346", "rev": "3239e0b40f242f47bf6c0c37b2fd35ab3e76e370",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -348,11 +350,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1678654296, "lastModified": 1679081381,
"narHash": "sha256-aVfw3ThpY7vkUeF1rFy10NAkpKDS2imj3IakrzT0Occ=", "narHash": "sha256-n4+SbrVohxbgbmOTkodfxc3d8W38OfKowD6YNA8j27o=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5a1dc8acd977ff3dccd1328b7c4a6995429a656b", "rev": "b573a7f69484a7d213680abb70b4f95bdc28eee5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -380,22 +382,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1670507980,
"narHash": "sha256-riNZa0xzM1it3pzxciwALeMs+0CsBMWIW2FqulzK8vM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2787fc7d1e51404678614bf0fe92fc296746eec0",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"poetry2nix": { "poetry2nix": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -443,6 +429,7 @@
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"flake-utils": "flake-utils",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"webcord": "webcord" "webcord": "webcord"
@ -508,7 +495,9 @@
"webcord": { "webcord": {
"inputs": { "inputs": {
"dream2nix": "dream2nix", "dream2nix": "dream2nix",
"nixpkgs": "nixpkgs_2", "nixpkgs": [
"nixpkgs"
],
"webcord": "webcord_2" "webcord": "webcord_2"
}, },
"locked": { "locked": {

View file

@ -3,10 +3,12 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
agenix = { agenix = {
url = "github:yaxitech/ragenix"; url = "github:yaxitech/ragenix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
}; };
home-manager = { home-manager = {
@ -14,10 +16,28 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
webcord.url = "github:fufexan/webcord-flake"; webcord = {
url = "github:fufexan/webcord-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { nixpkgs, agenix, home-manager, webcord, ... }@inputs: { outputs = { nixpkgs, flake-utils, agenix, home-manager, webcord, ... }@inputs:
# Provide colmena
(flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
packages = [
pkgs.colmena
pkgs.nixfmt
pkgs.git
inputs.agenix.packages.${system}.ragenix
];
};
})) // {
# colmena # colmena
colmena = { colmena = {
meta = { meta = {
@ -60,4 +80,5 @@
}; };
}; };
}; };
} }

View file

@ -102,6 +102,9 @@ in {
(nerdfonts.override { fonts = [ "FiraCode" ]; }) (nerdfonts.override { fonts = [ "FiraCode" ]; })
]; ];
# udev
services.udev.packages = [ pkgs.android-udev-rules ];
# audio # audio
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -124,7 +127,7 @@ in {
users.users.laurent = { users.users.laurent = {
isNormalUser = true; isNormalUser = true;
initialPassword = "laurent"; initialPassword = "laurent";
extraGroups = [ "wheel" "video" "docker" ]; extraGroups = [ "wheel" "video" "docker" "adbusers" ];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
home-manager.users.laurent = { home-manager.users.laurent = {

View file

@ -1,3 +0,0 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell { buildInputs = with pkgs; [ colmena nixfmt ]; }