Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelreyrol committed Aug 13, 2023
1 parent 4872999 commit 412d42c
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 8 deletions.
Binary file added .flake.nix.swp
Binary file not shown.
139 changes: 132 additions & 7 deletions flake.lock

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

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
sbomnix.url = "github:tiiuae/sbomnix";
sbomnix.inputs.nixpkgs.follows = "unstable";

nixvim.url = "github:nix-community/nixvim/nixos-23.05";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
nixvim.inputs.pre-commit-hooks.follows = "pre-commit-hooks";

udev-nix.url = "github:gaelreyrol/udev-nix";
udev-nix.inputs.nixpkgs.follows = "nixpkgs";
udev-nix.inputs.unstable.follows = "unstable";
Expand Down
3 changes: 2 additions & 1 deletion lib/os/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ inputs, ... }:

let
inherit (inputs) self nixpkgs sops-nix nur home-manager udev-nix mention;
inherit (inputs) self nixpkgs sops-nix nur home-manager nixvim udev-nix mention;
in
rec {
mkNixosSystem = { system, host, user, ... }: nixpkgs.lib.nixosSystem {
Expand Down Expand Up @@ -55,6 +55,7 @@ rec {
sops-nix.nixosModules.sops

home-manager.nixosModules.home-manager
nixvim.nixosModules.nixvim
nur.nixosModules.nur
mention.nixosModules.default
{
Expand Down
11 changes: 11 additions & 0 deletions users/gael/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,15 @@
# services.udev.extraRules = ''
# ACTION=="remove", SUBSYSTEM=="input", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0114|0116|0401|0403|0405|0407|0410", ENV{ID_SECURITY_TOKEN}="1", RUN+="${pkgs.systemd}/bin/systemctl start xlock.service"
# '';


programs.nixvim = {
enable = true;
extraPlugins = with pkgs.vimPlugins; [
vim-nix
solarized-nvim
];

colorscheme = "solarized";
};
}

0 comments on commit 412d42c

Please sign in to comment.