Compare commits

..

No commits in common. "267b0e1f2881be36dff91cb4ffaf15c2438a8b9e" and "7982f051221eb39f2c4bdcf1c7f4d0a36ee61e03" have entirely different histories.

15 changed files with 52 additions and 277 deletions

17
flake.lock generated
View file

@ -396,6 +396,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-stable": {
"locked": {
"lastModified": 1728909085,
"narHash": "sha256-WLxED18lodtQiayIPDE5zwAfkPJSjHJ35UhZ8h3cJUg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c0b1da36f7c34a7146501f684e9ebdf15d2bebf8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1725194671, "lastModified": 1725194671,
@ -468,6 +484,7 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable",
"nixvim": "nixvim", "nixvim": "nixvim",
"stylix": "stylix", "stylix": "stylix",
"zen": "zen" "zen": "zen"

View file

@ -4,6 +4,7 @@
inputs = { inputs = {
# NixOS official package source, using the nixos-23.11 branch here # NixOS official package source, using the nixos-23.11 branch here
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware"; nixos-hardware.url = "github:nixos/nixos-hardware";
@ -39,9 +40,11 @@
}; };
outputs = { nixpkgs, ... }@attrs: outputs = { nixpkgs, nixpkgs-stable, ... }@attrs:
let let
lib = nixpkgs.lib; lib = nixpkgs.lib;
pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };
pkgs-stable = import nixpkgs-stable { system = "x86_64-linux"; config = { allowUnfree = true; }; };
in in
{ {
nixosConfigurations = { nixosConfigurations = {
@ -54,6 +57,8 @@
specialArgs = { specialArgs = {
hostname = "Lenni"; hostname = "Lenni";
type = "desktop"; type = "desktop";
inherit pkgs;
inherit pkgs-stable;
inherit attrs; inherit attrs;
inherit system; inherit system;
}; };
@ -82,6 +87,8 @@
specialArgs = { specialArgs = {
hostname = "Puenktchen"; hostname = "Puenktchen";
type = "desktop"; type = "desktop";
inherit pkgs;
inherit pkgs-stable;
inherit attrs; inherit attrs;
inherit system; inherit system;
}; };
@ -113,6 +120,8 @@
specialArgs = { specialArgs = {
hostname = "Anton"; hostname = "Anton";
type = "server"; type = "server";
inherit pkgs;
inherit pkgs-stable;
inherit attrs; inherit attrs;
inherit system; inherit system;
}; };
@ -135,33 +144,6 @@
}; };
Lillie = let
system = "x86_64-linux";
in
lib.nixosSystem {
specialArgs = {
hostname = "Lillie";
type = "desktop";
inherit attrs;
inherit system;
};
modules = [
attrs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
attrs.disko.nixosModules.disko
attrs.stylix.nixosModules.stylix
attrs.nixvim.nixosModules.nixvim
./hosts
./users/willifan
];
};
}; };
}; };
} }

View file

@ -1,7 +0,0 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
./disko.nix
];
}

View file

@ -1,56 +0,0 @@
{
disko.devices = {
disk = {
nvme0n1 = {
type = "disk";
device = "/dev/disk/by-id/nvme-CT1000P310SSD2-24314A4587C7";
content = {
type = "gpt";
partitions = {
ESP = {
priority = 1;
name = "ESP";
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition
# Subvolumes must set a mountpoint in order to be mounted,
# unless their parent is mounted
subvolumes = {
# Subvolume name is different from mountpoint
"/rootfs" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/";
};
# Subvolume name is the same as the mountpoint
"/home" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/home";
};
# Parent is not mounted so the mountpoint must be set
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/nix";
};
"/mnt/data" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/mnt/data";
};
};
};
};
};
};
};
};
};
}

View file

@ -14,6 +14,5 @@
}; };
console.keyMap = "de"; console.keyMap = "de";
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View file

@ -1,4 +0,0 @@
{ ... }:
{
}

View file

@ -4,7 +4,6 @@
./nixvim ./nixvim
./shell ./shell
./theme ./theme
./tmux
./utils ./utils
./envvar.nix ./envvar.nix

View file

@ -1,7 +1,13 @@
# Settings
add line numbers
change default tab width
KEYBINDS
# Plugins # Plugins
add cmp add cmp
try out nvimtree try out nvimtree
add lualine add lualine
make ToggleTerm not terrible
add autopairs add autopairs
indent blankline?? indent blankline??
todo comments todo comments

View file

@ -1,9 +0,0 @@
{ ... }:
{
programs.nixvim.plugins.nvim-autopairs = {
enable = true;
settings = {
disable_filetype = ["TelescopePrompt" "vim"];
};
};
}

View file

@ -1,50 +0,0 @@
{ ... }:
{
programs.nixvim.plugins = {
cmp = {
enable = true;
settings = {
autoEnableSources = true;
experimental = {ghost_text = false;};
performance = {
debounce = 60;
fetchingTimeout = 200;
maxViewEntries = 30;
};
snippet = {expand = "luasnip";};
formatting = {fields = ["kind" "abbr" "menu"];};
sources = [
{name = "git";}
{name = "nvim_lsp";}
{name = "emoji";}
{
name = "buffer"; # text within current buffer
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
keywordLength = 3;
}
{name = "copilot";}
{
name = "path"; # file system paths
keywordLength = 3;
}
{
name = "luasnip"; # snippets
keywordLength = 3;
}
];
window = {
completion = {border = "solid";};
documentation = {border = "solid";};
};
};
};
cmp-nvim-lsp = {enable = true;}; # lsp
cmp-buffer = {enable = true;};
cmp-path = {enable = true;}; # file system paths
cmp_luasnip = {enable = true;}; # snippets
cmp-cmdline = {enable = false;}; # autocomplete for cmdline
};
}

View file

@ -7,15 +7,13 @@
}; };
imports = [ imports = [
./autopairs.nix
./cmp.nix
./filetype.nix ./filetype.nix
./gitsigns.nix ./gitsigns.nix
./illuminate.nix ./illuminate.nix
./lsp.nix ./lsp.nix
./navic.nix ./navic.nix
./neotree.nix ./neotree.nix
./settings.nix ./toggleterm.nix
./treesitter.nix ./treesitter.nix
./whichkey.nix ./whichkey.nix
./yazi.nix ./yazi.nix

View file

@ -1,101 +0,0 @@
{ ... }:
{
programs.nixvim = {
config = {
extraConfigLuaPre =
# lua
''
vim.fn.sign_define("diagnosticsignerror", { text = " ", texthl = "diagnosticerror", linehl = "", numhl = "" })
vim.fn.sign_define("diagnosticsignwarn", { text = " ", texthl = "diagnosticwarn", linehl = "", numhl = "" })
vim.fn.sign_define("diagnosticsignhint", { text = "󰌵", texthl = "diagnostichint", linehl = "", numhl = "" })
vim.fn.sign_define("diagnosticsigninfo", { text = " ", texthl = "diagnosticinfo", linehl = "", numhl = "" })
'';
clipboard = {
providers.wl-copy.enable = true;
};
opts = {
# Show line numbers
number = true;
# Show relative line numbers
relativenumber = true;
# Use the system clipboard
clipboard = "unnamedplus";
# Number of spaces that represent a <TAB>
tabstop = 2;
softtabstop = 2;
# Show tabline always
showtabline = 2;
# Use spaces instead of tabs
expandtab = true;
# Enable smart indentation
smartindent = true;
# Number of spaces to use for each step of (auto)indent
shiftwidth = 2;
# Enable break indent
breakindent = true;
# Highlight the screen line of the cursor
cursorline = true;
# Minimum number of screen lines to keep above and below the cursor
scrolloff = 8;
# Enable mouse support
mouse = "a";
# Set folding method to manual
foldmethod = "manual";
# Disable folding by default
foldenable = false;
# Wrap long lines at a character in 'breakat'
linebreak = true;
# Disable spell checking
spell = false;
# Disable swap file creation
swapfile = false;
# Time in milliseconds to wait for a mapped sequence to complete
timeoutlen = 300;
# Enable 24-bit RGB color in the TUI
termguicolors = true;
# Don't show mode in the command line
showmode = false;
# Open new split below the current window
splitbelow = true;
# Keep the screen when splitting
splitkeep = "screen";
# Open new split to the right of the current window
splitright = true;
# Hide command line unless needed
cmdheight = 0;
# Remove EOB
fillchars = {
eob = " ";
};
};
};
};
}

View file

@ -0,0 +1,11 @@
{ ... }:
{
programs.nixvim.plugins = {
toggleterm = {
enable = true;
settings = {
size = 10;
};
};
};
}

View file

@ -1,10 +0,0 @@
{ ... }:
{
home-manager.users.willifan = {
programs.tmux = {
enable = true;
};
};
}

View file

@ -163,10 +163,10 @@
''$mainMod, F, fullscreen'' ''$mainMod, F, fullscreen''
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
''$mainMod, h, movefocus, l'' ''$mainMod, left, movefocus, l''
''$mainMod, l, movefocus, r'' ''$mainMod, right, movefocus, r''
''$mainMod, k, movefocus, u'' ''$mainMod, up, movefocus, u''
''$mainMod, j, movefocus, d'' ''$mainMod, down, movefocus, d''
'', XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'' '', XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle''
'', XF86AudioPrev, exec, playerctl previous'' '', XF86AudioPrev, exec, playerctl previous''