añade configuración necesaria para shenvs
This commit is contained in:
parent
9f72d24109
commit
4b9e6bb4ee
15
flake.nix
15
flake.nix
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
|
||||
nur.url = "github:nix-community/NUR";
|
||||
|
@ -10,7 +9,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = {self, nixpkgs, home-manager, nur, ...}: {
|
||||
outputs = {self, nixpkgs, home-manager, nur, ...}:
|
||||
let
|
||||
packages = import ./pkgs;
|
||||
in
|
||||
{
|
||||
nixosConfigurations.posixlycorrect = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ( import ./base ) ];
|
||||
|
@ -18,12 +21,16 @@
|
|||
|
||||
homeConfigurations."fabian@posixlycorrect" = home-manager.lib.homeManagerConfiguration {
|
||||
system = "x86_64-linux";
|
||||
configuration = import ./home {inherit nixpkgs;};
|
||||
configuration = import ./home {inherit self nixpkgs;};
|
||||
username = "fabian";
|
||||
homeDirectory = "/home/fabian";
|
||||
stateVersion = "21.11";
|
||||
};
|
||||
|
||||
packages.x86_64-linux = import ./pkgs nixpkgs.legacyPackages.x86_64-linux;
|
||||
packages.x86_64-linux = packages nixpkgs.legacyPackages.x86_64-linux;
|
||||
|
||||
overlay = self: super: {
|
||||
local = packages super;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
# man page: https://rycee.gitlab.io/home-manager/options.html
|
||||
|
||||
{ nixpkgs }:
|
||||
{ config, pkgs, lib, ... }: {
|
||||
{ nixpkgs, self }:
|
||||
{ config, pkgs, lib, ... }: with lib; {
|
||||
|
||||
nixpkgs.overlays = [ self.overlay ];
|
||||
|
||||
imports = [ ./steam ];
|
||||
|
||||
home = {
|
||||
|
@ -14,6 +16,11 @@
|
|||
"EDITOR" = "nvim";
|
||||
"TERMINAL" = "kitty";
|
||||
};
|
||||
file = {
|
||||
".shenvs".text = let
|
||||
keeps = { gcKeep ? [] }: concatStringsSep "\n" (map toString gcKeep);
|
||||
in keeps (import ../shenvs/config.nix pkgs.local.shenvs);
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.tmpfiles.rules = [
|
||||
|
|
|
@ -16,7 +16,7 @@ with pkgs.lib; let
|
|||
value = import (root + "/${name}");
|
||||
};
|
||||
in
|
||||
mapAttrs' entry (filterAttrs isMatch (readDir root));
|
||||
mapAttrs' entry (filterAttrs isMatch (builtins.readDir root));
|
||||
|
||||
in {
|
||||
shenvs = let
|
||||
|
|
5
shenvs/config.nix
Normal file
5
shenvs/config.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
shenvs: {
|
||||
gcKeep = with shenvs; [
|
||||
armasm
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue