Format nix files
This commit is contained in:
parent
45b85d0452
commit
f2fd2be328
30 changed files with 329 additions and 231 deletions
|
|
@ -2,41 +2,44 @@
|
|||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./pkgs.nix
|
||||
./fonts.nix
|
||||
./modules/bundle.nix
|
||||
];
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./pkgs.nix
|
||||
./fonts.nix
|
||||
./modules/bundle.nix
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
networking.hostName = "TARS";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
networking.hostName = "TARS";
|
||||
networking.networkmanager.enable = true;
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
networking.firewall.allowedTCPPorts = [ 53317 ];
|
||||
networking.firewall.allowedUDPPorts = [ 53317 ];
|
||||
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "mod-dh-iso-us";
|
||||
};
|
||||
|
||||
|
||||
# I need to figure out how this works
|
||||
# services.printing.enable = true;
|
||||
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
||||
|
|
@ -56,9 +59,11 @@
|
|||
};
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.iosevka-term
|
||||
nerd-fonts.jetbrains-mono
|
||||
|
|
|
|||
|
|
@ -1,30 +1,48 @@
|
|||
# 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, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" "cryptd" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"thunderbolt"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [
|
||||
"dm-snapshot"
|
||||
"cryptd"
|
||||
];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-label/NixOS-Root";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/NixOS-Root";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-label/NixOS-Encrypted";
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-label/NixOS-Boot";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-label/NixOS-Boot";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0022"
|
||||
"dmask=0022"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
services.udev.extraRules = ''
|
||||
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="amdgpu_bl1", GROUP="video", MODE="0660"
|
||||
'';
|
||||
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="amdgpu_bl1", GROUP="video", MODE="0660"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,4 +13,3 @@
|
|||
./lidswitch.nix
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
# For libsecret
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
security.pam.services.login.enableGnomeKeyring = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.hyprland.enable = true;
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.keyd.enable = true;
|
||||
|
||||
services.keyd.keyboards = {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{ lib, pkgs, ... }: {
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
programs.steam.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ...} : {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.fish.enable = true;
|
||||
documentation.man.generateCaches = false;
|
||||
|
||||
|
|
@ -9,7 +10,9 @@
|
|||
enable = true;
|
||||
|
||||
dockerCompat = true;
|
||||
defaultNetwork.settings = { dns_enabled = true; };
|
||||
defaultNetwork.settings = {
|
||||
dns_enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
services.flatpak.enable = true;
|
||||
|
|
@ -21,7 +24,6 @@
|
|||
'';
|
||||
};
|
||||
|
||||
|
||||
users = {
|
||||
defaultUserShell = pkgs.bash;
|
||||
users.zeph = {
|
||||
|
|
@ -33,7 +35,7 @@
|
|||
"kvm"
|
||||
"docker"
|
||||
];
|
||||
packages = with pkgs; [];
|
||||
packages = with pkgs; [ ];
|
||||
};
|
||||
};
|
||||
services.fwupd.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.xfce.enable = true;
|
||||
|
|
|
|||
169
nixos/pkgs.nix
169
nixos/pkgs.nix
|
|
@ -1,94 +1,99 @@
|
|||
{ pkgs, pkgs-stable, lib, config, ... }: {
|
||||
environment.systemPackages = (with pkgs; [
|
||||
# Editors
|
||||
helix
|
||||
vim
|
||||
sioyek
|
||||
{
|
||||
pkgs,
|
||||
pkgs-stable,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
environment.systemPackages =
|
||||
(with pkgs; [
|
||||
# Editors
|
||||
helix
|
||||
vim
|
||||
sioyek
|
||||
|
||||
# Dev stuff
|
||||
podman-compose
|
||||
gitFull
|
||||
go-swag
|
||||
gcc
|
||||
go
|
||||
gopls
|
||||
bun
|
||||
svelte-language-server
|
||||
typescript-language-server
|
||||
nixd
|
||||
# texlive.combined.scheme-medium
|
||||
(pkgs.texlive.combine { inherit (pkgs.texlive) scheme-medium csvsimple; })
|
||||
texlab
|
||||
typst
|
||||
tinymist
|
||||
ffmpeg
|
||||
localsend
|
||||
flutter
|
||||
jdk17
|
||||
android-studio
|
||||
# Dev stuff
|
||||
podman-compose
|
||||
gitFull
|
||||
go-swag
|
||||
gcc
|
||||
go
|
||||
gopls
|
||||
bun
|
||||
svelte-language-server
|
||||
typescript-language-server
|
||||
nixd
|
||||
# texlive.combined.scheme-medium
|
||||
(pkgs.texlive.combine { inherit (pkgs.texlive) scheme-medium csvsimple; })
|
||||
texlab
|
||||
typst
|
||||
tinymist
|
||||
ffmpeg
|
||||
localsend
|
||||
flutter
|
||||
jdk17
|
||||
android-studio
|
||||
|
||||
# Rust toolchain
|
||||
cargo
|
||||
cargo-cache
|
||||
rust-analyzer
|
||||
rustc
|
||||
rustfmt
|
||||
clippy
|
||||
|
||||
# Rust toolchain
|
||||
cargo
|
||||
cargo-cache
|
||||
rust-analyzer
|
||||
rustc
|
||||
rustfmt
|
||||
clippy
|
||||
# System stuff
|
||||
thunar
|
||||
fprintd
|
||||
rclone
|
||||
unzip
|
||||
brightnessctl
|
||||
wl-clipboard
|
||||
fastfetch
|
||||
starship
|
||||
home-manager
|
||||
capitaine-cursors-themed
|
||||
libsecret
|
||||
lsd
|
||||
htop
|
||||
|
||||
# System stuff
|
||||
thunar
|
||||
fprintd
|
||||
rclone
|
||||
unzip
|
||||
brightnessctl
|
||||
wl-clipboard
|
||||
fastfetch
|
||||
starship
|
||||
home-manager
|
||||
capitaine-cursors-themed
|
||||
libsecret
|
||||
lsd
|
||||
htop
|
||||
# Internet
|
||||
bitwarden-desktop
|
||||
protonvpn-gui
|
||||
# ente-auth
|
||||
signal-desktop
|
||||
strawberry
|
||||
|
||||
# Internet
|
||||
bitwarden-desktop
|
||||
protonvpn-gui
|
||||
# ente-auth
|
||||
signal-desktop
|
||||
strawberry
|
||||
# Office (and fun)
|
||||
godot
|
||||
libreoffice
|
||||
mpv
|
||||
surge-XT
|
||||
ardour
|
||||
qpwgraph
|
||||
gimp
|
||||
|
||||
# Office (and fun)
|
||||
godot
|
||||
libreoffice
|
||||
mpv
|
||||
surge-XT
|
||||
ardour
|
||||
qpwgraph
|
||||
gimp
|
||||
|
||||
# Important hypr* things
|
||||
fuzzel
|
||||
bemoji
|
||||
wtype
|
||||
hyprpaper
|
||||
hyprpolkitagent
|
||||
hyprsunset
|
||||
hyprshot
|
||||
mako
|
||||
swayosd
|
||||
])
|
||||
++
|
||||
# Misbehaving packages
|
||||
(with pkgs-stable; [
|
||||
librewolf
|
||||
]);
|
||||
# Important hypr* things
|
||||
fuzzel
|
||||
bemoji
|
||||
wtype
|
||||
hyprpaper
|
||||
hyprpolkitagent
|
||||
hyprsunset
|
||||
hyprshot
|
||||
mako
|
||||
swayosd
|
||||
])
|
||||
++
|
||||
# Misbehaving packages
|
||||
(with pkgs-stable; [
|
||||
librewolf
|
||||
]);
|
||||
|
||||
# Unfree pkgs
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
android_sdk.accept_license = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue