Compare commits

..

1 commit

Author SHA1 Message Date
85b60caeb5 flake.lock: Update
Flake lock file updates:

• Updated input 'hyprland':
    'git+https://github.com/hyprwm/Hyprland/?rev=300228b503b36e5977b0d58713c5b4cf1f07b8a9&submodules=1' (2024-07-17)
  → 'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=300228b503b36e5977b0d58713c5b4cf1f07b8a9&submodules=1' (2024-07-17)
• Updated input 'lix':
    '8d12e0fbb7.tar.gz?narHash=sha256-5aO0cXENUI/38xsG0ww0QSsVSlkvMvKfxbeYXYH08Es%3D' (2024-07-24)
  → '6abad7cb23.tar.gz?narHash=sha256-D5bBsSKvYmVn8U4lhrvMemko7m2I/sicjyAYEWDfW9A%3D' (2024-07-26)
• Updated input 'nixos-wsl':
    'github:nix-community/NixOS-WSL/6686cbe947cb8b135e229ad2a3447b88d1cf6da9?narHash=sha256-2VX/zPeLhGTsHpToFH1gfI%2BoGNS6m7ZUWWaqwmw3HVY%3D' (2024-07-22)
  → 'github:nix-community/NixOS-WSL/ac026940beb42f74c5666f6ed3989aca41eddeea?narHash=sha256-Rnjo49C5/slnmcQW9c57IdiHJZ3YEFmUn3as/NIPD4E%3D' (2024-07-26)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/4f02464258baaf54992debfd010a7a3662a25536?narHash=sha256-UNDpwjYxNXQet/g3mgRLsQ9zxrbm9j2JEvP4ijF3AWs%3D' (2024-07-24)
  → 'github:nixos/nixpkgs/733453ac54a40997a6a690b60f3942d79560247c?narHash=sha256-Hwm46lggqtihMaRuxbNaC1ACcU2a0jO/HXqrdjMatXk%3D' (2024-07-26)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/0d5730fd37f70c4e56f37ba6e81bfe0a89e9da26?narHash=sha256-y5whWNY6QegCurAwLAGkpRYL%2B9vjrQquVXC4Jfel1bU%3D' (2024-07-25)
  → 'github:nix-community/nixpkgs-wayland/55a7d37710a2e19e56e18be6f7a3be305383ff69?narHash=sha256-AL/quEgRTlQ8OyLsbxlA6Q7jY2yxPJPvGvZRbAkhImY%3D' (2024-07-26)
• Updated input 'nixpkgs-wayland/nixpkgs':
    'github:nixos/nixpkgs/dc14ed91132ee3a26255d01d8fd0c1f5bff27b2f?narHash=sha256-adRZhFpBTnHiK3XIELA3IBaApz70HwCYfv7xNrHjebA%3D' (2024-07-23)
  → 'github:nixos/nixpkgs/5ad6a14c6bf098e98800b091668718c336effc95?narHash=sha256-Sb1jlyRO%2BN8jBXEX9Pg9Z1Qb8Bw9QyOgLDNMEpmjZ2M%3D' (2024-07-25)
2024-07-27 00:31:59 +00:00
11 changed files with 47 additions and 49 deletions

View file

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1722089005, "lastModified": 1721565819,
"narHash": "sha256-I2aJRi0hYzUCtWGfpC73iiqAMJeWUlYdRPTIAXiteOM=", "narHash": "sha256-fRPq7r8lKBwgeiVsncSac6PQRLVpYOcEOWljHTDn2/s=",
"owner": "daylinmorgan", "owner": "daylinmorgan",
"repo": "f1multiviewer-flake", "repo": "f1multiviewer-flake",
"rev": "648595e85951b03e53a4ddcc176f50874950ee30", "rev": "ced556467e8bf72385734cc9dfc3fc670f554ae5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -680,11 +680,11 @@
"nixpkgs": "nixpkgs_7" "nixpkgs": "nixpkgs_7"
}, },
"locked": { "locked": {
"lastModified": 1722112635, "lastModified": 1721990326,
"narHash": "sha256-k2/M8GgIAUmVklo5oV9Wbmg/vg024BAUr+3ZiiYXuWQ=", "narHash": "sha256-AL/quEgRTlQ8OyLsbxlA6Q7jY2yxPJPvGvZRbAkhImY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs-wayland", "repo": "nixpkgs-wayland",
"rev": "9cf33b411239ce941e5c5870b3fc582ac1bba9f2", "rev": "55a7d37710a2e19e56e18be6f7a3be305383ff69",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -743,11 +743,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1722073938, "lastModified": 1721970117,
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=", "narHash": "sha256-Hwm46lggqtihMaRuxbNaC1ACcU2a0jO/HXqrdjMatXk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae", "rev": "733453ac54a40997a6a690b60f3942d79560247c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -775,11 +775,11 @@
}, },
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1722062969, "lastModified": 1721924956,
"narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=", "narHash": "sha256-Sb1jlyRO+N8jBXEX9Pg9Z1Qb8Bw9QyOgLDNMEpmjZ2M=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3", "rev": "5ad6a14c6bf098e98800b091668718c336effc95",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -5,17 +5,17 @@
}: }:
let let
inherit (builtins) map; inherit (builtins) map;
inherit (lib) flakeFromSystem; inherit (lib) pkgFromSystem pkgsFromSystem overlayFrom;
flake = flakeFromSystem system;
pkgs = import inputs.nixpkgs { pkgs = import inputs.nixpkgs {
inherit system; inherit system;
overlays = map [ overlays = map [
"lix-module" "lix-module"
"hyprland-contrib" "hyprland-contrib"
"nixpkgs-wayland" "nixpkgs-wayland"
] flake.overlay; ] overlayFrom;
}; };
pkgsFrom = pkgsFromSystem system;
pkgFrom = pkgFromSystem system;
in in
{ {
makePackages = makePackages =
@ -32,14 +32,14 @@ in
"tsm" "tsm"
"hyprman" "hyprman"
"zls" "zls"
] flake.pkg) ] pkgFrom)
++ (with flake.pkgs "hyprland"; [ ++ (with pkgsFrom "hyprland"; [
default default
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
]) ])
++ [ ++ [
(flake.pkgs "roc").full (pkgsFrom "roc").full
(flake.pkgs "zig2nix").zig.master.bin (pkgsFrom "zig2nix").zig.master.bin
]; ];
} }
'' ''

View file

@ -76,11 +76,6 @@ let
pkgsFromSystem = system: flake: inputs."${flake}".packages."${system}"; pkgsFromSystem = system: flake: inputs."${flake}".packages."${system}";
pkgFromSystem = system: flake: (pkgsFromSystem system flake).default; pkgFromSystem = system: flake: (pkgsFromSystem system flake).default;
overlayFrom = flake: inputs."${flake}".overlays.default; overlayFrom = flake: inputs."${flake}".overlays.default;
flakeFromSystem = system: {
overlay = overlayFrom;
pkgs = pkgsFromSystem system;
pkg = pkgFromSystem system;
};
in in
{ {
inherit inherit
@ -98,6 +93,5 @@ in
pkgsFromSystem pkgsFromSystem
pkgFromSystem pkgFromSystem
overlayFrom overlayFrom
flakeFromSystem
; ;
} }

View file

@ -16,13 +16,12 @@ let
pkgFromSystem pkgFromSystem
overlayFrom overlayFrom
isNixFile isNixFile
flakeFromSystem
; ;
inherit (lib.filesystem) listFilesRecursive; inherit (lib.filesystem) listFilesRecursive;
# pkgFrom = pkgFromSystem "x86_64-linux"; pkgFrom = pkgFromSystem "x86_64-linux";
# pkgsFrom = pkgsFromSystem "x86_64-linux"; pkgsFrom = pkgsFromSystem "x86_64-linux";
flake = flakeFromSystem "x86_64-linux";
hostPath = host: ../. + "/hosts/${host}"; hostPath = host: ../. + "/hosts/${host}";
# all nix files not including pkgs.nix # all nix files not including pkgs.nix
hostFiles = host: filter isNixFile (listFilesRecursive (hostPath host)); hostFiles = host: filter isNixFile (listFilesRecursive (hostPath host));
@ -36,7 +35,7 @@ let
{ pkgs, modulesPath, ... }: { pkgs, modulesPath, ... }:
{ {
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ]; imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
environment.systemPackages = (with pkgs; [ neovim ]) ++ [ (flake.pkg "self") ]; environment.systemPackages = (with pkgs; [ neovim ]) ++ [ (pkgFrom "self") ];
} }
) )
]; ];
@ -71,7 +70,9 @@ let
enabled enabled
enableAttrs enableAttrs
hostName hostName
flake pkgFrom
pkgsFrom
overlayFrom
; ;
}; };
}; };

View file

@ -2,7 +2,7 @@
pkgs, pkgs,
config, config,
lib, lib,
flake, pkgFrom,
... ...
}: }:
let let
@ -11,7 +11,7 @@ in
{ {
config = mkIf config.oizys.desktop.enable { config = mkIf config.oizys.desktop.enable {
environment.systemPackages = environment.systemPackages =
[ (flake.pkg "f1multiviewer") ] [ (pkgFrom "f1multiviewer") ]
++ (with pkgs; [ ++ (with pkgs; [
wezterm wezterm
alacritty alacritty

View file

@ -3,7 +3,9 @@
config, config,
mkOizysModule, mkOizysModule,
enabled, enabled,
flake, pkgFrom,
pkgsFrom,
overlayFrom,
... ...
}: }:
@ -41,10 +43,10 @@ mkOizysModule config "hyprland" {
catppuccin-cursors.mochaDark catppuccin-cursors.mochaDark
]) ])
++ [ (flake.pkg "hyprman") ] ++ [ (pkgFrom "hyprman") ]
# swww-git is broken # swww-git is broken
++ (with (flake.pkgs "nixpkgs-wayland"); [ ++ (with (pkgsFrom "nixpkgs-wayland"); [
mako mako
eww eww
wlr-randr wlr-randr
@ -54,7 +56,7 @@ mkOizysModule config "hyprland" {
]); ]);
nixpkgs.overlays = [ nixpkgs.overlays = [
(flake.overlay "hyprland-contrib") (overlayFrom "hyprland-contrib")
# (overlayFrom "nixpkgs-wayland") # (overlayFrom "nixpkgs-wayland")
# (overlayFrom "hyprland") # (overlayFrom "hyprland")
]; ];

View file

@ -3,7 +3,7 @@
config, config,
enabled, enabled,
mkDefaultOizysModule, mkDefaultOizysModule,
flake, pkgFrom,
... ...
}: }:
mkDefaultOizysModule config "cli" { mkDefaultOizysModule config "cli" {
@ -35,5 +35,5 @@ mkDefaultOizysModule config "cli" {
btop btop
gdu gdu
]) ])
++ [ (flake.pkg "tsm") ]; ++ [ (pkgFrom "tsm") ];
} }

View file

@ -2,7 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
flake, pkgFrom,
... ...
}: }:
let let
@ -10,7 +10,7 @@ let
cfg = config.oizys.languages; cfg = config.oizys.languages;
python = pkgs.python3.withPackages (ps: with ps; [ pip ]); python = pkgs.python3.withPackages (ps: with ps; [ pip ]);
pixi = flake.pkg "pixi"; pixi = pkgFrom "pixi";
in in
{ {
config = mkIfIn "python" cfg { config = mkIfIn "python" cfg {

View file

@ -2,7 +2,7 @@
config, config,
lib, lib,
inputs, inputs,
flake, pkgsFrom,
... ...
}: }:
let let
@ -10,7 +10,7 @@ let
version = flakeVer inputs.roc; version = flakeVer inputs.roc;
cfg = config.oizys.languages; cfg = config.oizys.languages;
rocPkgs = flake.pkgs "roc"; rocPkgs = pkgsFrom "roc";
# I'm setting the versions so the changes are more apparent as flake is updated # I'm setting the versions so the changes are more apparent as flake is updated
roc = rocPkgs.cli.overrideAttrs { roc = rocPkgs.cli.overrideAttrs {
inherit version; inherit version;

View file

@ -1,14 +1,15 @@
{ {
config, config,
lib, lib,
flake, pkgsFrom,
pkgFrom,
... ...
}: }:
let let
inherit (lib) mkIfIn; inherit (lib) mkIfIn;
cfg = config.oizys.languages; cfg = config.oizys.languages;
zig = (flake.pkgs "zig2nix").zig.master.bin; zig = (pkgsFrom "zig2nix").zig.master.bin;
zls = (flake.pkg "zls").overrideAttrs { nativeBuildInputs = [ zig ]; }; zls = (pkgFrom "zls").overrideAttrs { nativeBuildInputs = [ zig ]; };
in in
{ {
config = mkIfIn "zig" cfg { config = mkIfIn "zig" cfg {

View file

@ -3,7 +3,7 @@
pkgs, pkgs,
lib, lib,
enabled, enabled,
flake, pkgFrom,
... ...
}: }:
let let
@ -31,7 +31,7 @@ in
pkgs.nixfmt-rfc-style pkgs.nixfmt-rfc-style
pkgs.nix-output-monitor pkgs.nix-output-monitor
(flake.pkg "self") (pkgFrom "self")
]; ];
programs.nix-index-database.comma = enabled; programs.nix-index-database.comma = enabled;