Skip to content

Commit

Permalink
init deck
Browse files Browse the repository at this point in the history
  • Loading branch information
Flameopathic committed Dec 27, 2024
1 parent ca8981b commit d8e25ce
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
url = "github:danth/stylix/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
jovian = {
url = "github:Jovian-Experiments/Jovian-NixOS";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};

outputs =
Expand Down Expand Up @@ -166,6 +170,14 @@
./mod/laptop-server.nix
];
};
deck = {
modules = [
disko.nixosModules.disko
./host/deck/disk-config.nix
./mod/sd-boot.nix
./mod/jovian.nix
];
};
};
darwinConfigurations =
let
Expand Down
4 changes: 4 additions & 0 deletions host/deck/configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ ... }:
{
system.stateVersion = "24.11";
}
42 changes: 42 additions & 0 deletions host/deck/disk-config.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Example to create a bios compatible gpt partition
{ ... }:
{
disko.devices = {
disk = {
sda = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
end = "-8G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
plainSwap = {
size = "100%";
content = {
type = "swap";
discardPolicy = "both";
resumeDevice = true; # resume from hiberation from this device
};
};
};
};
};
};
};
}
3 changes: 3 additions & 0 deletions host/deck/home.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
home.stateVersion = "24.11"; # home manager can be updated without changing this - read documentation
}
20 changes: 20 additions & 0 deletions mod/jovian.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ inputs, ... }:
{
imports = [
inputs.jovian.nixosmodules.jovian
./plasma.nix
];
config = {
jovian = {
steam = {
enable = true;
autoStart = true;
user = "flame";
desktopSession = "plasma";
};
devices.steamdeck = {
enable = true;
};
};
};
}
4 changes: 4 additions & 0 deletions mod/plasma.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ ... }:
{
services.desktopManager.plasma6.enable = true;
}

0 comments on commit d8e25ce

Please sign in to comment.