Compare commits

..

9 Commits

Author SHA1 Message Date
Zynh Ludwig 0d2734734a ugggGGGG 2024-08-19 07:11:52 -07:00
Zynh Ludwig f1ddb87f03 pkgs: fix borderlessBrowser 2024-08-19 07:10:03 -07:00
Zynh Ludwig a52be13048 trying something? 2024-08-19 07:10:03 -07:00
Zynh Ludwig 41e1f7239a BROKEN: INFINITE RECURSION 2024-08-19 06:50:35 -07:00
Zynh Ludwig 56d5b70499 flake: overlay lib 2024-08-19 06:27:10 -07:00
Zynh Ludwig 57d67276a0 home: nixpkgs disable nixpkgs config 2024-08-19 06:16:59 -07:00
Zynh Ludwig 659d9d7cf8 snowhawk: disable nixpkgs config 2024-08-19 06:16:59 -07:00
Zynh Ludwig 1294bb4972 builders: makePkgs 2024-08-19 06:16:59 -07:00
Zynh Ludwig beb50655f6 xivlauncher: junk testing 2024-08-19 06:02:44 -07:00
7 changed files with 36 additions and 24 deletions

View File

@ -15,8 +15,8 @@ in
{ {
imports = getModules ./.; imports = getModules ./.;
nixpkgs.config.allowUnfree = true; # nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ self.overlays.default ]; # nixpkgs.overlays = [ self.overlays.default ];
snowhawk.user.enable = lib.mkDefault true; snowhawk.user.enable = lib.mkDefault true;
snowhawk.tmux.enable = lib.mkDefault true; snowhawk.tmux.enable = lib.mkDefault true;

View File

@ -19,6 +19,12 @@ in
(writeShellScriptBin "iinact" '' (writeShellScriptBin "iinact" ''
${pkgs.brave}/bin/brave --new-window "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws" ${pkgs.brave}/bin/brave --new-window "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws"
'') '')
# (lib.mkIf cfg.textools.enable pkgs.wrapWine {
# # https://gist.github.com/helpful-fox-senko-san/6238143f5c7352ab44e62c5a0f7f7642
# name = "textools";
# tricks = [ "dotnet48" "dxvk" ];
# })
] ++ map (name: (writeShellScriptBin name launchffxiv)) [ "ff14" "xivlauncher" ]; ] ++ map (name: (writeShellScriptBin name launchffxiv)) [ "ff14" "xivlauncher" ];
}; };
} }

View File

@ -1,12 +1,21 @@
{ nixpkgs, self, ... }@inputs: { nixpkgs, self, ... }@inputs:
let let
lib = nixpkgs.lib.extend (import ../lib); makePkgs = system: (import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ self.overlays.default ];
});
lib = nixpkgs.lib;
# libExt = import ./. lib;
inherit (inputs.home-manager.lib) homeManagerConfiguration; inherit (inputs.home-manager.lib) homeManagerConfiguration;
inherit (nixpkgs.lib) nixosSystem; inherit (lib) nixosSystem;
inherit (lib.strings) optionalString; inherit (lib.strings) optionalString;
inherit (lib.attrsets) nameValuePair; inherit (lib.attrsets) nameValuePair;
# inherit (libExt) right;
in in
rec { rec {
toPartialNixosConfig = toPartialNixosConfig =
@ -14,8 +23,9 @@ rec {
nameValuePair nameValuePair
hostname hostname
(nixosSystem { (nixosSystem {
inherit system; pkgs = makePkgs system;
specialArgs = { inherit inputs lib self; }; specialArgs = { inherit inputs self; };
modules = [ modules = [
../hosts/${hostname}/hardware-configuration.nix ../hosts/${hostname}/hardware-configuration.nix
../hosts/${hostname}/configuration.nix ../hosts/${hostname}/configuration.nix
@ -24,10 +34,8 @@ rec {
}); });
compileSystems = compileSystems =
systems: systems:
lib.right (builtins.listToAttrs
builtins.listToAttrs (map toPartialNixosConfig systems));
(map toPartialNixosConfig)
systems;
toPartialHomeManagerConfig = toPartialHomeManagerConfig =
{ user, system, hostname ? "", configHostname ? "" }: { user, system, hostname ? "", configHostname ? "" }:
@ -39,11 +47,8 @@ rec {
nameValuePair nameValuePair
"${user}${hostStr}" "${user}${hostStr}"
(homeManagerConfiguration { (homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system}; pkgs = makePkgs system;
extraSpecialArgs = { extraSpecialArgs = { inherit inputs self; };
inherit inputs self;
lib = lib.extend (_: _: inputs.home-manager.lib);
};
modules = [ modules = [
../hosts/${configHost}/home.nix ../hosts/${configHost}/home.nix
@ -51,8 +56,6 @@ rec {
}); });
compileHomes = compileHomes =
systems: systems:
lib.right (builtins.listToAttrs
builtins.listToAttrs (map toPartialHomeManagerConfig systems));
(map toPartialHomeManagerConfig)
systems;
} }

View File

@ -1,5 +1,4 @@
final: prev: lib:
with prev;
rec { rec {
# Ternary operator # Ternary operator
# Exaample: # Exaample:
@ -10,7 +9,7 @@ rec {
# Right-associate and chain following single-operand functions # Right-associate and chain following single-operand functions
# Example: # Example:
# right f g h 1 => f(g(h(1))) # right f g h 1 => f(g(h(1)))
right = f: g: tern (isFunction g) right = f: g: tern (lib.isFunction g)
(right (x: f (g (x)))) (right (x: f (g (x))))
(f (g)); (f (g));
} }

2
lib/overlay.nix Normal file
View File

@ -0,0 +1,2 @@
final: prev:
(import ./. { lib = prev; })

View File

@ -14,5 +14,5 @@ in
snowhawk.audio.enable = lib.mkDefault true; snowhawk.audio.enable = lib.mkDefault true;
snowhawk.env.enable = lib.mkDefault true; snowhawk.env.enable = lib.mkDefault true;
snowhawk.sops.enable = lib.mkDefault true; snowhawk.sops.enable = lib.mkDefault true;
snowhawk.nixpkgs.enable = lib.mkDefault true; snowhawk.nixpkgs.enable = lib.mkDefault false;
} }

View File

@ -3,7 +3,9 @@ let
callDefaultPackage = path: prev.callPackage path { }; callDefaultPackage = path: prev.callPackage path { };
in in
{ {
lib = prev.lib.extend import ../lib/overlay.nix;
wrapWine = callDefaultPackage ./wrapWine; wrapWine = callDefaultPackage ./wrapWine;
writeXrandrScriptBin = callDefaultPackage ./writeXrandrScriptBin; writeXrandrScriptBin = callDefaultPackage ./writeXrandrScriptBin;
borderlessBrowser = callDefaultPackage ./writeXrandrScriptBin; borderlessBrowser = callDefaultPackage ./borderlessBrowser;
} }