Compare commits
5 commits
1c4371cd88
...
7eac8ad443
| Author | SHA1 | Date | |
|---|---|---|---|
| 7eac8ad443 | |||
| f6e1ff3986 | |||
| bec3d840cb | |||
| 2cde55691b | |||
| f5962d1d27 |
6 changed files with 24 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
functionModule = with lib.types; submodule {
|
||||
options = {
|
||||
|
|
@ -21,6 +21,9 @@ in {
|
|||
config = lib.mkIf config.fish.enable {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
${pkgs.nix-your-shell}/bin/nix-your-shell fish | source
|
||||
'';
|
||||
functions = {
|
||||
fish_greeting = "";
|
||||
fish_prompt = ''
|
||||
|
|
|
|||
|
|
@ -105,9 +105,15 @@
|
|||
]);
|
||||
|
||||
rust-pkg = lopts cfgl.rust.enable (with pkgs.vimPlugins; [
|
||||
rustaceanvim
|
||||
{
|
||||
plugin = rustaceanvim;
|
||||
type = "lua";
|
||||
config = ''
|
||||
vim.g.rust_recommended_style = 0
|
||||
'';
|
||||
}
|
||||
]);
|
||||
|
||||
|
||||
go-pkg = lopts cfgl.go.enable (with pkgs.vimPlugins; [
|
||||
go-nvim
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ vim.opt.backup = false
|
|||
vim.opt.undofile = true
|
||||
vim.opt.undodir = '/home/pan/.config/nvim/undodir'
|
||||
|
||||
-- Error viewing
|
||||
vim.keymap.set('n', '<Leader>d', function() vim.diagnostic.open_float() end)
|
||||
|
||||
-- Easy copy and pasting to external programs
|
||||
-- map <C-y> "+yy
|
||||
-- map <C-p> "+P
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
sshd.enable = true;
|
||||
|
||||
tuigreet.enable = true;
|
||||
hyprland.enable = true;
|
||||
niri.enable = true;
|
||||
|
||||
steam.enable = true;
|
||||
steam.gamemode = true;
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@
|
|||
treesitter.enable = true;
|
||||
wiki.enable = true;
|
||||
};
|
||||
neovim.themes.catppuccin.enable = true;
|
||||
|
||||
lf.enable = true;
|
||||
lf.hiddenfiles = [
|
||||
|
|
|
|||
|
|
@ -6,15 +6,19 @@
|
|||
};
|
||||
|
||||
config = lib.mkIf config.tuigreet.enable {
|
||||
services.greetd = {
|
||||
services.greetd = let
|
||||
wm =
|
||||
if config.hyprland.enable then "Hyprland"
|
||||
else (if config.niri.enable then "niri" else null);
|
||||
in {
|
||||
enable = true;
|
||||
package = pkgs.greetd.tuigreet;
|
||||
settings = {
|
||||
terminal = {
|
||||
vt = 2;
|
||||
};
|
||||
default_session = lib.mkIf config.hyprland.enable {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
||||
default_session = lib.mkIf (wm != null) {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd ${wm}";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue