Compare commits

..

4 Commits

Author SHA1 Message Date
254b47b835 added nvim 2026-10-24 15:41:04 +01:00
5642978ea0 added zsh module 2026-10-24 15:33:17 +01:00
f0e6cec173 added zsh features 2026-10-24 15:25:30 +01:00
3f8661d070 added bashrc 2026-10-24 15:12:39 +01:00
7 changed files with 199 additions and 1 deletions

124
flake.lock generated
View File

@@ -64,11 +64,133 @@
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1792502884,
"narHash": "sha256-IoNisKcGbUjdd45qCqywGMCYmZ5EnkxezvLII0FWwNA=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "02c087f3fe673c9e317f206a627cb6b910336dbe",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1787070829,
"narHash": "sha256-vXNVDVtvfiQuXthP0NHPFdNvvMTkGpx0UP8oddIWbNk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0ae2bc1419c3f345984c2629e72e7a631820fa4d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1786719841,
"narHash": "sha256-QcpQOT0NQEFkI77t+YXPZqDJc35iIodG7zinieOwFUg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8be7bd0c83f12e2e3bbba07c9044d6fed9e66f7f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1791966044,
"narHash": "sha256-t1hT8UW97rFCWCJO7/pClvu0AhLN5V3uir2M0ic4w/Q=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "319e4cebef10cbb636c6ea392137b52ad105336a",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nvim": {
"inputs": {
"nixpkgs": "nixpkgs_2",
"wrappers": "wrappers"
},
"locked": {
"lastModified": 1787153199,
"narHash": "sha256-FpLklQh5O31LY0GejnphNaGI/GZpuRltF9eZbAKlWkk=",
"ref": "refs/heads/main",
"rev": "759a8455709d9c098a0201fb581801d41b270b29",
"revCount": 105,
"type": "git",
"url": "https://git.voidarc.co.uk/voidarc/nvim"
},
"original": {
"type": "git",
"url": "https://git.voidarc.co.uk/voidarc/nvim"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"import-tree": "import-tree",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable",
"nvim": "nvim",
"wrappers": "wrappers_2"
}
},
"wrappers": {
"inputs": {
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1786998037,
"narHash": "sha256-QJ8QmuqmiOiHCT0HidqwlRpejNfCVcizLmLtzRWHWeQ=",
"owner": "BirdeeHub",
"repo": "nix-wrapper-modules",
"rev": "780954265c11444ed0c9e164115360f4f5d24d0b",
"type": "github"
},
"original": {
"owner": "BirdeeHub",
"repo": "nix-wrapper-modules",
"type": "github"
}
},
"wrappers_2": {
"inputs": {
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1792532408,
"narHash": "sha256-rasFTcWJo7CdUaCFcxcDTnMWlY6WxZo/X6EsbEqgIpM=",
"owner": "nix-community",
"repo": "nix-wrapper-modules",
"rev": "e40208b34e08f764e6b972eb0ee919706e960eb2",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-wrapper-modules",
"type": "github"
}
}
},

View File

@@ -5,9 +5,18 @@
# Latest stable nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
# Unstable nixpkgs
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Flake parts utils
flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree";
# My Nvim config
nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim";
# Nix Wrapper Modules
wrappers.url = "github:nix-community/nix-wrapper-modules";
};
# Default import-tree output

View File

@@ -0,0 +1,2 @@
export SOME="some"
# other bash stuff

View File

@@ -0,0 +1,14 @@
{inputs, ...}: {
perSystem = {pkgs, ...}: {
packages = {
example = pkgs.hello;
bash = inputs.wrappers.lib.wrapPackage {
inherit pkgs;
package = pkgs.bash;
flags = {
"--rcfile" = ./bashrc;
};
};
};
};
}

View File

@@ -0,0 +1,41 @@
{
inputs,
moduleWithSystem,
...
}: {
flake.nixosModules.zsh = moduleWithSystem ({
pkgs,
self',
...
}: {
nixpkgs.overlays = [
(final: prev: {
zsh = self'.packages.zsh;
})
];
programs.zsh = {
enable = true;
};
});
perSystem = {
pkgs,
unstablePkgs,
inputs',
lib,
...
}: {
packages.zsh = inputs.wrappers.wrappers.zsh.wrap {
inherit pkgs;
zshAliases = {
some = lib.getExe unstablePkgs.vim;
v = lib.getExe inputs'.nvim.packages.default;
ff = lib.getExe pkgs.fastfetch;
cat = lib.getExe pkgs.bat;
};
zshrc.content = ''
export SOME=some
'';
};
};
}

View File

@@ -10,6 +10,7 @@
modules = with self.nixosModules; [
newHostConfiguration
system
zsh
];
};
}

View File

@@ -0,0 +1,9 @@
{inputs, ...}: {
perSystem = {system, ...}: {
_module.args = {
unstablePkgs = import inputs.nixpkgs-unstable {
inherit system;
};
};
};
}