Compare commits

...

4 commits

Author SHA1 Message Date
GaspardCulis
a9a9eff3a3 flake: Set "EDITOR" env var in default mkShell 2024-09-20 07:20:19 +00:00
GaspardCulis
9286a63198 Added workspace helix nix language configuration 2024-09-20 07:16:27 +00:00
GaspardCulis
37f6be4137 nix: Added default devShell for workspace 2024-09-20 07:12:41 +00:00
GaspardCulis
48987bcf34 nix: Added basic host config for "Zephyrus" 2024-09-20 06:44:48 +00:00
5 changed files with 70 additions and 6 deletions

2
.envrc Normal file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
use flake

4
.helix/languages.toml Normal file
View file

@ -0,0 +1,4 @@
[[language]]
name = "nix"
auto-format = true
formatter = { command = "alejandra" }

View file

@ -18,12 +18,16 @@
};
};
outputs = { self, nixpkgs, home-manager, hy3, ... }:
let
outputs = {
self,
nixpkgs,
home-manager,
hy3,
...
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
in {
homeConfigurations."culisg@im2ag" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
@ -32,5 +36,19 @@
./nix/profiles/culisg.nix
];
};
devShells.${system}.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
git
helix
pkgs.home-manager
alejandra
nil
];
shellHook = ''
export EDITOR=hx
'';
};
};
}

View file

@ -0,0 +1,13 @@
{
pkgs,
lib,
config,
...
}: {
imports = [
./hardware-configuration.nix
];
# Set your time zone.
time.timeZone = "Europe/Paris";
}

View file

@ -0,0 +1,27 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp7s0f4u2.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}