mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-25 08:30:45 -06:00
Compare commits
1 commit
7459568ea9
...
85b60caeb5
Author | SHA1 | Date | |
---|---|---|---|
85b60caeb5 |
11 changed files with 47 additions and 49 deletions
24
flake.lock
24
flake.lock
|
@ -5,11 +5,11 @@
|
|||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1722089005,
|
||||
"narHash": "sha256-I2aJRi0hYzUCtWGfpC73iiqAMJeWUlYdRPTIAXiteOM=",
|
||||
"lastModified": 1721565819,
|
||||
"narHash": "sha256-fRPq7r8lKBwgeiVsncSac6PQRLVpYOcEOWljHTDn2/s=",
|
||||
"owner": "daylinmorgan",
|
||||
"repo": "f1multiviewer-flake",
|
||||
"rev": "648595e85951b03e53a4ddcc176f50874950ee30",
|
||||
"rev": "ced556467e8bf72385734cc9dfc3fc670f554ae5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -680,11 +680,11 @@
|
|||
"nixpkgs": "nixpkgs_7"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1722112635,
|
||||
"narHash": "sha256-k2/M8GgIAUmVklo5oV9Wbmg/vg024BAUr+3ZiiYXuWQ=",
|
||||
"lastModified": 1721990326,
|
||||
"narHash": "sha256-AL/quEgRTlQ8OyLsbxlA6Q7jY2yxPJPvGvZRbAkhImY=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs-wayland",
|
||||
"rev": "9cf33b411239ce941e5c5870b3fc582ac1bba9f2",
|
||||
"rev": "55a7d37710a2e19e56e18be6f7a3be305383ff69",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -743,11 +743,11 @@
|
|||
},
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1722073938,
|
||||
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=",
|
||||
"lastModified": 1721970117,
|
||||
"narHash": "sha256-Hwm46lggqtihMaRuxbNaC1ACcU2a0jO/HXqrdjMatXk=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae",
|
||||
"rev": "733453ac54a40997a6a690b60f3942d79560247c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -775,11 +775,11 @@
|
|||
},
|
||||
"nixpkgs_7": {
|
||||
"locked": {
|
||||
"lastModified": 1722062969,
|
||||
"narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=",
|
||||
"lastModified": 1721924956,
|
||||
"narHash": "sha256-Sb1jlyRO+N8jBXEX9Pg9Z1Qb8Bw9QyOgLDNMEpmjZ2M=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3",
|
||||
"rev": "5ad6a14c6bf098e98800b091668718c336effc95",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -5,17 +5,17 @@
|
|||
}:
|
||||
let
|
||||
inherit (builtins) map;
|
||||
inherit (lib) flakeFromSystem;
|
||||
|
||||
flake = flakeFromSystem system;
|
||||
inherit (lib) pkgFromSystem pkgsFromSystem overlayFrom;
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = map [
|
||||
"lix-module"
|
||||
"hyprland-contrib"
|
||||
"nixpkgs-wayland"
|
||||
] flake.overlay;
|
||||
] overlayFrom;
|
||||
};
|
||||
pkgsFrom = pkgsFromSystem system;
|
||||
pkgFrom = pkgFromSystem system;
|
||||
in
|
||||
{
|
||||
makePackages =
|
||||
|
@ -32,14 +32,14 @@ in
|
|||
"tsm"
|
||||
"hyprman"
|
||||
"zls"
|
||||
] flake.pkg)
|
||||
++ (with flake.pkgs "hyprland"; [
|
||||
] pkgFrom)
|
||||
++ (with pkgsFrom "hyprland"; [
|
||||
default
|
||||
xdg-desktop-portal-hyprland
|
||||
])
|
||||
++ [
|
||||
(flake.pkgs "roc").full
|
||||
(flake.pkgs "zig2nix").zig.master.bin
|
||||
(pkgsFrom "roc").full
|
||||
(pkgsFrom "zig2nix").zig.master.bin
|
||||
];
|
||||
}
|
||||
''
|
||||
|
|
|
@ -76,11 +76,6 @@ let
|
|||
pkgsFromSystem = system: flake: inputs."${flake}".packages."${system}";
|
||||
pkgFromSystem = system: flake: (pkgsFromSystem system flake).default;
|
||||
overlayFrom = flake: inputs."${flake}".overlays.default;
|
||||
flakeFromSystem = system: {
|
||||
overlay = overlayFrom;
|
||||
pkgs = pkgsFromSystem system;
|
||||
pkg = pkgFromSystem system;
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit
|
||||
|
@ -98,6 +93,5 @@ in
|
|||
pkgsFromSystem
|
||||
pkgFromSystem
|
||||
overlayFrom
|
||||
flakeFromSystem
|
||||
;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,12 @@ let
|
|||
pkgFromSystem
|
||||
overlayFrom
|
||||
isNixFile
|
||||
flakeFromSystem
|
||||
;
|
||||
inherit (lib.filesystem) listFilesRecursive;
|
||||
|
||||
# pkgFrom = pkgFromSystem "x86_64-linux";
|
||||
# pkgsFrom = pkgsFromSystem "x86_64-linux";
|
||||
flake = flakeFromSystem "x86_64-linux";
|
||||
pkgFrom = pkgFromSystem "x86_64-linux";
|
||||
pkgsFrom = pkgsFromSystem "x86_64-linux";
|
||||
|
||||
hostPath = host: ../. + "/hosts/${host}";
|
||||
# all nix files not including pkgs.nix
|
||||
hostFiles = host: filter isNixFile (listFilesRecursive (hostPath host));
|
||||
|
@ -36,7 +35,7 @@ let
|
|||
{ pkgs, modulesPath, ... }:
|
||||
{
|
||||
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
|
||||
enableAttrs
|
||||
hostName
|
||||
flake
|
||||
pkgFrom
|
||||
pkgsFrom
|
||||
overlayFrom
|
||||
;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
flake,
|
||||
pkgFrom,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -11,7 +11,7 @@ in
|
|||
{
|
||||
config = mkIf config.oizys.desktop.enable {
|
||||
environment.systemPackages =
|
||||
[ (flake.pkg "f1multiviewer") ]
|
||||
[ (pkgFrom "f1multiviewer") ]
|
||||
++ (with pkgs; [
|
||||
wezterm
|
||||
alacritty
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
config,
|
||||
mkOizysModule,
|
||||
enabled,
|
||||
flake,
|
||||
pkgFrom,
|
||||
pkgsFrom,
|
||||
overlayFrom,
|
||||
...
|
||||
}:
|
||||
|
||||
|
@ -41,10 +43,10 @@ mkOizysModule config "hyprland" {
|
|||
|
||||
catppuccin-cursors.mochaDark
|
||||
])
|
||||
++ [ (flake.pkg "hyprman") ]
|
||||
++ [ (pkgFrom "hyprman") ]
|
||||
|
||||
# swww-git is broken
|
||||
++ (with (flake.pkgs "nixpkgs-wayland"); [
|
||||
++ (with (pkgsFrom "nixpkgs-wayland"); [
|
||||
mako
|
||||
eww
|
||||
wlr-randr
|
||||
|
@ -54,7 +56,7 @@ mkOizysModule config "hyprland" {
|
|||
]);
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(flake.overlay "hyprland-contrib")
|
||||
(overlayFrom "hyprland-contrib")
|
||||
# (overlayFrom "nixpkgs-wayland")
|
||||
# (overlayFrom "hyprland")
|
||||
];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
config,
|
||||
enabled,
|
||||
mkDefaultOizysModule,
|
||||
flake,
|
||||
pkgFrom,
|
||||
...
|
||||
}:
|
||||
mkDefaultOizysModule config "cli" {
|
||||
|
@ -35,5 +35,5 @@ mkDefaultOizysModule config "cli" {
|
|||
btop
|
||||
gdu
|
||||
])
|
||||
++ [ (flake.pkg "tsm") ];
|
||||
++ [ (pkgFrom "tsm") ];
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
flake,
|
||||
pkgFrom,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -10,7 +10,7 @@ let
|
|||
cfg = config.oizys.languages;
|
||||
|
||||
python = pkgs.python3.withPackages (ps: with ps; [ pip ]);
|
||||
pixi = flake.pkg "pixi";
|
||||
pixi = pkgFrom "pixi";
|
||||
in
|
||||
{
|
||||
config = mkIfIn "python" cfg {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
config,
|
||||
lib,
|
||||
inputs,
|
||||
flake,
|
||||
pkgsFrom,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -10,7 +10,7 @@ let
|
|||
|
||||
version = flakeVer inputs.roc;
|
||||
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
|
||||
roc = rocPkgs.cli.overrideAttrs {
|
||||
inherit version;
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
flake,
|
||||
pkgsFrom,
|
||||
pkgFrom,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIfIn;
|
||||
cfg = config.oizys.languages;
|
||||
zig = (flake.pkgs "zig2nix").zig.master.bin;
|
||||
zls = (flake.pkg "zls").overrideAttrs { nativeBuildInputs = [ zig ]; };
|
||||
zig = (pkgsFrom "zig2nix").zig.master.bin;
|
||||
zls = (pkgFrom "zls").overrideAttrs { nativeBuildInputs = [ zig ]; };
|
||||
in
|
||||
{
|
||||
config = mkIfIn "zig" cfg {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
lib,
|
||||
enabled,
|
||||
flake,
|
||||
pkgFrom,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -31,7 +31,7 @@ in
|
|||
pkgs.nixfmt-rfc-style
|
||||
pkgs.nix-output-monitor
|
||||
|
||||
(flake.pkg "self")
|
||||
(pkgFrom "self")
|
||||
];
|
||||
|
||||
programs.nix-index-database.comma = enabled;
|
||||
|
|
Loading…
Reference in a new issue