Skip to content

Commit 8217c57

Browse files
committed
flakerize
0 parents  commit 8217c57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3523
-0
lines changed

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ISC License
2+
3+
Copyright 2022 Red Code Labs
4+
5+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<h1 align="center"> RedNixOS </h1> <div align="center"> <img src="assets/logoTransparentBg.png" width="333"><br>NixOS 'distro' for security enthusiasts</a><br> <img src="https://builtwithnix.org/badge.svg"> </div>
2+
3+
## What is this project
4+
This aims to be more or less a Kali-like distro, but built around NixOS.
5+
Made for security researchers, pentesters, red teamers and infosec enthusiasts.
6+
7+
## How to use it
8+
Feel free to use this in one of these ways:
9+
1. VM (for example for testing purpouses)
10+
2. Live (sometimes can replace Kali)
11+
3. Baremetal (you must be quite crazy if you do so)
12+
13+
## Features
14+
Basically it's already done NixOS config and all you have to do would be to build the `.iso` file yourself.
15+
That means, there's quite a lot of software which comes preinstalled, as defined in `packages.nix` file.
16+
Feel free to modify this according to your needs.
17+
18+
By default, it will use Zen kernel (better performance in my opinion), as well as have certain networking and security features predefined, which include
19+
* `sudo` only for `wheel` group
20+
* AppArmor enabled
21+
* `lockKernelModules` enabled
22+
* simple firewall config
23+
24+
## How to build it
25+
That's quit easy. Once you have files modified according to your needs or you've decided that `yolo I'm trying the default one`, just use this command:
26+
27+
`nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=rednixos-iso-[stable/unstable].nix`
28+
29+
(choose stable or unstable according to your needs).
30+
31+
## How often will you update the upstream
32+
I'll try to keep it updated as often as mainstream NixOS, using this as a chance to add some packages and bump the version numbers in here as well.
20.6 KB
Loading

assets/logoTransparentBg.png

44.5 KB
Loading

assets/rednixWallpaperDarker.png

20.4 KB
Loading

flake.lock

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4+
nixpkgs-21_11.url = "github:NixOS/nixpkgs/nixos-unstable";
5+
};
6+
7+
outputs = inputs @ {
8+
self,
9+
nixpkgs,
10+
...
11+
}: let
12+
mkSystem = extraModules:
13+
nixpkgs.lib.nixosSystem {
14+
system = "x86_64-linux";
15+
modules = let
16+
modulesPath = "${nixpkgs}/nixos/modules";
17+
in
18+
[
19+
{
20+
_module.args = {
21+
inherit inputs self;
22+
pkgs21_11 = import inputs.nixpkgs-21_11 {
23+
system = "x86_64-linux";
24+
config.allowUnfree = true;
25+
};
26+
};
27+
}
28+
"${modulesPath}/installer/cd-dvd/installation-cd-base.nix"
29+
# Provide an initial copy of the NixOS channel so that the user
30+
# doesn't need to run "nix-channel --update" first.
31+
"${modulesPath}/installer/cd-dvd/channel.nix"
32+
33+
./rednixos-iso-unstable.nix
34+
./packages.nix
35+
]
36+
++ extraModules;
37+
};
38+
in {
39+
nixosConfigurations = {
40+
"RedNixOS-xfce" = mkSystem [
41+
./xfce.nix
42+
];
43+
"RedNixOS-kde" = mkSystem [
44+
./kde.nix
45+
];
46+
};
47+
48+
packages."x86_64-linux" =
49+
(builtins.mapAttrs (n: v: v.config.system.build.isoImage) self.nixosConfigurations)
50+
// {
51+
default = self.packages."x86_64-linux"."RedNixOS-kde";
52+
};
53+
};
54+
}

home/.config/QtProject.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[FileDialog]
2+
history=@Invalid()
3+
lastVisited=file:///home/red/
4+
qtVersion=5.15.3
5+
viewMode=Detail

home/.config/Trolltech.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[qt]
2+
GUIEffects=none
3+
KDE\contrast=7
4+
KWinPalette\activeBackground=#31363b
5+
KWinPalette\activeBlend=#fcfcfc
6+
KWinPalette\activeForeground=#fcfcfc
7+
KWinPalette\activeTitleBtnBg=#2a2e32
8+
KWinPalette\frame=#2a2e32
9+
KWinPalette\inactiveBackground=#2a2e32
10+
KWinPalette\inactiveBlend=#a1a9b1
11+
KWinPalette\inactiveForeground=#a1a9b1
12+
KWinPalette\inactiveFrame=#2a2e32
13+
KWinPalette\inactiveTitleBtnBg=#2a2e32
14+
Palette\active=#fcfcfc, #31363b, #474d54, #3a4045, #141618, #24282b, #fcfcfc, #ffffff, #fcfcfc, #1b1e20, #2a2e32, #0f1012, #ab3347, #ffffff, #e93d58, #9b59b6, #232629, #000000, #31363b, #fcfcfc, #fcfcfc
15+
Palette\disabled=#6e7173, #2f3338, #454c52, #393e44, #131517, #222629, #656768, #ffffff, #727679, #1a1d1f, #282c30, #0e0f11, #282c30, #6e7173, #5e2731, #443051, #212427, #000000, #31363b, #fcfcfc, #fcfcfc
16+
Palette\inactive=#fcfcfc, #31363b, #474d54, #3a4045, #141618, #24282b, #fcfcfc, #ffffff, #fcfcfc, #1b1e20, #2a2e32, #0f1012, #622530, #fcfcfc, #e93d58, #9b59b6, #232629, #000000, #31363b, #fcfcfc, #fcfcfc
17+
font="Noto Sans,10,-1,0,50,0,0,0,0,0"

home/.config/akregatorrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[$Version]
2+
update_info=fonts_akregator.upd:Plasma_Fonts_Akregator

0 commit comments

Comments
 (0)