Format all files

This commit is contained in:
2025-07-07 19:11:26 +02:00
parent 80ed32f741
commit a459b74dbe
12 changed files with 134 additions and 105 deletions
+6 -3
View File
@@ -17,13 +17,15 @@
nixvim.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
outputs =
{
self,
nixpkgs,
home-manager,
nixvim,
...
} @ inputs: let
}@inputs:
let
inherit (self) outputs;
# Supported systems for your flake packages, shell, etc.
systems = [
@@ -32,7 +34,8 @@
# This is a function that generates an attribute by calling a function you
# pass to it, with each system as an argument
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
in
{
# Your custom packages
# Accessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
+6 -7
View File
@@ -1,12 +1,11 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{ inputs
, outputs
, lib
, config
, pkgs
, ...
}: {
{
inputs,
outputs,
...
}:
{
# You can import other home-manager modules here
imports = [
outputs.homeManagerModules
+2 -1
View File
@@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
home.packages = with pkgs; [
fishPlugins.tide
];
+2 -1
View File
@@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
home.packages = with pkgs; [
git-credential-manager
];
+9 -3
View File
@@ -1,6 +1,10 @@
{
programs.nixvim = {
opts.completeopt = ["menu" "menuone" "noselect"];
opts.completeopt = [
"menu"
"menuone"
"noselect"
];
plugins = {
luasnip.enable = true;
@@ -42,12 +46,14 @@
"<C-y>" = "cmp.mapping.confirm({ select = true })";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<C-Space>" = "cmp.mapping.complete()";
"<C-l>" = ''cmp.mapping(function()
"<C-l>" = ''
cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, {'i', 's'})'';
"<C-h>" = ''cmp.mapping(function()
"<C-h>" = ''
cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
@@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
imports = [
./cmp.nix
./lsp.nix
@@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
programs.nixvim = {
plugins.treesitter = {
enable = true;
+2 -1
View File
@@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
programs.fish.enable = true;
users.defaultUserShell = pkgs.fish;
}
+6 -3
View File
@@ -7,7 +7,8 @@
config,
pkgs,
...
}: {
}:
{
imports = [
./hardware-configuration.nix
outputs.nixosModules
@@ -24,9 +25,11 @@
};
};
nix = let
nix =
let
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
in {
in
{
settings = {
# Enable flakes and new 'nix' command
experimental-features = "nix-command flakes";
+19 -7
View File
@@ -1,22 +1,34 @@
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ ];
boot.initrd.availableKernelModules = [ "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules = [
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0eb29109-abd1-49af-859a-1c5009e2482f";
fileSystems."/" = {
device = "/dev/disk/by-uuid/0eb29109-abd1-49af-859a-1c5009e2482f";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/EE00-3849";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/EE00-3849";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ ];
+2 -1
View File
@@ -1,5 +1,6 @@
# This file defines overlays
{inputs, ...}: {
{ inputs, ... }:
{
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ../pkgs final.pkgs;