Compare commits
5 Commits
0b98a48ef5
...
main
Author | SHA1 | Date | |
---|---|---|---|
10c0b263e3
|
|||
867ab49bba
|
|||
c7ada859b9
|
|||
9f10aa353e
|
|||
5df7213f0a
|
91
TODO.md
Normal file
91
TODO.md
Normal file
@ -0,0 +1,91 @@
|
||||
- [ ] create virtual disk
|
||||
- [ ] create partition
|
||||
- [ ] make filesystem
|
||||
- [ ] mount partition(ext4)
|
||||
- [ ] root (30gb) (ext4) (/)
|
||||
- [ ] swapppp (2gb) (swap)
|
||||
- [ ] grub bios partition (1mb) (???)
|
||||
- [ ] boot partition (500mb) (fat32) (/boot)
|
||||
- [ ] import the sources
|
||||
- [ ] create directory
|
||||
- [ ] create user
|
||||
|
||||
- [ ] soft to install
|
||||
- [ ] acl
|
||||
- [ ] attr
|
||||
- [ ] autoconf
|
||||
- [ ] automake
|
||||
- [ ] a shell (probably fish and bash in /bin/sh)
|
||||
- [ ] bc
|
||||
- [ ] binutils
|
||||
- [ ] bison
|
||||
- [ ] bzip2
|
||||
- [ ] check
|
||||
- [ ] coreutils
|
||||
- [ ] dejaGNU
|
||||
- [ ] diffutils
|
||||
- [ ] eudev
|
||||
- [ ] e2fsprogs
|
||||
- [ ] expat
|
||||
- [ ] expect
|
||||
- [ ] file
|
||||
- [ ] findutils
|
||||
- [ ] flex
|
||||
- [ ] gawk
|
||||
- [ ] gcc
|
||||
- [ ] gdbm
|
||||
- [ ] gettext
|
||||
- [ ] glibc
|
||||
- [ ] GMP
|
||||
- [ ] gperf
|
||||
- [ ] grep
|
||||
- [ ] groff
|
||||
- [ ] GRUB
|
||||
- [ ] gzip
|
||||
- [ ] iana-etc
|
||||
- [ ] inetutils
|
||||
- [ ] iproute2
|
||||
- [ ] kbd
|
||||
- [ ] kmod
|
||||
- [ ] less
|
||||
- [ ] libcap
|
||||
- [ ] libpipeline
|
||||
- [ ] libtool
|
||||
- [ ] m4
|
||||
- [ ] make
|
||||
- [ ] man-DB
|
||||
- [ ] man-pages
|
||||
- [ ] mpc
|
||||
- [ ] mpfr
|
||||
- [ ] ncurses
|
||||
- [ ] patch
|
||||
- [ ] perl
|
||||
- [ ] pkg-config
|
||||
- [ ] procps
|
||||
- [ ] psmisc
|
||||
- [ ] readline
|
||||
- [ ] sed
|
||||
- [ ] shadow
|
||||
- [ ] sysklogd
|
||||
- [ ] sysvinit
|
||||
- [ ] tar
|
||||
- [ ] tcl
|
||||
- [ ] texinfo
|
||||
- [ ] time zone data
|
||||
- [ ] udev-lfs tarball
|
||||
- [ ] a text editor (probably my nvim conf)
|
||||
- [ ] xml::parser
|
||||
- [ ] xz utils
|
||||
- [ ] zlib
|
||||
|
||||
- [ ] optional but recommended
|
||||
- [ ] wget and curl
|
||||
- [ ] things to install screen
|
||||
|
||||
- [ ] bonus soft to install
|
||||
- [ ] minishell
|
||||
- [ ] webserv
|
||||
- [ ] other 42 project
|
||||
- [ ] pogit
|
||||
- [ ] hyprland (f*ck x11)
|
||||
- [ ] other random useless shit for fun
|
31
flake.nix
31
flake.nix
@ -4,7 +4,7 @@
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs@{ nixpkgs, ... }:
|
||||
{ nixpkgs, ... }:
|
||||
let
|
||||
supportedSystems = [
|
||||
"x86_64-linux"
|
||||
@ -26,15 +26,34 @@
|
||||
{ pkgs }:
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
];
|
||||
hardeningDisable = [ "all" ];
|
||||
packages = with pkgs; [
|
||||
nixfmt-rfc-style
|
||||
|
||||
gcc
|
||||
clang
|
||||
bison
|
||||
coreutils
|
||||
diffutils
|
||||
binutils
|
||||
diffutils
|
||||
findutils
|
||||
gawk
|
||||
gzip
|
||||
m4
|
||||
gnumake
|
||||
patch
|
||||
perl
|
||||
python312
|
||||
texinfo
|
||||
xz
|
||||
gcc
|
||||
clang
|
||||
|
||||
just
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
shellHook = ''
|
||||
export LFS=/mnt/lfs
|
||||
umask 022
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
|
9
src/mount.sh
Normal file
9
src/mount.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -pv "$LFS"
|
||||
#mount -v -t ext4 /dev/
|
||||
|
||||
mkdir -pv "$LFS/boot"
|
||||
|
||||
chown root:root "$LFS"
|
||||
chmod 755 "$LFS"
|
15
src/prep-dir.sh
Normal file
15
src/prep-dir.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p "$LFS/sources"
|
||||
|
||||
mkdir -pv $LFS/{etc,var} $LFS/usr/{bin,lib,sbin}
|
||||
|
||||
for i in bin lib sbin; do
|
||||
ln -sv usr/$i "$LFS/$i"
|
||||
done
|
||||
|
||||
case $(uname -m) in
|
||||
x86_64) mkdir -pv "$LFS/lib64" ;;
|
||||
esac
|
||||
|
||||
mkdir -pv "$LFS/tools"
|
Reference in New Issue
Block a user