Switch to nixpkgs-unstable; minor config stuff

This commit is contained in:
xqtc161 2024-02-11 02:01:29 +01:00
parent b6fad0b332
commit 8ba879c72b
5 changed files with 203 additions and 139 deletions

View file

@ -1,26 +1,24 @@
{ {
"nodes": { "nodes": {
"beautysh": { "firefox-addons": {
"inputs": { "inputs": {
"nixpkgs": [ "flake-utils": "flake-utils",
"nixvim", "nixpkgs": "nixpkgs"
"nixpkgs"
],
"poetry2nix": "poetry2nix",
"utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1680308980, "dir": "pkgs/firefox-addons",
"narHash": "sha256-aUEHV0jk2qIFP3jlsWYWhBbm+w/N9gzH3e4I5DcdB5s=", "lastModified": 1707602717,
"owner": "lovesegfault", "narHash": "sha256-mLEziZaYS1G9Q2l7L1/HU+PyScfBGwgh1R4Mov7x5iY=",
"repo": "beautysh", "owner": "rycee",
"rev": "9845efc3ea3e86cc0d41465d720a47f521b2799c", "repo": "nur-expressions",
"type": "github" "rev": "8e23ca5dcbcd202ceb790598b38a68d7d292ef38",
"type": "gitlab"
}, },
"original": { "original": {
"owner": "lovesegfault", "dir": "pkgs/firefox-addons",
"repo": "beautysh", "owner": "rycee",
"type": "github" "repo": "nur-expressions",
"type": "gitlab"
} }
}, },
"flake-compat": { "flake-compat": {
@ -39,7 +37,43 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1706830856,
"narHash": "sha256-a0NYyp+h9hlb7ddVz4LUn1vT/PLwqfrWYcHMvFB1xYg=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "b253292d9c0a5ead9bc98c4e9a26c6312e27d69f",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"locked": {
"lastModified": 1629284811,
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c5d161cc0af116a2e17f54316f0bf43f0819785c",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
}, },
@ -57,27 +91,9 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1701680307,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_3": { "flake-utils_3": {
"inputs": { "inputs": {
"systems": "systems_3" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1685518550, "lastModified": 1685518550,
@ -118,24 +134,66 @@
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs-unstable" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1706981411, "lastModified": 1707607386,
"narHash": "sha256-cLbLPTL1CDmETVh4p0nQtvoF+FSEjsnJTFpTxhXywhQ=", "narHash": "sha256-hj/RgQMTvCWQVInkZwiMMieumkfOjHXhtWhfuXHop/8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "652fda4ca6dafeb090943422c34ae9145787af37", "rev": "bfd0ae29a86eff4603098683b516c67e22184511",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-23.11", "ref": "master",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
}, },
"home-manager_2": {
"inputs": {
"nixpkgs": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1707607386,
"narHash": "sha256-hj/RgQMTvCWQVInkZwiMMieumkfOjHXhtWhfuXHop/8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "bfd0ae29a86eff4603098683b516c67e22184511",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nix-darwin": {
"inputs": {
"nixpkgs": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1706833576,
"narHash": "sha256-w7BL0EWRts+nD1lbLECIuz6fRzmmV+z8oWwoY7womR0=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "bdbae6ecff8fcc322bf6b9053c0b984912378af7",
"type": "github"
},
"original": {
"owner": "lnl7",
"repo": "nix-darwin",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1707211557, "lastModified": 1707211557,
@ -154,32 +212,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1707514827, "lastModified": 1627814220,
"narHash": "sha256-Y+wqFkvikpE1epCx57PsGw+M1hX5aY5q/xgk+ebDwxI=", "narHash": "sha256-P+MDgdZw2CBk9X1ZZaUgHgN+32pTfLFf3XVIBOXirI4=",
"owner": "NixOS", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "20f65b86b6485decb43c5498780c223571dd56ef", "rev": "ab5b6828af26215bf2646c31961da5d3749591ef",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "nixos",
"ref": "nixos-23.11", "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1685801374,
"narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c37ca420157f4abc31e26f436c1145f8951ff373",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -200,57 +242,46 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1707268954,
"narHash": "sha256-2en1kvde3cJVc3ZnTy8QeD2oKcseLFjYPLKhIGDanQ0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f8e2ebd66d097614d51a56a755450d4ae1632df1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"beautysh": "beautysh", "flake-parts": "flake-parts",
"flake-utils": "flake-utils_2", "home-manager": "home-manager_2",
"nix-darwin": "nix-darwin",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1704297403, "lastModified": 1707595282,
"narHash": "sha256-g7+4SiXDGzIlWIfANyH1J5CeEaY+Alah6KOm6IO4nIk=", "narHash": "sha256-F96hGG5ZCJiwZFBvlUrW8uLyhhz1/QJiqk+vaCjtWjw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "b3ea5256e07ee9105060cffa075028402946bd63", "rev": "e0926bc41bd06e0f4e86631872ec1a1aa41a4ba2",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "nixos-23.11",
"repo": "nixvim", "repo": "nixvim",
"type": "github" "type": "github"
} }
}, },
"poetry2nix": {
"inputs": {
"flake-utils": [
"nixvim",
"beautysh",
"utils"
],
"nixpkgs": [
"nixvim",
"beautysh",
"nixpkgs"
]
},
"locked": {
"lastModified": 1658665240,
"narHash": "sha256-/wkx7D7enyBPRjIkK0w7QxLQhzEkb3UxNQnjyc3FTUI=",
"owner": "nix-community",
"repo": "poetry2nix",
"rev": "8b8edc85d24661d5a6d0d71d6a7011f3e699780f",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "poetry2nix",
"type": "github"
}
},
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
@ -260,7 +291,10 @@
"nixvim", "nixvim",
"nixpkgs" "nixpkgs"
], ],
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": [
"nixvim",
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1703939133, "lastModified": 1703939133,
@ -278,10 +312,11 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "firefox-addons": "firefox-addons",
"flake-utils": "flake-utils_2",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim" "nixvim": "nixvim"
} }
@ -315,36 +350,6 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"locked": {
"lastModified": 1678901627,
"narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -1,20 +1,18 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-23.11"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs-unstable"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
#inputs.nvidia_pinned = { inputs.firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
# inputs.nixpkgs.follows = "nixos-unstable";
#};
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master"; inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
inputs.nixvim = { inputs.nixvim = {
# If you are not running an unstable channel of nixpkgs, select the corresponding branch of nixvim. # If you are not running an unstable channel of nixpkgs, select the corresponding branch of nixvim.
url = "github:nix-community/nixvim/nixos-23.11"; url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };

View file

@ -29,14 +29,48 @@ config.window_background_opacity = .8
-- -- You can adjust the saturation also. -- -- You can adjust the saturation also.
-- saturation = 1, -- saturation = 1,
--} --}
local arrowkeys = {
[1] = { "LeftArrow", "left" },
[2] = "RightArrow",
[3] = "UpArrow",
[4] = "DownArrow",
}
config.keys = { config.keys = {
{ {
key = 't', key = 't',
mods = 'CTRL', mods = 'CTRL',
action = wezterm.action.SpawnTab 'DefaultDomain', action = wezterm.action.SpawnTab 'DefaultDomain',
} },
{
key = "LeftArrow",
mods = 'CTRL | SHIFT',
action = wezterm.action.SplitPane {
direction = 'Left',
},
},
{
key = "RightArrow",
mods = 'CTRL | SHIFT',
action = wezterm.action.SplitPane {
direction = 'Right',
},
},
{
key = "UpArrow",
mods = 'CTRL | SHIFT',
action = wezterm.action.SplitPane {
direction = 'Up',
},
},
{
key = "DownArrow",
mods = 'CTRL | SHIFT',
action = wezterm.action.SplitPane {
direction = 'Down',
},
},
} }
for i = 1, 8 do for i = 1, 8 do
-- CTRL+ALT + number to activate that tab -- CTRL+ALT + number to activate that tab
table.insert(config.keys, { table.insert(config.keys, {
@ -46,10 +80,20 @@ for i = 1, 8 do
}) })
end end
for i in pairs(arrowkeys) do
table.insert(config.keys, {
key = tostring(i),
mods = 'CTRL',
action = wezterm.action.ActivateTab(i - 1),
})
end
config.text_background_opacity = .4 config.text_background_opacity = .4
config.enable_scroll_bar = false config.enable_scroll_bar = false
config.enable_tab_bar = true config.enable_tab_bar = true
config.tab_bar_at_bottom = true config.tab_bar_at_bottom = true
config.hide_mouse_cursor_when_typing = false
config.enable_wayland = true config.enable_wayland = true
config.front_end = "OpenGL" config.front_end = "OpenGL"
config.warn_about_missing_glyphs = false config.warn_about_missing_glyphs = false

View file

@ -78,7 +78,7 @@
package = pkgs.catppuccin-gtk.override { package = pkgs.catppuccin-gtk.override {
accents = [ "pink" ]; accents = [ "pink" ];
size = "compact"; size = "compact";
tweaks = [ "rimless" "black" ]; tweaks = [ "rimless" ];
variant = "mocha"; variant = "mocha";
}; };
}; };
@ -94,6 +94,8 @@
enable = true; enable = true;
globals.mapleader = " "; globals.mapleader = " ";
extraConfigLua = builtins.readFile ./config-files/nvim/init.lua; extraConfigLua = builtins.readFile ./config-files/nvim/init.lua;
clipboard.providers.wl-copy.enable = true;
options = { options = {
number = true; # Show line numbers number = true; # Show line numbers
@ -197,6 +199,7 @@
fidget.enable = true; fidget.enable = true;
alpha = { alpha = {
enable = true; enable = true;
theme = "startify";
}; };
bufferline.enable = true; bufferline.enable = true;
}; };
@ -243,6 +246,21 @@
key = "<leader>nt"; key = "<leader>nt";
action = "<cmd>Neotree toggle left<CR>"; action = "<cmd>Neotree toggle left<CR>";
} }
{
mode = "n";
key = "<leader>P";
action = "\"+p";
}
{
mode = [ "n" "v" ];
key = "<leader>y";
action = "[[\"+y]]";
}
{
mode = [ "n" ];
key = "<leader>Y";
action = "[[\"+Y]]";
}
]; ];
}; };
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {

View file

@ -9,4 +9,3 @@
daemon.enable = true; daemon.enable = true;
}; };
} }