format
This commit is contained in:
parent
6411787299
commit
254c963998
5 changed files with 122 additions and 104 deletions
|
|
@ -1,29 +1,31 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
|
||||
# mask dev-tpmrm0.device
|
||||
systemd.services.dev-tpmrm0.wantedBy = lib.mkForce[ ];
|
||||
# mask dev-tpmrm0.device
|
||||
systemd.services.dev-tpmrm0.wantedBy = lib.mkForce [];
|
||||
|
||||
networking.hostName = "nixos"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
|
||||
# flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
|
|
@ -92,17 +94,17 @@
|
|||
users.users.luna = {
|
||||
isNormalUser = true;
|
||||
description = "luna";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
packages = with pkgs; [
|
||||
# thunderbird
|
||||
gnome-software
|
||||
git
|
||||
neovim
|
||||
rustup
|
||||
vscode.fhs
|
||||
# thunderbird
|
||||
gnome-software
|
||||
git
|
||||
neovim
|
||||
rustup
|
||||
vscode.fhs
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
# flatpak
|
||||
services.flatpak.enable = true;
|
||||
|
||||
|
|
@ -112,9 +114,9 @@
|
|||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
gnome-menus
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
gnome-menus
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
|
|
@ -128,7 +130,7 @@
|
|||
# ssh agent
|
||||
programs.ssh.startAgent = true;
|
||||
|
||||
hardware.ckb-next.enable = true;
|
||||
hardware.ckb-next.enable = true;
|
||||
|
||||
# dynamic linking
|
||||
programs.nix-ld.enable = true;
|
||||
|
|
@ -153,7 +155,7 @@
|
|||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue