mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-23 19:20:44 -06:00
Compare commits
3 commits
85b60caeb5
...
7459568ea9
Author | SHA1 | Date | |
---|---|---|---|
7459568ea9 | |||
6834a963ed | |||
152133641e |
11 changed files with 57 additions and 54 deletions
39
flake.lock
39
flake.lock
|
@ -5,11 +5,11 @@
|
|||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1721565819,
|
||||
"narHash": "sha256-fRPq7r8lKBwgeiVsncSac6PQRLVpYOcEOWljHTDn2/s=",
|
||||
"lastModified": 1722089005,
|
||||
"narHash": "sha256-I2aJRi0hYzUCtWGfpC73iiqAMJeWUlYdRPTIAXiteOM=",
|
||||
"owner": "daylinmorgan",
|
||||
"repo": "f1multiviewer-flake",
|
||||
"rev": "ced556467e8bf72385734cc9dfc3fc670f554ae5",
|
||||
"rev": "648595e85951b03e53a4ddcc176f50874950ee30",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -307,6 +307,7 @@
|
|||
"locked": {
|
||||
"lastModified": 1721248202,
|
||||
"narHash": "sha256-VAhuQQ4EKbw/6z7K2IoR83+gXUdMksLWFQOhJNhSvQE=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "300228b503b36e5977b0d58713c5b4cf1f07b8a9",
|
||||
"revCount": 4930,
|
||||
"submodules": true,
|
||||
|
@ -498,11 +499,11 @@
|
|||
"lix": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1721841700,
|
||||
"narHash": "sha256-5aO0cXENUI/38xsG0ww0QSsVSlkvMvKfxbeYXYH08Es=",
|
||||
"rev": "8d12e0fbb7306cbc58b12ef051d7067d703738de",
|
||||
"lastModified": 1721992157,
|
||||
"narHash": "sha256-D5bBsSKvYmVn8U4lhrvMemko7m2I/sicjyAYEWDfW9A=",
|
||||
"rev": "6abad7cb238c5c7bf59a83bed55e7590c544fc2e",
|
||||
"type": "tarball",
|
||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/8d12e0fbb7306cbc58b12ef051d7067d703738de.tar.gz"
|
||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/6abad7cb238c5c7bf59a83bed55e7590c544fc2e.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
|
@ -627,11 +628,11 @@
|
|||
"nixpkgs": "nixpkgs_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1721650907,
|
||||
"narHash": "sha256-2VX/zPeLhGTsHpToFH1gfI+oGNS6m7ZUWWaqwmw3HVY=",
|
||||
"lastModified": 1722012218,
|
||||
"narHash": "sha256-Rnjo49C5/slnmcQW9c57IdiHJZ3YEFmUn3as/NIPD4E=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NixOS-WSL",
|
||||
"rev": "6686cbe947cb8b135e229ad2a3447b88d1cf6da9",
|
||||
"rev": "ac026940beb42f74c5666f6ed3989aca41eddeea",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -679,11 +680,11 @@
|
|||
"nixpkgs": "nixpkgs_7"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1721918221,
|
||||
"narHash": "sha256-y5whWNY6QegCurAwLAGkpRYL+9vjrQquVXC4Jfel1bU=",
|
||||
"lastModified": 1722112635,
|
||||
"narHash": "sha256-k2/M8GgIAUmVklo5oV9Wbmg/vg024BAUr+3ZiiYXuWQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs-wayland",
|
||||
"rev": "0d5730fd37f70c4e56f37ba6e81bfe0a89e9da26",
|
||||
"rev": "9cf33b411239ce941e5c5870b3fc582ac1bba9f2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -742,11 +743,11 @@
|
|||
},
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1721782431,
|
||||
"narHash": "sha256-UNDpwjYxNXQet/g3mgRLsQ9zxrbm9j2JEvP4ijF3AWs=",
|
||||
"lastModified": 1722073938,
|
||||
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4f02464258baaf54992debfd010a7a3662a25536",
|
||||
"rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -774,11 +775,11 @@
|
|||
},
|
||||
"nixpkgs_7": {
|
||||
"locked": {
|
||||
"lastModified": 1721743106,
|
||||
"narHash": "sha256-adRZhFpBTnHiK3XIELA3IBaApz70HwCYfv7xNrHjebA=",
|
||||
"lastModified": 1722062969,
|
||||
"narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "dc14ed91132ee3a26255d01d8fd0c1f5bff27b2f",
|
||||
"rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -5,17 +5,17 @@
|
|||
}:
|
||||
let
|
||||
inherit (builtins) map;
|
||||
inherit (lib) pkgFromSystem pkgsFromSystem overlayFrom;
|
||||
inherit (lib) flakeFromSystem;
|
||||
|
||||
flake = flakeFromSystem system;
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = map [
|
||||
"lix-module"
|
||||
"hyprland-contrib"
|
||||
"nixpkgs-wayland"
|
||||
] overlayFrom;
|
||||
] flake.overlay;
|
||||
};
|
||||
pkgsFrom = pkgsFromSystem system;
|
||||
pkgFrom = pkgFromSystem system;
|
||||
in
|
||||
{
|
||||
makePackages =
|
||||
|
@ -32,14 +32,14 @@ in
|
|||
"tsm"
|
||||
"hyprman"
|
||||
"zls"
|
||||
] pkgFrom)
|
||||
++ (with pkgsFrom "hyprland"; [
|
||||
] flake.pkg)
|
||||
++ (with flake.pkgs "hyprland"; [
|
||||
default
|
||||
xdg-desktop-portal-hyprland
|
||||
])
|
||||
++ [
|
||||
(pkgsFrom "roc").full
|
||||
(pkgsFrom "zig2nix").zig.master.bin
|
||||
(flake.pkgs "roc").full
|
||||
(flake.pkgs "zig2nix").zig.master.bin
|
||||
];
|
||||
}
|
||||
''
|
||||
|
|
|
@ -76,6 +76,11 @@ 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
|
||||
|
@ -93,5 +98,6 @@ in
|
|||
pkgsFromSystem
|
||||
pkgFromSystem
|
||||
overlayFrom
|
||||
flakeFromSystem
|
||||
;
|
||||
}
|
||||
|
|
|
@ -16,12 +16,13 @@ let
|
|||
pkgFromSystem
|
||||
overlayFrom
|
||||
isNixFile
|
||||
flakeFromSystem
|
||||
;
|
||||
inherit (lib.filesystem) listFilesRecursive;
|
||||
|
||||
pkgFrom = pkgFromSystem "x86_64-linux";
|
||||
pkgsFrom = pkgsFromSystem "x86_64-linux";
|
||||
|
||||
# pkgFrom = pkgFromSystem "x86_64-linux";
|
||||
# pkgsFrom = pkgsFromSystem "x86_64-linux";
|
||||
flake = flakeFromSystem "x86_64-linux";
|
||||
hostPath = host: ../. + "/hosts/${host}";
|
||||
# all nix files not including pkgs.nix
|
||||
hostFiles = host: filter isNixFile (listFilesRecursive (hostPath host));
|
||||
|
@ -35,7 +36,7 @@ let
|
|||
{ pkgs, modulesPath, ... }:
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
|
||||
environment.systemPackages = (with pkgs; [ neovim ]) ++ [ (pkgFrom "self") ];
|
||||
environment.systemPackages = (with pkgs; [ neovim ]) ++ [ (flake.pkg "self") ];
|
||||
}
|
||||
)
|
||||
];
|
||||
|
@ -70,9 +71,7 @@ let
|
|||
enabled
|
||||
enableAttrs
|
||||
hostName
|
||||
pkgFrom
|
||||
pkgsFrom
|
||||
overlayFrom
|
||||
flake
|
||||
;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
pkgFrom,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -11,7 +11,7 @@ in
|
|||
{
|
||||
config = mkIf config.oizys.desktop.enable {
|
||||
environment.systemPackages =
|
||||
[ (pkgFrom "f1multiviewer") ]
|
||||
[ (flake.pkg "f1multiviewer") ]
|
||||
++ (with pkgs; [
|
||||
wezterm
|
||||
alacritty
|
||||
|
|
|
@ -3,9 +3,7 @@
|
|||
config,
|
||||
mkOizysModule,
|
||||
enabled,
|
||||
pkgFrom,
|
||||
pkgsFrom,
|
||||
overlayFrom,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
|
||||
|
@ -43,10 +41,10 @@ mkOizysModule config "hyprland" {
|
|||
|
||||
catppuccin-cursors.mochaDark
|
||||
])
|
||||
++ [ (pkgFrom "hyprman") ]
|
||||
++ [ (flake.pkg "hyprman") ]
|
||||
|
||||
# swww-git is broken
|
||||
++ (with (pkgsFrom "nixpkgs-wayland"); [
|
||||
++ (with (flake.pkgs "nixpkgs-wayland"); [
|
||||
mako
|
||||
eww
|
||||
wlr-randr
|
||||
|
@ -56,7 +54,7 @@ mkOizysModule config "hyprland" {
|
|||
]);
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(overlayFrom "hyprland-contrib")
|
||||
(flake.overlay "hyprland-contrib")
|
||||
# (overlayFrom "nixpkgs-wayland")
|
||||
# (overlayFrom "hyprland")
|
||||
];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
config,
|
||||
enabled,
|
||||
mkDefaultOizysModule,
|
||||
pkgFrom,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
mkDefaultOizysModule config "cli" {
|
||||
|
@ -35,5 +35,5 @@ mkDefaultOizysModule config "cli" {
|
|||
btop
|
||||
gdu
|
||||
])
|
||||
++ [ (pkgFrom "tsm") ];
|
||||
++ [ (flake.pkg "tsm") ];
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
pkgFrom,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -10,7 +10,7 @@ let
|
|||
cfg = config.oizys.languages;
|
||||
|
||||
python = pkgs.python3.withPackages (ps: with ps; [ pip ]);
|
||||
pixi = pkgFrom "pixi";
|
||||
pixi = flake.pkg "pixi";
|
||||
in
|
||||
{
|
||||
config = mkIfIn "python" cfg {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
config,
|
||||
lib,
|
||||
inputs,
|
||||
pkgsFrom,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -10,7 +10,7 @@ let
|
|||
|
||||
version = flakeVer inputs.roc;
|
||||
cfg = config.oizys.languages;
|
||||
rocPkgs = pkgsFrom "roc";
|
||||
rocPkgs = flake.pkgs "roc";
|
||||
# I'm setting the versions so the changes are more apparent as flake is updated
|
||||
roc = rocPkgs.cli.overrideAttrs {
|
||||
inherit version;
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgsFrom,
|
||||
pkgFrom,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIfIn;
|
||||
cfg = config.oizys.languages;
|
||||
zig = (pkgsFrom "zig2nix").zig.master.bin;
|
||||
zls = (pkgFrom "zls").overrideAttrs { nativeBuildInputs = [ zig ]; };
|
||||
zig = (flake.pkgs "zig2nix").zig.master.bin;
|
||||
zls = (flake.pkg "zls").overrideAttrs { nativeBuildInputs = [ zig ]; };
|
||||
in
|
||||
{
|
||||
config = mkIfIn "zig" cfg {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
lib,
|
||||
enabled,
|
||||
pkgFrom,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -31,7 +31,7 @@ in
|
|||
pkgs.nixfmt-rfc-style
|
||||
pkgs.nix-output-monitor
|
||||
|
||||
(pkgFrom "self")
|
||||
(flake.pkg "self")
|
||||
];
|
||||
|
||||
programs.nix-index-database.comma = enabled;
|
||||
|
|
Loading…
Reference in a new issue