Refactor using flake-parts (#4)

Reviewed-on: https://git.earth2077.fr/leana/.files/pulls/4
Co-authored-by: Léana 江 <leana.jiang@icloud.com>
Co-committed-by: Léana 江 <leana.jiang@icloud.com>
This commit is contained in:
Léana 江 2024-05-02 17:03:36 +00:00 committed by Léana 江
parent 06f76e0a37
commit db5aaa5811
17 changed files with 343 additions and 294 deletions

View file

@ -1,11 +1,13 @@
{
pkgs,
unstable,
myPkgs,
config,
lib,
...
}:
let
inherit (pkgs) unstable myPkgs;
in
{
imports = [
./fish

View file

@ -1,4 +1,7 @@
{ config, unstable, ... }:
{ config, pkgs, ... }:
let
inherit (pkgs) unstable;
in
{
programs.direnv = {
enable = true;

View file

@ -2,12 +2,11 @@
config,
pkgs,
lib,
neovim-pin,
...
}:
{
programs.neovim = {
package = neovim-pin.neovim-unwrapped;
package = pkgs.neovim-pin.neovim-unwrapped;
enable = true;
defaultEditor = true;
extraPackages =

View file

@ -1,11 +1,7 @@
{
pkgs,
unstable,
myPkgs,
lib,
ghc-pin,
...
}:
{ pkgs, lib, ... }:
let
inherit (pkgs) myPkgs unstable ghc-pin;
in
{
imports = [ ./fonts.nix ];

View file

@ -1,4 +1,7 @@
{ pkgs, myPkgs, ... }:
{ pkgs, ... }:
let
inherit (pkgs) myPkgs;
in
{
home.packages = [
myPkgs.hiosevka-nerd-font-mono

View file

@ -1,4 +1,7 @@
{ pkgs, nur, ... }:
{ pkgs, ... }:
let
inherit (pkgs) nur;
in
{
programs.firefox = {
enable = true;

View file

@ -1,9 +1,7 @@
{
pkgs,
myPkgs,
wired,
...
}:
{ pkgs, ... }:
let
inherit (pkgs) myPkgs wired;
in
{
home.pointerCursor = {
x11.enable = true;

View file

@ -1,4 +1,7 @@
{ pkgs, myPkgs, ... }:
{ pkgs, ... }:
let
inherit (pkgs) myPkgs;
in
{
home.packages = [
myPkgs.hiosevka-nerd-font-mono