Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f6e02f096 |
No files matched your search
Generated
+37
-37
@@ -7,11 +7,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794571619,
|
"lastModified": 1784030954,
|
||||||
"narHash": "sha256-QYZwkbLVTRjnIy6cQh5qznKOgrBsxA1SK5jgq+KaBBc=",
|
"narHash": "sha256-MPMVSBhSEl+ShSrWVN5qH3FiX2gg8LbYA8L3nuQw5VE=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "1240df7bd17323d626c94fb50b8ed5a02a185a75",
|
"rev": "25ea4fd7a42359379da9ddadedda1c477caa4ae0",
|
||||||
"revCount": 1384,
|
"revCount": 1376,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://codeberg.org/LGFae/awww"
|
"url": "https://codeberg.org/LGFae/awww"
|
||||||
},
|
},
|
||||||
@@ -44,11 +44,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1793576659,
|
"lastModified": 1790898470,
|
||||||
"narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=",
|
"narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "ea2630b7470978622c7689a1ff75d2b389175399",
|
"rev": "024633cd702b10285db5cb19b40ad48d2399ba60",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -64,16 +64,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794943722,
|
"lastModified": 1779506708,
|
||||||
"narHash": "sha256-Qkh6uNyMsic61gfyOO8VXnC+HEBdti6Xe2kKiMf66O0=",
|
"narHash": "sha256-QOD/CNm196nCJRheux/URi4/HE66fthdOMqCJoPP1Y0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "5643e73425b85ac359ba2aaf83deae8ce1cd7968",
|
"rev": "3ee51fbdac8c8bdfe1e7e1fcaba6520a563f394f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-26.05",
|
"ref": "release-25.11",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -112,11 +112,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794750194,
|
"lastModified": 1793876309,
|
||||||
"narHash": "sha256-c6ZxSsG1c2luSrbESFfp9Jq2pSVhGst2to4aIzt2Nes=",
|
"narHash": "sha256-Wojg9lIH/hDH91iDVH2/EPw8oDSpxjxhXONbU1yf4Zg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1a08097fc1ed85575db39763b2c4a5d8970a37ba",
|
"rev": "f9a75f41be3a74eab55d3a7679d34ad6cc0da977",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -128,27 +128,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794872590,
|
"lastModified": 1782847189,
|
||||||
"narHash": "sha256-E+XLAfnC7+bdr4qlEgRv6cdGmiqTU5oeFNKCha7epqQ=",
|
"narHash": "sha256-twXPFqFsrrY5r28Zh7Homgcp2gUMBgQ6WDS98Q/3xFI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f68407657ad294471eb4b2e65d193df26edf729f",
|
"rev": "b6018f87da91d19d0ab4cf979885689b469cdd41",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-26.05",
|
"ref": "nixos-25.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1793977579,
|
"lastModified": 1791487292,
|
||||||
"narHash": "sha256-WrSODdZFVIs/Hh2NzC0bY+ROByi0bATg8WfePX8dPj8=",
|
"narHash": "sha256-tqM7xDEsaeK1p6VvRygeZ9LkQRpUUkbRT02BHv6hnTM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4fe25e12eb9f4c744966dd3de5a05246cf098601",
|
"rev": "8edc0c72e3a38faf5434e40d1f19431125fe4b30",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -176,11 +176,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794537146,
|
"lastModified": 1793341285,
|
||||||
"narHash": "sha256-bTKSclXJAmo9qdxPedTBHUGr8awPr4BrbOoOutJsYIc=",
|
"narHash": "sha256-LOv16TsMYV2/8BUYnhSxHkOASe7es2ORbqMeLlZJ8Hc=",
|
||||||
"rev": "d5cc6833999746cffdfe0598f7bc801a57b887a9",
|
"rev": "1c89083e451e891152365b799595cf7790a43325",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1119549.d5cc68339997/nixexprs.tar.xz"
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1105037.1c89083e451e/nixexprs.tar.xz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
@@ -194,11 +194,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794943345,
|
"lastModified": 1792203519,
|
||||||
"narHash": "sha256-1d33ym1V/UxX9pcNbrpG0/P8riFHE8VuVAc3T8WN52I=",
|
"narHash": "sha256-yJ072hxngo/srNdLTp4BlFeo0hedwnKicI3TGlSXLFE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "b67578f451bd779e79ec42f8153a403421a4b266",
|
"rev": "453dc9c5037e6d1bec81d2a51ddacd58a2f44e9c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -212,11 +212,11 @@
|
|||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792102657,
|
"lastModified": 1792102655,
|
||||||
"narHash": "sha256-iXWuCKOidcaAEg6sbnJRGrNfEPjNkcDYmoiW+YJZ74g=",
|
"narHash": "sha256-o8q1FyTfInU5jv+78iqkNuItaQ9aIyTAbUfv3YbFGms=",
|
||||||
"owner": "liixini",
|
"owner": "liixini",
|
||||||
"repo": "skwd-wall",
|
"repo": "skwd-wall",
|
||||||
"rev": "3f80b1922aa6674065970dc6b78fc948960e84d5",
|
"rev": "3bd7d5763a13984cc5a2be0e8a19e9df2805ed88",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -264,11 +264,11 @@
|
|||||||
"release": "release"
|
"release": "release"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794554060,
|
"lastModified": 1793916584,
|
||||||
"narHash": "sha256-rPFghMPcQlGU33sbd919wn1k5+1lP6Khj4Q2Xeh75Q8=",
|
"narHash": "sha256-u2IEi1owjJ/zJvNW2WGHNoZGq+XrgFf2GAbNJ5AI6Nw=",
|
||||||
"owner": "liixini",
|
"owner": "liixini",
|
||||||
"repo": "skwd-wall",
|
"repo": "skwd-wall",
|
||||||
"rev": "04344fc867f52d5a124d6ac8acad5ad984b91700",
|
"rev": "3dfdc7fa88ad3c0ffd735b7f9b9c1bcd2ae80b06",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -283,11 +283,11 @@
|
|||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794871977,
|
"lastModified": 1793662659,
|
||||||
"narHash": "sha256-An9Qcr31Z+PmF4TlJWY6RkM4yPbBKc2vkyp6NctvMEk=",
|
"narHash": "sha256-a+za5QCDlOe/PsuMlZiBcQ13cyiyOscK17BAJFu1/dE=",
|
||||||
"owner": "Gerg-L",
|
"owner": "Gerg-L",
|
||||||
"repo": "spicetify-nix",
|
"repo": "spicetify-nix",
|
||||||
"rev": "cd7d88aca6db91899373d5574bb252547f4c8c2c",
|
"rev": "13e6fed4eb99f809d390fb50f591bed6cb716dc0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Nixpkgs
|
# Nixpkgs
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
# You can access packages and modules from different nixpkgs revs
|
# You can access packages and modules from different nixpkgs revs
|
||||||
# at the same time. Here's an working example:
|
# at the same time. Here's an working example:
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
# Also see the 'unstable-packages' overlay at 'overlays/default.nix'.
|
# Also see the 'unstable-packages' overlay at 'overlays/default.nix'.
|
||||||
|
|
||||||
# Home manager
|
# Home manager
|
||||||
home-manager.url = "github:nix-community/home-manager/release-26.05";
|
home-manager.url = "github:nix-community/home-manager/release-25.11";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
# Utils
|
# Utils
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
modules = [
|
modules = [
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
skwd-wall.nixosModules.default
|
skwd-wall.nixosModules.default
|
||||||
./hosts/Winter/WarNyx/configuration.nix
|
./hosts/WarNyx/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
Reconix = nixpkgs.lib.nixosSystem {
|
Reconix = nixpkgs.lib.nixosSystem {
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
modules = [
|
modules = [
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
skwd-wall.nixosModules.default
|
skwd-wall.nixosModules.default
|
||||||
./hosts/Winter/Reconix/configuration.nix
|
./hosts/Reconix/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -22,7 +22,11 @@ in
|
|||||||
# You can also split up your configuration and import pieces of it here:
|
# You can also split up your configuration and import pieces of it here:
|
||||||
# ./nvim.nix
|
# ./nvim.nix
|
||||||
|
|
||||||
../Base.nix
|
#../common/features/niri/niri.nix
|
||||||
|
../common/features/spicetify.nix
|
||||||
|
../common/features/yazi/yazi.nix
|
||||||
|
../common/features/nvimConf.nix
|
||||||
|
../common/features/shell.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -50,17 +54,40 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = (
|
# --- xdg ---
|
||||||
(with pkgs; [
|
#xdg.mimeApps = {
|
||||||
])
|
# enable = true;
|
||||||
++ (with pkgs.unstablePkgs; [
|
# defaultApplications = {
|
||||||
])
|
# "inode/directory" = [ "kitty-open.desktop" ];
|
||||||
);
|
# "image/jpeg" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
# "image/png" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
# "image/gif" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
# "image/webp" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
# "image/tiff" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
# "image/bmp" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# --- General utils ---
|
||||||
|
libreoffice
|
||||||
|
libresprite
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.en_US
|
||||||
|
rose-pine-cursor # TODO: ensure change cursor
|
||||||
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = username;
|
username = username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
};
|
};
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# --- General utils ---
|
||||||
|
programs.quickshell.enable = true;
|
||||||
|
programs.obsidian = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
@@ -22,7 +22,11 @@ in
|
|||||||
# You can also split up your configuration and import pieces of it here:
|
# You can also split up your configuration and import pieces of it here:
|
||||||
# ./nvim.nix
|
# ./nvim.nix
|
||||||
|
|
||||||
../Base.nix
|
../common/features/niri/niri.nix
|
||||||
|
../common/features/spicetify.nix
|
||||||
|
../common/features/yazi/yazi.nix
|
||||||
|
../common/features/nvimConf.nix
|
||||||
|
../common/features/shell.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -50,17 +54,39 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = (
|
# --- xdg ---
|
||||||
(with pkgs; [
|
xdg.mimeApps = {
|
||||||
])
|
enable = true;
|
||||||
++ (with pkgs.unstablePkgs; [
|
defaultApplications = {
|
||||||
])
|
"inode/directory" = [ "kitty-open.desktop" ];
|
||||||
);
|
"image/jpeg" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/png" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/gif" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/webp" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/tiff" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/bmp" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# --- General utils ---
|
||||||
|
libreoffice
|
||||||
|
libresprite
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.en_US
|
||||||
|
obs-studio
|
||||||
|
shotcut
|
||||||
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = username;
|
username = username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
};
|
};
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# --- General utils ---
|
||||||
|
programs.quickshell.enable = true;
|
||||||
|
programs.joplin-desktop.enable = true;
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
# This is your home-manager configuration file
|
|
||||||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
# You can import other home-manager modules here
|
|
||||||
imports = [
|
|
||||||
# If you want to use modules your own flake exports (from modules/home-manager):
|
|
||||||
# inputs.self.homeManagerModules.example
|
|
||||||
|
|
||||||
# Or modules exported from other flakes (such as nix-colors):
|
|
||||||
# inputs.nix-colors.homeManagerModules.default
|
|
||||||
|
|
||||||
# You can also split up your configuration and import pieces of it here:
|
|
||||||
# ./nvim.nix
|
|
||||||
|
|
||||||
./common/features/niri/niri.nix
|
|
||||||
./common/features/spicetify.nix
|
|
||||||
./common/features/yazi/yazi.nix
|
|
||||||
./common/features/nvimConf.nix
|
|
||||||
./common/features/shell.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs = {
|
|
||||||
# You can add overlays here
|
|
||||||
overlays = [
|
|
||||||
# Add overlays your own flake exports (from overlays and pkgs dir):
|
|
||||||
inputs.self.overlays.additions
|
|
||||||
inputs.self.overlays.modifications
|
|
||||||
inputs.self.overlays.unstable-packages
|
|
||||||
|
|
||||||
# You can also add overlays exported from other flakes:
|
|
||||||
# neovim-nightly-overlay.overlays.default
|
|
||||||
|
|
||||||
# Or define it inline, for example:
|
|
||||||
# (final: prev: {
|
|
||||||
# hi = final.hello.overrideAttrs (oldAttrs: {
|
|
||||||
# patches = [ ./change-hello-to-hi.patch ];
|
|
||||||
# });
|
|
||||||
# })
|
|
||||||
];
|
|
||||||
# Configure your nixpkgs instance
|
|
||||||
config = {
|
|
||||||
# Disable if you don't want unfree packages
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = (
|
|
||||||
(with pkgs; [
|
|
||||||
# --- General utils ---
|
|
||||||
libreoffice # Microsoft replace
|
|
||||||
hunspell # auto spell for libre
|
|
||||||
hunspellDicts.en_US
|
|
||||||
matugen
|
|
||||||
frogmouth
|
|
||||||
])
|
|
||||||
++ (with pkgs.unstablePkgs; [
|
|
||||||
# --- General Utils ---
|
|
||||||
cine
|
|
||||||
gthumb
|
|
||||||
# --- Creative utils ---
|
|
||||||
obs-studio
|
|
||||||
shotcut
|
|
||||||
blockbench
|
|
||||||
libresprite # Pixel art
|
|
||||||
])
|
|
||||||
);
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
# --- General utils ---
|
|
||||||
programs.quickshell.enable = true;
|
|
||||||
programs.joplin-desktop.enable = true;
|
|
||||||
|
|
||||||
# --- xdg ---
|
|
||||||
xdg.configFile."mimeapps.list".force = true;
|
|
||||||
|
|
||||||
xdg.desktopEntries.yazi-wezterm =
|
|
||||||
let
|
|
||||||
yaziOpenFolder = pkgs.writeShellScript "yaziOpenFolder" ''
|
|
||||||
tmp=$(mktemp -t "yazi-cwd.XXXXXX")
|
|
||||||
yazi "$1" --cwd-file="$tmp"
|
|
||||||
cwd=$(cat "$tmp")
|
|
||||||
rm -f "$tmp"
|
|
||||||
[ -n "$cwd" ] && cd "$cwd"
|
|
||||||
exec "$SHELL"
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
name = "Yazi (WezTerm)";
|
|
||||||
genericName = "File Manager";
|
|
||||||
exec = "wezterm start -- ${yaziOpenFolder} %f";
|
|
||||||
icon = "system-file-manager";
|
|
||||||
terminal = false;
|
|
||||||
categories = [ "System" "FileManager" ];
|
|
||||||
mimeType = [ "inode/directory" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.mimeApps = {
|
|
||||||
enable = true;
|
|
||||||
defaultApplications = {
|
|
||||||
# Use "nemo.desktop" for GUI, or "yazi-wezterm.desktop" for terminal
|
|
||||||
"inode/directory" = [ "yazi-wezterm.desktop" ];
|
|
||||||
"x-scheme-handler/file" = [ "yazi-wezterm.desktop" ];
|
|
||||||
|
|
||||||
# Images: gThumb
|
|
||||||
"image/jpeg" = [ "org.gnome.gthumb.desktop" ];
|
|
||||||
"image/png" = [ "org.gnome.gthumb.desktop" ];
|
|
||||||
"image/gif" = [ "org.gnome.gthumb.desktop" ];
|
|
||||||
"image/webp" = [ "org.gnome.gthumb.desktop" ];
|
|
||||||
"image/tiff" = [ "org.gnome.gthumb.desktop" ];
|
|
||||||
"image/bmp" = [ "org.gnome.gthumb.desktop" ];
|
|
||||||
|
|
||||||
# Documents: Okular
|
|
||||||
"application/pdf" = [ "org.kde.okular.desktop" ];
|
|
||||||
"application/epub+zip" = [ "org.kde.okular.desktop" ];
|
|
||||||
|
|
||||||
# Videos: Cine
|
|
||||||
"video/mp4" = [ "io.github.diegopvlk.Cine.desktop" ];
|
|
||||||
"video/x-matroska" = [ "io.github.diegopvlk.Cine.desktop" ];
|
|
||||||
"video/webm" = [ "io.github.diegopvlk.Cine.desktop" ];
|
|
||||||
"video/quicktime" = [ "io.github.diegopvlk.Cine.desktop" ];
|
|
||||||
"video/x-msvideo" = [ "io.github.diegopvlk.Cine.desktop" ];
|
|
||||||
};
|
|
||||||
associations.added = {
|
|
||||||
"inode/directory" = [ "yazi-wezterm.desktop" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
dconf.settings = {
|
|
||||||
"org/cinnamon/desktop/applications/terminal" = {
|
|
||||||
exec = "wezterm";
|
|
||||||
exec-arg = "start --cwd";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
||||||
home.stateVersion = "25.11";
|
|
||||||
}
|
|
||||||
@@ -22,7 +22,11 @@ in
|
|||||||
# You can also split up your configuration and import pieces of it here:
|
# You can also split up your configuration and import pieces of it here:
|
||||||
# ./nvim.nix
|
# ./nvim.nix
|
||||||
|
|
||||||
../Base.nix
|
../common/features/niri/niri.nix
|
||||||
|
../common/features/spicetify.nix
|
||||||
|
../common/features/yazi/yazi.nix
|
||||||
|
../common/features/nvimConf.nix
|
||||||
|
../common/features/shell.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -49,18 +53,34 @@ in
|
|||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# --- xdg ---
|
||||||
|
xdg.mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
"inode/directory" = [ "kitty-open.desktop" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = (
|
home.packages = with pkgs; [
|
||||||
(with pkgs; [
|
# --- General utils ---
|
||||||
])
|
libreoffice
|
||||||
++ (with pkgs.unstablePkgs; [
|
libresprite
|
||||||
])
|
hunspell
|
||||||
);
|
hunspellDicts.en_US
|
||||||
|
rose-pine-cursor # TODO: ensure change cursor
|
||||||
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = username;
|
username = username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
};
|
};
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# --- General utils ---
|
||||||
|
programs.quickshell.enable = true;
|
||||||
|
programs.obsidian = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
@@ -22,7 +22,11 @@ in
|
|||||||
# You can also split up your configuration and import pieces of it here:
|
# You can also split up your configuration and import pieces of it here:
|
||||||
# ./nvim.nix
|
# ./nvim.nix
|
||||||
|
|
||||||
../Base.nix
|
../common/features/niri/niri.nix
|
||||||
|
../common/features/spicetify.nix
|
||||||
|
../common/features/yazi/yazi.nix
|
||||||
|
../common/features/nvimConf.nix
|
||||||
|
../common/features/shell.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -50,19 +54,41 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = (
|
# --- xdg ---
|
||||||
(with pkgs; [
|
xdg.mimeApps = {
|
||||||
jdk21
|
enable = true;
|
||||||
])
|
defaultApplications = {
|
||||||
++ (with pkgs.unstablePkgs; [
|
"inode/directory" = [ "kitty-open.desktop" ];
|
||||||
prismlauncher
|
"image/jpeg" = [ "org.gnome.gThumb.desktop" ];
|
||||||
])
|
"image/png" = [ "org.gnome.gThumb.desktop" ];
|
||||||
);
|
"image/gif" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/webp" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/tiff" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/bmp" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# --- General utils ---
|
||||||
|
libreoffice #Microsoft replace
|
||||||
|
libresprite #Pixel art
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.en_US
|
||||||
|
obs-studio
|
||||||
|
shotcut
|
||||||
|
qutebrowser #web browser
|
||||||
|
blockbench
|
||||||
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = username;
|
username = username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
};
|
};
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# --- General utils ---
|
||||||
|
programs.quickshell.enable = true;
|
||||||
|
programs.joplin-desktop.enable = true;
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
# This is your home-manager configuration file
|
|
||||||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
username = "Winter"; #FIXME
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# You can import other home-manager modules here
|
|
||||||
imports = [
|
|
||||||
# If you want to use modules your own flake exports (from modules/home-manager):
|
|
||||||
# inputs.self.homeManagerModules.example
|
|
||||||
|
|
||||||
# Or modules exported from other flakes (such as nix-colors):
|
|
||||||
# inputs.nix-colors.homeManagerModules.default
|
|
||||||
|
|
||||||
# You can also split up your configuration and import pieces of it here:
|
|
||||||
# ./nvim.nix
|
|
||||||
|
|
||||||
../Base.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs = {
|
|
||||||
# You can add overlays here
|
|
||||||
overlays = [
|
|
||||||
# Add overlays your own flake exports (from overlays and pkgs dir):
|
|
||||||
inputs.self.overlays.additions
|
|
||||||
inputs.self.overlays.modifications
|
|
||||||
inputs.self.overlays.unstable-packages
|
|
||||||
|
|
||||||
# You can also add overlays exported from other flakes:
|
|
||||||
# neovim-nightly-overlay.overlays.default
|
|
||||||
|
|
||||||
# Or define it inline, for example:
|
|
||||||
# (final: prev: {
|
|
||||||
# hi = final.hello.overrideAttrs (oldAttrs: {
|
|
||||||
# patches = [ ./change-hello-to-hi.patch ];
|
|
||||||
# });
|
|
||||||
# })
|
|
||||||
];
|
|
||||||
# Configure your nixpkgs instance
|
|
||||||
config = {
|
|
||||||
# Disable if you don't want unfree packages
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = (
|
|
||||||
(with pkgs; [
|
|
||||||
])
|
|
||||||
++ (with pkgs.unstablePkgs; [
|
|
||||||
])
|
|
||||||
);
|
|
||||||
|
|
||||||
home = {
|
|
||||||
username = username;
|
|
||||||
homeDirectory = "/home/${username}";
|
|
||||||
};
|
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
||||||
home.stateVersion = "25.11";
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
layout {
|
|
||||||
focus-ring {
|
|
||||||
active-color "#ff0000"
|
|
||||||
inactive-color "#00ff00"
|
|
||||||
}
|
|
||||||
border {
|
|
||||||
active-color "#ffb3ac"
|
|
||||||
inactive-color "#a68a87"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
lockNTurnOffScript = pkgs.writeShellApplication {
|
|
||||||
name = "lockNTurnOffScreen";
|
|
||||||
runtimeInputs = with pkgs; [
|
|
||||||
wireplumber # provides wpctl
|
|
||||||
swaylock
|
|
||||||
niri
|
|
||||||
];
|
|
||||||
text = ''
|
|
||||||
# Check if already muted so we don't accidentally unmute a manually muted system
|
|
||||||
WAS_MUTED=false
|
|
||||||
if wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -q '\[MUTED\]'; then
|
|
||||||
WAS_MUTED=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Mute audio and power off monitors
|
|
||||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
|
|
||||||
niri msg action power-off-monitors
|
|
||||||
|
|
||||||
# Run swaylock in the foreground (blocks until unlocked)
|
|
||||||
swaylock
|
|
||||||
|
|
||||||
# Restore mute state upon unlock
|
|
||||||
if [ "$WAS_MUTED" = false ]; then
|
|
||||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
xdg.configFile."niri/config.kdl".source = ./config.kdl;
|
|
||||||
# --- Niri-Extras ---
|
|
||||||
programs.fuzzel.enable = true;
|
|
||||||
xdg.mime.enable = true;
|
|
||||||
services.playerctld.enable = true;
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
#mako
|
|
||||||
lockNTurnOffScript
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,224 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
inputs.nixvim.homeModules.nixvim
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nixvim = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
vimAlias = true;
|
|
||||||
|
|
||||||
opts = {
|
|
||||||
number = true;
|
|
||||||
relativenumber = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
colorschemes.monokai-pro = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
filter = "classic"; # Options: classic, octagon, pro, machine
|
|
||||||
transparent_background = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
highlightOverride = {
|
|
||||||
# Core & empty space below buffers/trees
|
|
||||||
Normal = { bg = "none"; };
|
|
||||||
NormalNC = { bg = "none"; };
|
|
||||||
EndOfBuffer = { bg = "none"; };
|
|
||||||
SignColumn = { bg = "none"; };
|
|
||||||
WinSeparator = { bg = "none"; fg = "#75715e"; };
|
|
||||||
|
|
||||||
# Floating windows
|
|
||||||
NormalFloat = { bg = "none"; };
|
|
||||||
FloatBorder = { bg = "none"; fg = "#75715e"; };
|
|
||||||
|
|
||||||
# Neo-tree (including empty area below files)
|
|
||||||
NeoTreeNormal = { bg = "none"; };
|
|
||||||
NeoTreeNormalNC = { bg = "none"; };
|
|
||||||
NeoTreeEndOfBuffer = { bg = "none"; };
|
|
||||||
NeoTreeWinSeparator = { bg = "none"; fg = "#75715e"; };
|
|
||||||
|
|
||||||
# Which-key (v3 uses WhichKeyNormal)
|
|
||||||
WhichKeyNormal = { bg = "none"; };
|
|
||||||
WhichKeyFloat = { bg = "none"; };
|
|
||||||
WhichKeyBorder = { bg = "none"; fg = "#75715e"; };
|
|
||||||
|
|
||||||
# Telescope
|
|
||||||
TelescopeNormal = { bg = "none"; };
|
|
||||||
TelescopeBorder = { bg = "none"; fg = "#75715e"; };
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins = {
|
|
||||||
# --- navigation ---
|
|
||||||
telescope = {
|
|
||||||
enable = true;
|
|
||||||
extensions.fzf-native.enable = true;
|
|
||||||
};
|
|
||||||
neo-tree = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
filesystem = {
|
|
||||||
# Automatically focus the currently open file in the tree
|
|
||||||
follow_current_file = {
|
|
||||||
enabled = true;
|
|
||||||
leave_dirs_open = false;
|
|
||||||
};
|
|
||||||
# Keep Neo-tree's root independent of Neovim's global :cd
|
|
||||||
bind_to_cwd = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
project-nvim = {
|
|
||||||
enable = true;
|
|
||||||
enableTelescope = true;
|
|
||||||
settings = {
|
|
||||||
detection_methods = [ "pattern" "lsp" ];
|
|
||||||
patterns = [ ".git" "flake.nix" "Cargo.toml" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# --- UI & Visuals ---
|
|
||||||
lualine.enable = true;
|
|
||||||
alpha = {
|
|
||||||
enable = true;
|
|
||||||
theme = "dashboard";
|
|
||||||
};
|
|
||||||
which-key.enable = true;
|
|
||||||
indent-blankline.enable = true;
|
|
||||||
|
|
||||||
# --- utils ---
|
|
||||||
gitsigns.enable = true; #git diffs
|
|
||||||
trouble.enable = true; #diagnostics
|
|
||||||
|
|
||||||
# --- Misc ---
|
|
||||||
# Mini.nvim, see github for all options
|
|
||||||
mini = {
|
|
||||||
enable = true;
|
|
||||||
mockDevIcons = true; # Lets mini.icons serve icons to lualine/trouble/which-key
|
|
||||||
modules = {
|
|
||||||
pairs = {}; #bracket/quote auto pairs
|
|
||||||
icons = {}; #required by ^^^
|
|
||||||
move = {};
|
|
||||||
#TODO: consider
|
|
||||||
#surround = {};
|
|
||||||
#ai = {};
|
|
||||||
#comment = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# auto complete
|
|
||||||
# TODO: add keybinds
|
|
||||||
cmp = {
|
|
||||||
enable = true;
|
|
||||||
autoEnableSources = true;
|
|
||||||
settings.sources = [
|
|
||||||
{ name = "nvim_lsp"; }
|
|
||||||
{ name = "path"; }
|
|
||||||
{ name = "buffer"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
lsp = {
|
|
||||||
enable = true;
|
|
||||||
servers = {
|
|
||||||
nil_ls = { # Nix
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
nix.flake.autoArchive = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
clangd.enable = true; # C/C++
|
|
||||||
|
|
||||||
html.enable = true;
|
|
||||||
pyright.enable = true; # Python
|
|
||||||
lua_ls.enable = true; #TODO: requires more setup
|
|
||||||
jsonls.enable = true;
|
|
||||||
|
|
||||||
fish_lsp.enable = true; # Fish shell
|
|
||||||
bashls.enable = true; # Bash shell
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
rustaceanvim.enable = true;
|
|
||||||
|
|
||||||
# duo live same file editing
|
|
||||||
live-share = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
username = "Winter";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
# Define the global helper function so you can run :lua swtt('solid') anytime
|
|
||||||
extraConfigLua = ''
|
|
||||||
_G.swtt = function(theme)
|
|
||||||
local val = theme or ""
|
|
||||||
local b64 = vim.base64.encode(val)
|
|
||||||
local seq = string.format('\x1b]1337;SetUserVar=%s=%s\x07', 'WEZTERM_THEME', b64)
|
|
||||||
|
|
||||||
if vim.env.TMUX then
|
|
||||||
seq = string.format('\x1bPtmux;\x1b%s\x1b\\', seq)
|
|
||||||
end
|
|
||||||
|
|
||||||
pcall(vim.fn.chansend, vim.v.stderr, seq)
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
|
|
||||||
autoGroups = {
|
|
||||||
WezTermUserVar = {
|
|
||||||
clear = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
autoCmd = [
|
|
||||||
# --- Sets tab spacing for file types ---
|
|
||||||
{
|
|
||||||
event = [ "FileType" ];
|
|
||||||
pattern = [ "html" "css" "javascript" "typescript" "nix" "lua" ];
|
|
||||||
callback = {
|
|
||||||
__raw = ''
|
|
||||||
function()
|
|
||||||
vim.opt_local.expandtab = true
|
|
||||||
vim.opt_local.shiftwidth = 2
|
|
||||||
vim.opt_local.softtabstop = 2
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- Set default WezTerm profile on entry/resume ---
|
|
||||||
{
|
|
||||||
event = [ "UIEnter" "VimResume" ];
|
|
||||||
group = "WezTermUserVar";
|
|
||||||
callback = {
|
|
||||||
__raw = ''
|
|
||||||
function()
|
|
||||||
swtt('nvim')
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- Clear WezTerm profile (revert to base config) on exit/suspend ---
|
|
||||||
{
|
|
||||||
event = [ "VimLeavePre" "VimSuspend" ];
|
|
||||||
group = "WezTermUserVar";
|
|
||||||
callback = {
|
|
||||||
__raw = ''
|
|
||||||
function()
|
|
||||||
swtt("")
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,106 +0,0 @@
|
|||||||
local wezterm = require 'wezterm'
|
|
||||||
local config = wezterm.config_builder()
|
|
||||||
|
|
||||||
-- sets fish as defualt shell
|
|
||||||
config.default_prog = { 'fish', '-l' }
|
|
||||||
|
|
||||||
config.window_background_opacity = 0.60
|
|
||||||
config.wayland_window_background_blur = true
|
|
||||||
config.hide_tab_bar_if_only_one_tab = true
|
|
||||||
|
|
||||||
config.window_padding = {
|
|
||||||
left = 0,
|
|
||||||
right = 0,
|
|
||||||
top = 0,
|
|
||||||
bottom = 0,
|
|
||||||
}
|
|
||||||
|
|
||||||
config.font_size = 14.0
|
|
||||||
config.colors = {
|
|
||||||
foreground = '#dddddd',
|
|
||||||
background = '#000000'
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Helper to safely check if a file exists before applying it
|
|
||||||
local function file_exists(path)
|
|
||||||
if not path then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
local f = io.open(path, 'r')
|
|
||||||
if f then
|
|
||||||
f:close()
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Define arbitrary theme profiles here.
|
|
||||||
-- Keys correspond to the value of the WEZTERM_THEME user variable.
|
|
||||||
local profiles = {
|
|
||||||
nvim = {
|
|
||||||
colors = { foreground = '#e0e0e0' },
|
|
||||||
window_background_image = wezterm.config_dir .. '/texture.png',
|
|
||||||
window_background_opacity = 1.0,
|
|
||||||
},
|
|
||||||
solid = {
|
|
||||||
colors = { foreground = '#dddddd', background = '#000000' },
|
|
||||||
window_background_opacity = 1.0,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Track the active profile per window so we don't trigger redundant reloads
|
|
||||||
local active_window_profiles = {}
|
|
||||||
|
|
||||||
local function sync_appearance(window, pane)
|
|
||||||
if not pane then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local user_vars = pane:get_user_vars()
|
|
||||||
local target_profile = user_vars.WEZTERM_THEME or 'default'
|
|
||||||
local win_id = window:window_id()
|
|
||||||
|
|
||||||
-- Skip if this window is already using the requested profile
|
|
||||||
if active_window_profiles[win_id] == target_profile then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local profile_settings = profiles[target_profile]
|
|
||||||
|
|
||||||
if profile_settings then
|
|
||||||
local overrides = {}
|
|
||||||
|
|
||||||
-- Copy arbitrary settings from the chosen profile
|
|
||||||
for key, value in pairs(profile_settings) do
|
|
||||||
overrides[key] = value
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Fallback: If a background image is specified, verify the file exists.
|
|
||||||
-- If missing, drop the image override and restore base opacity so text stays readable.
|
|
||||||
if overrides.window_background_image and not file_exists(overrides.window_background_image) then
|
|
||||||
wezterm.log_warn('Background image not found: ' .. overrides.window_background_image)
|
|
||||||
overrides.window_background_image = nil
|
|
||||||
overrides.window_background_opacity = nil
|
|
||||||
end
|
|
||||||
|
|
||||||
window:set_config_overrides(overrides)
|
|
||||||
active_window_profiles[win_id] = target_profile
|
|
||||||
else
|
|
||||||
-- Reset to base config if the variable is unset, empty, or unrecognized
|
|
||||||
window:set_config_overrides({})
|
|
||||||
active_window_profiles[win_id] = 'default'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
wezterm.on('user-var-changed', function(window, pane, name, _value)
|
|
||||||
if name == 'WEZTERM_THEME' then
|
|
||||||
sync_appearance(window, pane)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- Keep state synced when switching tabs or closing panes
|
|
||||||
wezterm.on('update-status', function(window, pane)
|
|
||||||
sync_appearance(window, pane)
|
|
||||||
end)
|
|
||||||
|
|
||||||
return config
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:{
|
|
||||||
xdg.configFile."wezterm/wezterm.lua".source = ./wezterm.lua;
|
|
||||||
programs.wezterm = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.unstablePkgs.wezterm;
|
|
||||||
};
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
lua
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -13,16 +13,10 @@ in
|
|||||||
{
|
{
|
||||||
# You can import other home-manager modules here
|
# You can import other home-manager modules here
|
||||||
imports = [
|
imports = [
|
||||||
# If you want to use modules your own flake exports (from modules/home-manager):
|
../common/features/niri/niri.nix
|
||||||
# inputs.self.homeManagerModules.example
|
../common/features/yazi/yazi.nix
|
||||||
|
../common/features/nvimConf.nix
|
||||||
# Or modules exported from other flakes (such as nix-colors):
|
../common/features/shell.nix
|
||||||
# inputs.nix-colors.homeManagerModules.default
|
|
||||||
|
|
||||||
# You can also split up your configuration and import pieces of it here:
|
|
||||||
# ./nvim.nix
|
|
||||||
|
|
||||||
../Base.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -50,18 +44,14 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = (
|
home.packages = with pkgs; [
|
||||||
(with pkgs; [
|
];
|
||||||
jdk21
|
|
||||||
])
|
|
||||||
++ (with pkgs.unstablePkgs; [
|
|
||||||
])
|
|
||||||
);
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = username;
|
username = username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
};
|
};
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
username = "dev";
|
username = "";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# You can import other home-manager modules here
|
# You can import other home-manager modules here
|
||||||
+10
-11
@@ -276,14 +276,6 @@ layout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//global blur fine-tuning
|
|
||||||
blur {
|
|
||||||
passes 3 // more passes = stronger blur (default: 3)
|
|
||||||
offset 3.0 // sample distance per pass (default: 3.0)
|
|
||||||
noise 0.02 // grain overlay (default: 0.02)
|
|
||||||
saturation 1.5 // color saturation boost (default: 1.5)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add lines like this to spawn processes at startup.
|
// Add lines like this to spawn processes at startup.
|
||||||
// Note that running niri as a session supports xdg-desktop-autostart,
|
// Note that running niri as a session supports xdg-desktop-autostart,
|
||||||
// which may be more convenient to use.
|
// which may be more convenient to use.
|
||||||
@@ -340,6 +332,15 @@ window-rule {
|
|||||||
clip-to-geometry true
|
clip-to-geometry true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Work around WezTerm's initial configure bug
|
||||||
|
// by setting an empty default-column-width.
|
||||||
|
window-rule {
|
||||||
|
// This regular expression is intentionally made as specific as possible,
|
||||||
|
// since this is the default config, and we want no false positives.
|
||||||
|
// You can get away with just app-id="wezterm" if you want.
|
||||||
|
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
||||||
|
default-column-width {}
|
||||||
|
}
|
||||||
|
|
||||||
// Open the Firefox picture-in-picture player as floating by default.
|
// Open the Firefox picture-in-picture player as floating by default.
|
||||||
window-rule {
|
window-rule {
|
||||||
@@ -398,11 +399,9 @@ binds {
|
|||||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
Mod+T hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm" "start" "--always-new-process"; }
|
Mod+T hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; }
|
||||||
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||||
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||||
Super+Alt+Ctrl+L hotkey-overlay-title="Lock N turn off screen" { spawn "lockNTurnOffScreen"; }
|
|
||||||
|
|
||||||
//Skwd-wall -- doesnt work, works with fuzzel
|
//Skwd-wall -- doesnt work, works with fuzzel
|
||||||
Mod+W hotkey-overlay-title="Skwd-wall" { spawn "skwd-wall-v2"; }
|
Mod+W hotkey-overlay-title="Skwd-wall" { spawn "skwd-wall-v2"; }
|
||||||
//clipse
|
//clipse
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
xdg.configFile."niri/config.kdl".source = ./config.kdl;
|
||||||
|
# --- Niri-Extras ---
|
||||||
|
programs.fuzzel.enable = true;
|
||||||
|
xdg.mime.enable = true;
|
||||||
|
services.playerctld.enable = true;
|
||||||
|
# home.packages = with pkgs; [
|
||||||
|
# mako
|
||||||
|
# ];
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeModules.nixvim
|
||||||
|
];
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
#colorschemes.catppuccin.enable = true;
|
||||||
|
#colorschemes.tokyonight = {
|
||||||
|
# enable = true;
|
||||||
|
# settings = {
|
||||||
|
# style = "night";
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
colorschemes.monokai-pro = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
filter = "classic"; # Options: classic, octagon, pro, machine
|
||||||
|
};
|
||||||
|
};
|
||||||
|
#colorschemes.nightfox = {
|
||||||
|
# enable = true;
|
||||||
|
# flavor = "carbonfox"; # Try "nordfox" or "duskfox" too!
|
||||||
|
#};
|
||||||
|
plugins.lualine.enable = true;
|
||||||
|
vimAlias = true;
|
||||||
|
opts = {
|
||||||
|
number = true;
|
||||||
|
relativenumber = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# --- Sets tab spacing for file types ---
|
||||||
|
autoCmd = [
|
||||||
|
{
|
||||||
|
event = [ "FileType" ];
|
||||||
|
pattern = [ "html" "css" "javascript" "typescript" "nix" ];
|
||||||
|
callback = {
|
||||||
|
__raw = ''
|
||||||
|
function()
|
||||||
|
vim.opt_local.expandtab = true
|
||||||
|
vim.opt_local.shiftwidth = 2
|
||||||
|
vim.opt_local.softtabstop = 2
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
plugins.cmp = {
|
||||||
|
enable = true;
|
||||||
|
autoEnableSources = true;
|
||||||
|
settings.sources = [
|
||||||
|
{ name = "nvim_lsp"; }
|
||||||
|
{ name = "path"; }
|
||||||
|
{ name = "buffer"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
plugins.lsp = {
|
||||||
|
enable = true;
|
||||||
|
servers = {
|
||||||
|
#nil_ls.enable = true;
|
||||||
|
nil_ls = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
nix.flake.autoArchive = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
clangd.enable = true;
|
||||||
|
html.enable = true;
|
||||||
|
pyright.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
plugins.rustaceanvim.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.qutebrowser = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -7,19 +7,12 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
home.packages = with pkgs; [
|
||||||
./wezterm/wezterm.nix
|
# --- CLI utils ---
|
||||||
];
|
wl-clipboard
|
||||||
home.packages = (
|
|
||||||
(with pkgs; [
|
|
||||||
(pkgs.writeShellScriptBin "lg" ''exec ${pkgs.lazygit}/bin/lazygit "$@"'')
|
|
||||||
])
|
|
||||||
++ (with pkgs.unstablePkgs; [
|
|
||||||
clipse
|
clipse
|
||||||
timg
|
timg
|
||||||
])
|
];
|
||||||
);
|
|
||||||
|
|
||||||
# --- Shell environment ---
|
# --- Shell environment ---
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
@@ -27,7 +20,6 @@
|
|||||||
la = "ls -a";
|
la = "ls -a";
|
||||||
lal = "ls -al";
|
lal = "ls -al";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
@@ -40,7 +32,6 @@
|
|||||||
please = "sudo";
|
please = "sudo";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.shell.enableFishIntegration = true;
|
home.shell.enableFishIntegration = true;
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -54,6 +45,13 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
#extraConfig = "include *.conf";
|
||||||
|
settings = {
|
||||||
|
"include" = "colors.conf";
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
@@ -66,7 +64,6 @@
|
|||||||
user.email = "149337190+WinterEkisha@users.noreply.github.com";
|
user.email = "149337190+WinterEkisha@users.noreply.github.com";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.eza.enable = true;
|
programs.eza.enable = true;
|
||||||
programs.bat.enable = true;
|
programs.bat.enable = true;
|
||||||
programs.btop.enable = true;
|
programs.btop.enable = true;
|
||||||
File renamed without changes.
@@ -0,0 +1,36 @@
|
|||||||
|
<div align="center">
|
||||||
|
<img src="https://github.com/sxyazi/yazi/blob/main/assets/logo.png?raw=true" alt="Yazi logo" width="20%">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 align="center">
|
||||||
|
Catppuccin Frappe Flavor for <a href="https://github.com/sxyazi/yazi">Yazi</a>
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
## 👀 Preview
|
||||||
|
|
||||||
|
<img src="preview.png" width="600" />
|
||||||
|
|
||||||
|
## 🎨 Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ya pkg add yazi-rs/flavors:catppuccin-frappe
|
||||||
|
```
|
||||||
|
|
||||||
|
## ⚙️ Usage
|
||||||
|
|
||||||
|
Set the content of your `theme.toml` to enable it as your _dark_ flavor:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[flavor]
|
||||||
|
dark = "catppuccin-frappe"
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure your `theme.toml` doesn't contain anything other than `[flavor]`, unless you want to override certain styles of this flavor.
|
||||||
|
|
||||||
|
See the [Yazi flavor documentation](https://yazi-rs.github.io/docs/flavors/overview) for more details.
|
||||||
|
|
||||||
|
## 📜 License
|
||||||
|
|
||||||
|
The flavor is MIT-licensed, and the included tmTheme is also MIT-licensed.
|
||||||
|
|
||||||
|
Check the [LICENSE](LICENSE) and [LICENSE-tmtheme](LICENSE-tmtheme) file for more details.
|
||||||
@@ -0,0 +1,215 @@
|
|||||||
|
# vim:fileencoding=utf-8:foldmethod=marker
|
||||||
|
|
||||||
|
# : Manager {{{
|
||||||
|
|
||||||
|
[mgr]
|
||||||
|
cwd = { fg = "#81c8be" }
|
||||||
|
|
||||||
|
# Find
|
||||||
|
find_keyword = { fg = "#e5c890", bold = true, italic = true, underline = true }
|
||||||
|
find_position = { fg = "#f4b8e4", bg = "reset", bold = true, italic = true }
|
||||||
|
|
||||||
|
# Marker
|
||||||
|
marker_copied = { fg = "#a6d189", bg = "#a6d189" }
|
||||||
|
marker_cut = { fg = "#e78284", bg = "#e78284" }
|
||||||
|
marker_marked = { fg = "#81c8be", bg = "#81c8be" }
|
||||||
|
marker_selected = { fg = "#e5c890", bg = "#e5c890" }
|
||||||
|
|
||||||
|
# Count
|
||||||
|
count_copied = { fg = "#303446", bg = "#a6d189" }
|
||||||
|
count_cut = { fg = "#303446", bg = "#e78284" }
|
||||||
|
count_selected = { fg = "#303446", bg = "#e5c890" }
|
||||||
|
|
||||||
|
# Border
|
||||||
|
border_symbol = "│"
|
||||||
|
border_style = { fg = "#838ba7" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Tabs {{{
|
||||||
|
|
||||||
|
[tabs]
|
||||||
|
active = { fg = "#303446", bg = "#8caaee", bold = true }
|
||||||
|
inactive = { fg = "#8caaee", bg = "#414559" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Mode {{{
|
||||||
|
|
||||||
|
[mode]
|
||||||
|
|
||||||
|
normal_main = { fg = "#303446", bg = "#8caaee", bold = true }
|
||||||
|
normal_alt = { fg = "#8caaee", bg = "#414559" }
|
||||||
|
|
||||||
|
# Select mode
|
||||||
|
select_main = { fg = "#303446", bg = "#81c8be", bold = true }
|
||||||
|
select_alt = { fg = "#81c8be", bg = "#414559" }
|
||||||
|
|
||||||
|
# Unset mode
|
||||||
|
unset_main = { fg = "#303446", bg = "#eebebe", bold = true }
|
||||||
|
unset_alt = { fg = "#eebebe", bg = "#414559" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Status bar {{{
|
||||||
|
|
||||||
|
[status]
|
||||||
|
# Permissions
|
||||||
|
perm_sep = { fg = "#838ba7" }
|
||||||
|
perm_type = { fg = "#8caaee" }
|
||||||
|
perm_read = { fg = "#e5c890" }
|
||||||
|
perm_write = { fg = "#e78284" }
|
||||||
|
perm_exec = { fg = "#a6d189" }
|
||||||
|
|
||||||
|
# Progress
|
||||||
|
progress_label = { fg = "#ffffff", bold = true }
|
||||||
|
progress_normal = { fg = "#a6d189", bg = "#51576d" }
|
||||||
|
progress_error = { fg = "#e5c890", bg = "#e78284" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Pick {{{
|
||||||
|
|
||||||
|
[pick]
|
||||||
|
border = { fg = "#8caaee" }
|
||||||
|
active = { fg = "#f4b8e4", bold = true }
|
||||||
|
inactive = {}
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Input {{{
|
||||||
|
|
||||||
|
[input]
|
||||||
|
border = { fg = "#8caaee" }
|
||||||
|
title = {}
|
||||||
|
value = {}
|
||||||
|
selected = { reversed = true }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Completion {{{
|
||||||
|
|
||||||
|
[cmp]
|
||||||
|
border = { fg = "#8caaee" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Tasks {{{
|
||||||
|
|
||||||
|
[tasks]
|
||||||
|
border = { fg = "#8caaee" }
|
||||||
|
title = {}
|
||||||
|
hovered = { fg = "#f4b8e4", bold = true }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Which {{{
|
||||||
|
|
||||||
|
[which]
|
||||||
|
mask = { bg = "#414559" }
|
||||||
|
cand = { fg = "#81c8be" }
|
||||||
|
rest = { fg = "#949cbb" }
|
||||||
|
desc = { fg = "#f4b8e4" }
|
||||||
|
separator = " "
|
||||||
|
separator_style = { fg = "#626880" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Help {{{
|
||||||
|
|
||||||
|
[help]
|
||||||
|
on = { fg = "#81c8be" }
|
||||||
|
run = { fg = "#f4b8e4" }
|
||||||
|
hovered = { reversed = true, bold = true }
|
||||||
|
footer = { fg = "#414559", bg = "#c6d0f5" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Spotter {{{
|
||||||
|
|
||||||
|
[spot]
|
||||||
|
border = { fg = "#8caaee" }
|
||||||
|
title = { fg = "#8caaee" }
|
||||||
|
tbl_col = { fg = "#81c8be" }
|
||||||
|
tbl_cell = { fg = "#f4b8e4", bg = "#51576d" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : Notification {{{
|
||||||
|
|
||||||
|
[notify]
|
||||||
|
title_info = { fg = "#a6d189" }
|
||||||
|
title_warn = { fg = "#e5c890" }
|
||||||
|
title_error = { fg = "#e78284" }
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
|
||||||
|
# : File-specific styles {{{
|
||||||
|
|
||||||
|
[filetype]
|
||||||
|
|
||||||
|
rules = [
|
||||||
|
# Image
|
||||||
|
{ mime = "image/*", fg = "#81c8be" },
|
||||||
|
# Media
|
||||||
|
{ mime = "{audio,video}/*", fg = "#e5c890" },
|
||||||
|
# Archive
|
||||||
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "#f4b8e4" },
|
||||||
|
# Document
|
||||||
|
{ mime = "application/{pdf,doc,rtf}", fg = "#a6d189" },
|
||||||
|
# Virtual file system
|
||||||
|
{ mime = "vfs/{absent,stale}", fg = "#949cbb" },
|
||||||
|
# Fallback
|
||||||
|
{ url = "*", fg = "#c6d0f5" },
|
||||||
|
{ url = "*/", fg = "#8caaee" },
|
||||||
|
]
|
||||||
|
|
||||||
|
# : }}}
|
||||||
|
|
||||||
|
[icon]
|
||||||
|
|
||||||
|
dirs = [
|
||||||
|
{ name = ".config", text = "", fg = "#f4b8e4" },
|
||||||
|
{ name = ".git", text = "", fg = "#81c8be" },
|
||||||
|
{ name = ".github", text = "", fg = "#8caaee" },
|
||||||
|
{ name = ".npm", text = "", fg = "#8caaee" },
|
||||||
|
{ name = "Desktop", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Development", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Documents", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Downloads", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Library", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Movies", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Music", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Pictures", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Public", text = "", fg = "#81c8be" },
|
||||||
|
{ name = "Videos", text = "", fg = "#81c8be" },
|
||||||
|
]
|
||||||
|
conds = [
|
||||||
|
# Special files
|
||||||
|
{ if = "orphan", text = "", fg = "#c6d0f5" },
|
||||||
|
{ if = "link", text = "", fg = "#838ba7" },
|
||||||
|
{ if = "block", text = "", fg = "#eebebe" },
|
||||||
|
{ if = "char", text = "", fg = "#eebebe" },
|
||||||
|
{ if = "fifo", text = "", fg = "#eebebe" },
|
||||||
|
{ if = "sock", text = "", fg = "#eebebe" },
|
||||||
|
{ if = "sticky", text = "", fg = "#eebebe" },
|
||||||
|
{ if = "dummy", text = "", fg = "#e78284" },
|
||||||
|
|
||||||
|
# Fallback
|
||||||
|
{ if = "dir & hovered", text = "", fg = "#8caaee" },
|
||||||
|
{ if = "dir", text = "", fg = "#8caaee" },
|
||||||
|
{ if = "exec", text = "", fg = "#a6d189" },
|
||||||
|
{ if = "!dir", text = "", fg = "#c6d0f5" },
|
||||||
|
]
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 574 KiB |
File diff suppressed because it is too large.
Load diff
@@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
shellWrapperName = "y";
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
flavors = {
|
flavors = {
|
||||||
|
catppuccin-frappe = ./catppuccin-frappe;
|
||||||
};
|
};
|
||||||
theme = {
|
theme = {
|
||||||
flavor = {
|
flavor = {
|
||||||
|
#dark = "catppuccin-frappe";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -36,16 +37,6 @@
|
|||||||
run = ''shell 'wl-copy --type "$(file --mime-type -b "$1")" < "$1"' --confirm'';
|
run = ''shell 'wl-copy --type "$(file --mime-type -b "$1")" < "$1"' --confirm'';
|
||||||
desc = "Copy file data to clipboard with matching MIME type";
|
desc = "Copy file data to clipboard with matching MIME type";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
on = ";";
|
|
||||||
run = "shell --interactive --block";
|
|
||||||
desc = "Run a shell command (block until finish)";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
on = ":";
|
|
||||||
run = "shell --interactive";
|
|
||||||
desc = "Run a shell command (yazi background)";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -21,10 +21,11 @@ in
|
|||||||
# inputs.hardware.nixosModules.common-ssd
|
# inputs.hardware.nixosModules.common-ssd
|
||||||
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../Base.nix
|
../common/global/base.nix
|
||||||
|
|
||||||
../common/users/Winter/default.nix
|
../common/users/Winter/default.nix
|
||||||
../common/features/DesktopNiri.nix
|
../common/features/DesktopNiri.nix
|
||||||
|
../common/features/DesktopKDEPlasma.nix
|
||||||
../common/features/Applications.nix
|
../common/features/Applications.nix
|
||||||
#../common/features/servers/minecraft.nix
|
#../common/features/servers/minecraft.nix
|
||||||
|
|
||||||
@@ -60,6 +61,9 @@ in
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
|
users = {
|
||||||
|
Winter = import ../../home/Winter/${hostname}.nix; # FIXME
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
File renamed without changes.
@@ -1,86 +0,0 @@
|
|||||||
# This is your system's configuration file.
|
|
||||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
hostname = ""; #FIXME, also ensure /home/username/hostname.nix
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# You can import other NixOS modules here
|
|
||||||
imports = [
|
|
||||||
# If you want to use modules your own flake exports (from modules/nixos):
|
|
||||||
# inputs.self.nixosModules.example
|
|
||||||
|
|
||||||
# Or modules from other flakes (such as nixos-hardware):
|
|
||||||
# inputs.hardware.nixosModules.common-cpu-amd
|
|
||||||
# inputs.hardware.nixosModules.common-ssd
|
|
||||||
|
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
../common/users/Winter/default.nix
|
|
||||||
#../common/global/default.nix
|
|
||||||
#../common/features/Desktop.nix
|
|
||||||
#../common/features/Applications.nix
|
|
||||||
#../common/features/servers/minecraft.nix
|
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs = {
|
|
||||||
# You can add overlays here
|
|
||||||
overlays = [
|
|
||||||
# Add overlays your own flake exports (from overlays and pkgs dir):
|
|
||||||
inputs.self.overlays.additions
|
|
||||||
inputs.self.overlays.modifications
|
|
||||||
inputs.self.overlays.unstable-packages
|
|
||||||
|
|
||||||
# You can also add overlays exported from other flakes:
|
|
||||||
# neovim-nightly-overlay.overlays.default
|
|
||||||
|
|
||||||
# Or define it inline, for example:
|
|
||||||
# (final: prev: {
|
|
||||||
# hi = final.hello.overrideAttrs (oldAttrs: {
|
|
||||||
# patches = [ ./change-hello-to-hi.patch ];
|
|
||||||
# });
|
|
||||||
# })
|
|
||||||
];
|
|
||||||
# Configure your nixpkgs instance
|
|
||||||
config = {
|
|
||||||
# Disable if you don't want unfree packages
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# build home-manager with nixos-rebuild and not home-manager command
|
|
||||||
home-manager = {
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
backupFileExtension = "backup";
|
|
||||||
users = {
|
|
||||||
EXAMPLE = import ../../../home/Ricky/EXAMPLE/${hostname}.nix; # FIXME
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = hostname;
|
|
||||||
|
|
||||||
# This setups a SSH server. Very important if you're setting up a headless system.
|
|
||||||
# Feel free to remove if you don't need it.
|
|
||||||
#Unused, keeping for later reference
|
|
||||||
services.openssh = {
|
|
||||||
enable = false;
|
|
||||||
settings = {
|
|
||||||
PermitRootLogin = "no";
|
|
||||||
PasswordAuthentication = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
||||||
#system.stateVersion = "25.11"; #FIXME, should be fine to change on a fresh install
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
# This is your system's configuration file.
|
|
||||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
hostname = "nixos";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# You can import other NixOS modules here
|
|
||||||
imports = [
|
|
||||||
# If you want to use modules your own flake exports (from modules/nixos):
|
|
||||||
# inputs.self.nixosModules.example
|
|
||||||
|
|
||||||
# Or modules from other flakes (such as nixos-hardware):
|
|
||||||
# inputs.hardware.nixosModules.common-cpu-amd
|
|
||||||
# inputs.hardware.nixosModules.common-ssd
|
|
||||||
|
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
#../common/users/Winter/default.nix
|
|
||||||
../common/users/dev/default.nix
|
|
||||||
#../common/global/default.nix
|
|
||||||
../common/features/DesktopNiri.nix
|
|
||||||
#../common/features/Applications.nix
|
|
||||||
#../common/features/servers/minecraft.nix
|
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs = {
|
|
||||||
# You can add overlays here
|
|
||||||
overlays = [
|
|
||||||
# Add overlays your own flake exports (from overlays and pkgs dir):
|
|
||||||
inputs.self.overlays.additions
|
|
||||||
inputs.self.overlays.modifications
|
|
||||||
inputs.self.overlays.unstable-packages
|
|
||||||
|
|
||||||
# You can also add overlays exported from other flakes:
|
|
||||||
# neovim-nightly-overlay.overlays.default
|
|
||||||
|
|
||||||
# Or define it inline, for example:
|
|
||||||
# (final: prev: {
|
|
||||||
# hi = final.hello.overrideAttrs (oldAttrs: {
|
|
||||||
# patches = [ ./change-hello-to-hi.patch ];
|
|
||||||
# });
|
|
||||||
# })
|
|
||||||
];
|
|
||||||
# Configure your nixpkgs instance
|
|
||||||
config = {
|
|
||||||
# Disable if you don't want unfree packages
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# build home-manager with nixos-rebuild and not home-manager command
|
|
||||||
home-manager = {
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
backupFileExtension = "backup";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = hostname;
|
|
||||||
|
|
||||||
# This setups a SSH server. Very important if you're setting up a headless system.
|
|
||||||
# Feel free to remove if you don't need it.
|
|
||||||
#Unused, keeping for later reference
|
|
||||||
services.openssh = {
|
|
||||||
enable = false;
|
|
||||||
settings = {
|
|
||||||
PermitRootLogin = "no";
|
|
||||||
PasswordAuthentication = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
||||||
system.stateVersion = "25.11";
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-uuid/37e1fcd1-4321-4010-81f7-a3c1443d2a2d";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/AF44-E292";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
||||||
@@ -25,14 +25,15 @@ in
|
|||||||
|
|
||||||
# Import your generated (nixos-generate-config) hardware configuration
|
# Import your generated (nixos-generate-config) hardware configuration
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../Base.nix
|
../common/global/base.nix
|
||||||
|
|
||||||
../common/users/Winter/default.nix
|
../common/users/Winter/default.nix
|
||||||
../common/users/Ekisha/default.nix
|
../common/users/Ekisha/default.nix
|
||||||
../common/users/Tester/default.nix
|
../common/users/Tester/default.nix
|
||||||
../common/features/DesktopNiri.nix
|
../common/features/DesktopNiri.nix
|
||||||
|
../common/features/DesktopKDEPlasma.nix
|
||||||
../common/features/Applications.nix
|
../common/features/Applications.nix
|
||||||
../common/servers/minecraft.nix
|
../common/features/servers/minecraft.nix
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
@@ -66,6 +67,12 @@ in
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
|
users = {
|
||||||
|
Winter = import ../../home/Winter/${hostname}.nix;
|
||||||
|
minecraft = import ../../home/Winter/minecraft.nix;
|
||||||
|
Ekisha = import ../../home/Ekisha/${hostname}.nix;
|
||||||
|
Tester = import ../../home/Tester/${hostname}.nix;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.extraHosts = "
|
networking.extraHosts = "
|
||||||
File renamed without changes.
@@ -1,48 +0,0 @@
|
|||||||
# This is your system's configuration file.
|
|
||||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
# --- Display & window managers ---
|
|
||||||
services.displayManager.sddm.enable = true;
|
|
||||||
services.displayManager.sddm.wayland.enable = true;
|
|
||||||
programs.niri.enable = true;
|
|
||||||
|
|
||||||
xdg.portal = { # Prevents niri from opening files with nautilus
|
|
||||||
enable = true;
|
|
||||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
||||||
config.niri = {
|
|
||||||
default = [ "gnome" "gtk" ];
|
|
||||||
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
programs.seahorse.enable = true;
|
|
||||||
|
|
||||||
services.blueman.enable = true; #bluetooth
|
|
||||||
|
|
||||||
environment.systemPackages = (
|
|
||||||
(with pkgs; [
|
|
||||||
# -- Stable system utilities --
|
|
||||||
brightnessctl
|
|
||||||
playerctl
|
|
||||||
swaylock
|
|
||||||
])
|
|
||||||
++ (with pkgs.unstablePkgs; [
|
|
||||||
# -- Fast-moving Wayland tools --
|
|
||||||
xwayland-satellite
|
|
||||||
fuzzel
|
|
||||||
waybar
|
|
||||||
])
|
|
||||||
++ [
|
|
||||||
# -- External flake inputs --
|
|
||||||
inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww
|
|
||||||
inputs.skwd-wall.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
username = "minecraft"; #FIXME
|
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
||||||
in {
|
|
||||||
users.users.${username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ifTheyExist [
|
|
||||||
"minecraft"
|
|
||||||
];
|
|
||||||
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../../home/Winter/servers/${username}.nix;
|
|
||||||
|
|
||||||
security.pam.services = {
|
|
||||||
swaylock = {};
|
|
||||||
${username}.enableGnomeKeyring = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
username = "Winter";
|
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
||||||
in {
|
|
||||||
users.users.${username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ifTheyExist [
|
|
||||||
"audio"
|
|
||||||
"deluge"
|
|
||||||
"docker"
|
|
||||||
"git"
|
|
||||||
"i2c"
|
|
||||||
"libvirtd"
|
|
||||||
"minecraft"
|
|
||||||
"mysql"
|
|
||||||
"wpa_supplicant"
|
|
||||||
"plugdev"
|
|
||||||
"podman"
|
|
||||||
"tss"
|
|
||||||
"video"
|
|
||||||
"wheel"
|
|
||||||
"wireshark"
|
|
||||||
];
|
|
||||||
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
|
|
||||||
|
|
||||||
security.pam.services = {
|
|
||||||
swaylock = {};
|
|
||||||
${username}.enableGnomeKeyring = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
username = ""; #FIXME
|
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
||||||
in {
|
|
||||||
users.users.${username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = ifTheyExist [
|
|
||||||
"audio"
|
|
||||||
"deluge"
|
|
||||||
"docker"
|
|
||||||
"git"
|
|
||||||
"i2c"
|
|
||||||
"libvirtd"
|
|
||||||
"minecraft"
|
|
||||||
"mysql"
|
|
||||||
"wpa_supplicant"
|
|
||||||
"plugdev"
|
|
||||||
"podman"
|
|
||||||
"tss"
|
|
||||||
"video"
|
|
||||||
"wheel"
|
|
||||||
"wireshark"
|
|
||||||
];
|
|
||||||
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
|
|
||||||
|
|
||||||
security.pam.services = {
|
|
||||||
swaylock = {};
|
|
||||||
${username}.enableGnomeKeyring = true; #FIXME
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -60,6 +60,9 @@ in
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
|
users = {
|
||||||
|
EXAMPLE = import ../../home/EXAMPLE/${hostname}.nix; # FIXME
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
@@ -79,5 +82,5 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
#system.stateVersion = "25.11"; #FIXME, should be fine to change on a fresh install
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
@@ -20,6 +20,9 @@
|
|||||||
"org.kde.krita"
|
"org.kde.krita"
|
||||||
"com.mojang.Minecraft"
|
"com.mojang.Minecraft"
|
||||||
"org.prismlauncher.PrismLauncher"
|
"org.prismlauncher.PrismLauncher"
|
||||||
|
"org.gnome.Showtime" #Duplicate -testing
|
||||||
|
"io.github.diegopvlk.Cine" #Duplicate -testing
|
||||||
|
"org.gnome.gThumb"
|
||||||
"org.gnome.Calculator"
|
"org.gnome.Calculator"
|
||||||
"net.lutris.Lutris"
|
"net.lutris.Lutris"
|
||||||
];
|
];
|
||||||
File renamed without changes.
@@ -0,0 +1,31 @@
|
|||||||
|
# This is your system's configuration file.
|
||||||
|
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# --- Display & window managers ---
|
||||||
|
services.displayManager.sddm.enable = true;
|
||||||
|
services.displayManager.sddm.wayland.enable = true;
|
||||||
|
programs.niri.enable = true;
|
||||||
|
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
programs.seahorse.enable = true;
|
||||||
|
|
||||||
|
services.blueman.enable = true; #bluetooth
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# -- Niri extras --
|
||||||
|
xwayland-satellite
|
||||||
|
fuzzel
|
||||||
|
waybar
|
||||||
|
brightnessctl
|
||||||
|
playerctl
|
||||||
|
swaylock
|
||||||
|
inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww
|
||||||
|
inputs.skwd-wall.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
];
|
||||||
|
}
|
||||||
+13
-3
@@ -7,12 +7,22 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
|
||||||
./users/minecraft.nix
|
|
||||||
];
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 25565 25567 ];
|
allowedTCPPorts = [ 25565 25567 ];
|
||||||
allowedUDPPorts = [ 25565 25567];
|
allowedUDPPorts = [ 25565 25567];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
pkgs.jdk21
|
||||||
|
];
|
||||||
|
|
||||||
|
users.users = {
|
||||||
|
minecraft = {
|
||||||
|
isNormalUser = true;
|
||||||
|
shell = pkgs.bashInteractive;
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -7,11 +7,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
repoDomain = "thearcticcircle.ddns.net";
|
|
||||||
repoPath = "git/WinterEkisha/nix-config";
|
|
||||||
repoBranch = "main";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
@@ -29,12 +24,12 @@ in
|
|||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
systemd.sleep.settings.Sleep = {
|
systemd.sleep.extraConfig = ''
|
||||||
AllowSuspend = "no";
|
AllowSuspend=no
|
||||||
AllowHibernation = "no";
|
AllowHibernation=no
|
||||||
AllowHybridSleep = "no";
|
AllowHybridSleep=no
|
||||||
AllowSuspendThenHibernate = "no";
|
AllowSuspendThenHibernate=no
|
||||||
};
|
'';
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /home/shared 0777 root root -"
|
"d /home/shared 0777 root root -"
|
||||||
@@ -48,12 +43,9 @@ in
|
|||||||
xdg.mime.enable = true;
|
xdg.mime.enable = true;
|
||||||
services.tumbler.enable = true;
|
services.tumbler.enable = true;
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
services.udisks2.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# -- File manager --
|
# -- File manager --
|
||||||
nemo-with-extensions # Stand alone GUI
|
|
||||||
file-roller
|
|
||||||
imagemagick
|
imagemagick
|
||||||
poppler
|
poppler
|
||||||
ffmpeg
|
ffmpeg
|
||||||
@@ -64,9 +56,6 @@ in
|
|||||||
lm_sensors
|
lm_sensors
|
||||||
ripgrep
|
ripgrep
|
||||||
unzip
|
unzip
|
||||||
kdePackages.okular # PDF Viewer
|
|
||||||
kdePackages.qtsvg
|
|
||||||
qt6.qtwayland
|
|
||||||
];
|
];
|
||||||
fonts.packages = [ ] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
fonts.packages = [ ] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
||||||
|
|
||||||
+1
-4
@@ -16,14 +16,11 @@ in {
|
|||||||
"video"
|
"video"
|
||||||
];
|
];
|
||||||
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
|
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
${username}.enableGnomeKeyring = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
+2
-4
@@ -12,14 +12,12 @@ in {
|
|||||||
extraGroups = ifTheyExist [
|
extraGroups = ifTheyExist [
|
||||||
];
|
];
|
||||||
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: ensure correct paths
|
||||||
home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
${username}.enableGnomeKeyring = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
username = "dev";
|
username = "Winter";
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||||
in {
|
in {
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
@@ -26,10 +26,9 @@ in {
|
|||||||
"wheel"
|
"wheel"
|
||||||
"wireshark"
|
"wireshark"
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
@@ -27,11 +27,10 @@ in {
|
|||||||
"wireshark"
|
"wireshark"
|
||||||
];
|
];
|
||||||
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: ensure correct paths
|
||||||
home-manager.users.${username} = import ../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
swaylock = {};
|
swaylock = {};
|
||||||
Reference in new issue
Block a user