Removed flake.nix

This commit is contained in:
foglar 2025-01-05 13:16:47 +01:00
parent f86626e623
commit 0867b9f747
2 changed files with 6 additions and 34 deletions

View File

@ -194,3 +194,4 @@ nvim /nixos/system/packages/ssh-client.nix
- [YT video about if else options](https://www.youtube.com/watch?v=Qull6TMQm4Q)
- [YT video about install with one command](https://www.youtube.com/watch?v=20BN4gqHwaQ&t=2025s)
- [Vimjoyer's videos](https://www.youtube.com/@vimjoyer) - all videos
- [Hyprdots for Arch](https://github.com/prasanthrangan/hyprdots) - inspiration for look

View File

@ -2,6 +2,11 @@
description = "My highly sofisticated and complicated flake";
inputs = {
install-script = {
url = "git+https://git.foglar.tech/foglar/nix-flake-install-script";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
@ -113,16 +118,6 @@
allowUnfree = true;
};
};
# Systems that can run tests:
supportedSystems = ["aarch64-linux" "i686-linux" "x86_64-linux"];
# Function to generate a set based on supported systems:
forAllSystems = inputs.nixpkgs.lib.genAttrs supportedSystems;
# Attribute set of nixpkgs for each system:
nixpkgsFor =
forAllSystems (system: import inputs.nixpkgs {inherit system;});
in {
# NixOS Configurations
nixosConfigurations = {
@ -167,29 +162,5 @@
};
};
};
# Install script
packages = forAllSystems (system: let
pkgs = nixpkgsFor.${system};
in {
default = self.packages.${system}.install;
install = pkgs.writeShellApplication {
name = "install";
runtimeInputs = with pkgs; [git busybox gum];
text = ''
${./install.sh} "$@"
'';
};
});
apps = forAllSystems (system: {
default = self.apps.${system}.install;
install = {
type = "app";
program = "${self.packages.${system}.install}/bin/install";
};
});
};
}