From 53caf8bc81cc9be81ee50396e2c725977ef7653d Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 9 Feb 2025 23:25:13 -0500 Subject: [PATCH] Add a steam deck nix config. --- nix/steam_deck/configuration/flake.lock | 27 +++++++++++++++++++ nix/steam_deck/configuration/flake.nix | 36 +++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 nix/steam_deck/configuration/flake.lock create mode 100644 nix/steam_deck/configuration/flake.nix diff --git a/nix/steam_deck/configuration/flake.lock b/nix/steam_deck/configuration/flake.lock new file mode 100644 index 0000000..bcf4c6b --- /dev/null +++ b/nix/steam_deck/configuration/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1739019272, + "narHash": "sha256-7Fu7oazPoYCbDzb9k8D/DdbKrC3aU1zlnc39Y8jy/s8=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "fa35a3c8e17a3de613240fea68f876e5b4896aec", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/nix/steam_deck/configuration/flake.nix b/nix/steam_deck/configuration/flake.nix new file mode 100644 index 0000000..1b41f40 --- /dev/null +++ b/nix/steam_deck/configuration/flake.nix @@ -0,0 +1,36 @@ +{ + description = "My system configuration"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + }; + outputs = + { + nixpkgs, + ... + }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + packages.${system}.default = pkgs.buildEnv { + name = "default"; + paths = [ + pkgs.emacs + pkgs.mg + pkgs.steam-rom-manager + ]; + }; + + formatter.${system} = pkgs.nixfmt-rfc-style; + # formatter.${system} = pkgs.alejandra; + }; + + # nixConfig = { + # experimental-features = [ + # "nix-command" + # "flakes" + # ]; + # }; +}