Compare commits
No commits in common. "0d2734734ade1834bda2770c5116512c369d2999" and "97bb4b632777deae123f812ffc5d71ce55f8db9d" have entirely different histories.
0d2734734a
...
97bb4b6327
|
@ -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;
|
||||||
|
|
|
@ -19,12 +19,6 @@ 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" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,12 @@
|
||||||
{ nixpkgs, self, ... }@inputs:
|
{ nixpkgs, self, ... }@inputs:
|
||||||
|
|
||||||
let
|
let
|
||||||
makePkgs = system: (import nixpkgs {
|
lib = nixpkgs.lib.extend (import ../lib);
|
||||||
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 (lib) nixosSystem;
|
inherit (nixpkgs.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 =
|
||||||
|
@ -23,9 +14,8 @@ rec {
|
||||||
nameValuePair
|
nameValuePair
|
||||||
hostname
|
hostname
|
||||||
(nixosSystem {
|
(nixosSystem {
|
||||||
pkgs = makePkgs system;
|
inherit system;
|
||||||
specialArgs = { inherit inputs self; };
|
specialArgs = { inherit inputs lib self; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
../hosts/${hostname}/hardware-configuration.nix
|
../hosts/${hostname}/hardware-configuration.nix
|
||||||
../hosts/${hostname}/configuration.nix
|
../hosts/${hostname}/configuration.nix
|
||||||
|
@ -34,8 +24,10 @@ rec {
|
||||||
});
|
});
|
||||||
compileSystems =
|
compileSystems =
|
||||||
systems:
|
systems:
|
||||||
(builtins.listToAttrs
|
lib.right
|
||||||
(map toPartialNixosConfig systems));
|
builtins.listToAttrs
|
||||||
|
(map toPartialNixosConfig)
|
||||||
|
systems;
|
||||||
|
|
||||||
toPartialHomeManagerConfig =
|
toPartialHomeManagerConfig =
|
||||||
{ user, system, hostname ? "", configHostname ? "" }:
|
{ user, system, hostname ? "", configHostname ? "" }:
|
||||||
|
@ -47,8 +39,11 @@ rec {
|
||||||
nameValuePair
|
nameValuePair
|
||||||
"${user}${hostStr}"
|
"${user}${hostStr}"
|
||||||
(homeManagerConfiguration {
|
(homeManagerConfiguration {
|
||||||
pkgs = makePkgs system;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
extraSpecialArgs = { inherit inputs self; };
|
extraSpecialArgs = {
|
||||||
|
inherit inputs self;
|
||||||
|
lib = lib.extend (_: _: inputs.home-manager.lib);
|
||||||
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
../hosts/${configHost}/home.nix
|
../hosts/${configHost}/home.nix
|
||||||
|
@ -56,6 +51,8 @@ rec {
|
||||||
});
|
});
|
||||||
compileHomes =
|
compileHomes =
|
||||||
systems:
|
systems:
|
||||||
(builtins.listToAttrs
|
lib.right
|
||||||
(map toPartialHomeManagerConfig systems));
|
builtins.listToAttrs
|
||||||
|
(map toPartialHomeManagerConfig)
|
||||||
|
systems;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
lib:
|
final: prev:
|
||||||
|
with prev;
|
||||||
rec {
|
rec {
|
||||||
# Ternary operator
|
# Ternary operator
|
||||||
# Exaample:
|
# Exaample:
|
||||||
|
@ -9,7 +10,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 (lib.isFunction g)
|
right = f: g: tern (isFunction g)
|
||||||
(right (x: f (g (x))))
|
(right (x: f (g (x))))
|
||||||
(f (g));
|
(f (g));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
final: prev:
|
|
||||||
(import ./. { lib = prev; })
|
|
|
@ -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 false;
|
snowhawk.nixpkgs.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,7 @@ 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 ./borderlessBrowser;
|
borderlessBrowser = callDefaultPackage ./writeXrandrScriptBin;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue