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