2024-03-01 15:22:49 +01:00
|
|
|
|
# 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’).
|
|
|
|
|
{
|
2024-03-01 16:19:41 +01:00
|
|
|
|
pkgs,
|
2024-03-01 16:45:06 +01:00
|
|
|
|
inputs,
|
2024-03-01 16:19:41 +01:00
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
imports = [
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
2024-05-18 23:05:04 +02:00
|
|
|
|
../../modules/nixos
|
2024-03-01 16:45:06 +01:00
|
|
|
|
inputs.home-manager.nixosModules.default
|
2024-03-01 16:19:41 +01:00
|
|
|
|
];
|
2024-03-01 15:22:49 +01:00
|
|
|
|
|
2024-05-20 20:53:29 +02:00
|
|
|
|
myConfig = {
|
|
|
|
|
enable = true;
|
|
|
|
|
desktop = true;
|
2024-05-26 18:39:40 +02:00
|
|
|
|
gpu.amd.enable = true;
|
2024-05-20 20:53:29 +02:00
|
|
|
|
laptop = true;
|
2024-12-29 14:19:24 +01:00
|
|
|
|
network.hostName = "MaxNixosLaptop";
|
2024-05-20 20:53:29 +02:00
|
|
|
|
};
|
2024-05-20 19:58:09 +02:00
|
|
|
|
|
2024-03-01 15:22:49 +01:00
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
2024-03-01 16:48:27 +01:00
|
|
|
|
|
2024-03-01 15:22:49 +01:00
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-07-09 16:32:20 +02:00
|
|
|
|
bambu-studio
|
2024-11-25 22:27:37 +01:00
|
|
|
|
neovim
|
2024-03-01 16:19:41 +01:00
|
|
|
|
wget
|
|
|
|
|
fprintd
|
2024-04-09 14:04:14 +02:00
|
|
|
|
qemu
|
2024-03-01 16:19:41 +01:00
|
|
|
|
home-manager
|
2024-03-30 15:54:59 +01:00
|
|
|
|
(let
|
2024-11-25 22:27:37 +01:00
|
|
|
|
base = appimageTools.defaultFhsEnvArgs;
|
2024-03-30 15:54:59 +01:00
|
|
|
|
in
|
2024-12-25 14:25:27 +01:00
|
|
|
|
buildFHSEnv (base
|
2024-03-30 15:54:59 +01:00
|
|
|
|
// {
|
|
|
|
|
name = "fhs";
|
|
|
|
|
targetPkgs = pkgs: (
|
|
|
|
|
# pkgs.buildFHSUserEnv provides only a minimal FHS environment,
|
|
|
|
|
# lacking many basic packages needed by most software.
|
|
|
|
|
# Therefore, we need to add them manually.
|
|
|
|
|
#
|
|
|
|
|
# pkgs.appimageTools provides basic packages required by most software.
|
|
|
|
|
(base.targetPkgs pkgs)
|
|
|
|
|
++ [
|
|
|
|
|
pkg-config
|
|
|
|
|
ncurses
|
|
|
|
|
# Feel free to add more packages here if needed.
|
|
|
|
|
]
|
|
|
|
|
);
|
|
|
|
|
profile = "export FHS=1";
|
|
|
|
|
runScript = "bash";
|
|
|
|
|
extraOutputsToInstall = ["dev"];
|
|
|
|
|
}))
|
2024-03-01 15:22:49 +01:00
|
|
|
|
];
|
|
|
|
|
|
2024-03-07 00:07:23 +01:00
|
|
|
|
fonts.packages = with pkgs; [
|
2024-12-28 20:42:02 +01:00
|
|
|
|
nerdfonts
|
2024-04-09 08:54:15 +02:00
|
|
|
|
montserrat
|
2024-03-03 23:26:30 +01:00
|
|
|
|
];
|
|
|
|
|
|
2024-03-01 15:22:49 +01:00
|
|
|
|
# List services that you want to enable:
|
|
|
|
|
|
|
|
|
|
# fingerprint unlock
|
|
|
|
|
services.fprintd.enable = true;
|
|
|
|
|
|
2024-03-27 15:18:56 +01:00
|
|
|
|
services.udisks2.enable = true;
|
|
|
|
|
|
2024-03-21 18:11:12 +01:00
|
|
|
|
services.udev = {
|
|
|
|
|
enable = true;
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
picoprobe-udev-rules
|
|
|
|
|
qmk-udev-rules
|
|
|
|
|
game-devices-udev-rules
|
|
|
|
|
android-udev-rules
|
|
|
|
|
];
|
|
|
|
|
};
|
2024-03-18 12:15:13 +01:00
|
|
|
|
|
2024-03-01 15:22:49 +01:00
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
2024-03-03 10:29:28 +01:00
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
2024-03-01 15:22:49 +01:00
|
|
|
|
}
|