This commit is contained in:
2026-03-03 00:35:35 +01:00
parent 8fe8a25615
commit e959d13d90
5 changed files with 71 additions and 15 deletions

View File

@@ -0,0 +1,12 @@
{ inputs, ...}:
{
flake.nixosModules.computer-mo = {
imports = with inputs.self.modules.nixos; [
base
gnome
gnome-apps
steam
overclocking
];
};
}

View File

@@ -0,0 +1,8 @@
{
flake.nixosModules.computer-mo = {
boot.kernelModules = [ "" ];
boot.extraModulePackages = [ ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.amd.updateMicrocode = true;
};
}

View File

@@ -0,0 +1,23 @@
{ inputs, config, ...}:
let
home-manager-config =
{ lib, ... }:
{
home-manager = {
verbose = true;
useUserPackages = true;
useGlobalPkgs = true;
backupFileExtension = "backup";
backupCommand = "rm";
overwriteBackup = true;
};
};
in
{
flake.nixosModules.home-manager = {
imports = [
inputs.home-manager.nixosModules.home-manager
home-manager-config
];
};
}

View File

@@ -1,20 +1,17 @@
{ inputs, ... }: {
config = {
systems = [
"aarch64-linux"
"x86_64-linux"
];
systems = [
"x86_64-linux"
];
perSystem = { pkgs, system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
_module.args.pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
perSystem = { system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
_module.args.pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
}

16
modules/users/mo.nix Normal file
View File

@@ -0,0 +1,16 @@
{ inputs, ... }: {
flake.nixosModules.mo = { pkgs, ... }: {
users.users.mo = {
isNormalUser = true;
description = "Mohamed Chrayed";
extraGroups = [ "networkmanager" "wheel" "video" "audio" ];
shell = pkgs.zsh;
};
home-manager.users.mo = {
home.username = "mo";
home.homeDirectory = "/home/mo";
home.stateVersion = "25.11";
};
};
}