Skip to content

Commit 1cc154b

Browse files
committed
nixos-iso -> nixos-gnome, init cosmic iso, kernel: zen -> cachyos
Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
1 parent 8db48ee commit 1cc154b

File tree

10 files changed

+325
-136
lines changed

10 files changed

+325
-136
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ git clone https://github.com/JohnRTitor/nix-iso.git
2424
cd nix-iso
2525
```
2626

27-
* For building full graphical ISO
27+
* For building full GNOME ISO
2828

29-
```shell
30-
env NIXPKGS_ALLOW_BROKEN=1 nix build .#nixosConfigurations.nixos-iso.config.system.build.isoImage --impure
29+
```bash
30+
env NIXPKGS_ALLOW_BROKEN=1 nix build .#nixosConfigurations.nixos-gnome.config.system.build.isoImage --impure
3131
```
3232

3333
* For building minimal ISO

common.nix

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
inputs,
3+
lib,
4+
pkgs,
5+
...
6+
}: {
7+
imports = [
8+
inputs.chaotic.nixosModules.default
9+
];
10+
11+
nixpkgs.config.allowUnfree = true;
12+
# Set environment variable for allowing non-free packages
13+
environment.sessionVariables = {
14+
NIXPKGS_ALLOW_UNFREE = "1";
15+
};
16+
17+
nix.settings.experimental-features = [
18+
"nix-command"
19+
"flakes"
20+
]; # enable nix command and flakes
21+
22+
nixpkgs.overlays = [
23+
(final: prev: {
24+
bcachefs-tools = inputs.bcachefs-tools.packages.${pkgs.system}.bcachefs-tools;
25+
})
26+
];
27+
28+
boot.kernelPackages = pkgs.linuxPackages_cachyos;
29+
30+
boot.zfs.package = lib.mkOverride 99 pkgs.zfs_cachyos;
31+
32+
environment.systemPackages = with pkgs; [
33+
# Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
34+
vim
35+
git
36+
curl
37+
parted
38+
efibootmgr
39+
];
40+
41+
# Wireless network and wired network is enabled by default
42+
}

cosmic/cosmic.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This module defines a NixOS installation CD that contains Cosmic.
2+
3+
{ lib, inputs, ... }:
4+
5+
{
6+
imports = [
7+
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
8+
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix"
9+
];
10+
11+
isoImage.edition = lib.mkDefault "cosmic";
12+
13+
services.desktopManager.cosmic = {
14+
enable = true;
15+
xwayland.enable = true;
16+
};
17+
18+
services.displayManager.cosmic-greeter.enable = true;
19+
20+
services.displayManager.autoLogin = {
21+
enable = true;
22+
user = "nixos";
23+
};
24+
}

cosmic/default.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This module defines a NixOS installation CD that contains Cosmic.
2+
3+
{ lib, pkgs, ... }:
4+
5+
{
6+
imports = [
7+
./cosmic.nix
8+
../common.nix
9+
];
10+
11+
networking.hostName = "nixos-cosmic"; # set live session hostname
12+
13+
# Enable NetworkManager to manage network connections.
14+
networking.networkmanager.enable = true;
15+
hardware.bluetooth.enable = true; # enables support for Bluetooth
16+
17+
environment.systemPackages = with pkgs; [
18+
gparted
19+
google-chrome
20+
];
21+
}

flake.lock

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

0 commit comments

Comments
 (0)