use modules

This commit is contained in:
Osman Faruk Bayram 2025-01-13 20:40:38 +03:00
parent 69ab407977
commit 7a0bf61d06
11 changed files with 18 additions and 22 deletions

View file

@ -9,14 +9,7 @@
}: { }: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../common/fonts.nix ../../modules
../../common/nix-settings.nix
../../common/i18n.nix
../../common/python.nix
../../common/arduino.nix
../../common/firefox.nix
../../common/common-packages.nix
../../common/concentration.nix
]; ];
blockYoutube = false; blockYoutube = false;
@ -96,7 +89,6 @@
obs-studio obs-studio
audacity audacity
qbittorrent qbittorrent
arduino-ide
]; ];
}; };

View file

@ -9,15 +9,7 @@
}: { }: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../common/fonts.nix ../../modules
../../common/nix-settings.nix
../../common/i18n.nix
../../common/python.nix
../../common/arduino.nix
../../common/firefox.nix
../../common/common-packages.nix
../../common/concentration.nix
../../common/secrets.nix
]; ];
# Bootloader. # Bootloader.

12
modules/default.nix Normal file
View file

@ -0,0 +1,12 @@
{
imports = [
./arduino.nix
./common-packages.nix
./concentration.nix
./firefox.nix
./fonts.nix
./i18n.nix
./nix-settings.nix
./secrets.nix
];
}

View file

@ -1,6 +1,7 @@
{ {
config, config,
pkgs, pkgs,
stateVersion
... ...
}: { }: {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
@ -10,8 +11,6 @@
# Packages that should be installed to the user profile. # Packages that should be installed to the user profile.
home.packages = [ home.packages = [
pkgs.htop
pkgs.fortune
]; ];
programs.git = { programs.git = {
@ -20,6 +19,7 @@
userName = "osbm"; userName = "osbm";
}; };
# This value determines the Home Manager release that your # This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage # configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards # when a new Home Manager release introduces backwards
@ -28,7 +28,7 @@
# You can update Home Manager without changing this value. See # You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version # the Home Manager release notes for a list of state version
# changes in each release. # changes in each release.
home.stateVersion = "24.11"; home.stateVersion = stateVersion;
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;

View file

@ -5,7 +5,7 @@
... ...
}: { }: {
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true; # TODO: replace this with allowUnfreePredicate
# enable nix flakes # enable nix flakes
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];