mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
base
This commit is contained in:
12
modules/hosts/computer-mo/configuration.nix
Normal file
12
modules/hosts/computer-mo/configuration.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ inputs, ...}:
|
||||
{
|
||||
flake.nixosModules.computer-mo = {
|
||||
imports = with inputs.self.modules.nixos; [
|
||||
base
|
||||
gnome
|
||||
gnome-apps
|
||||
steam
|
||||
overclocking
|
||||
];
|
||||
};
|
||||
}
|
||||
8
modules/hosts/computer-mo/hardware.nix
Normal file
8
modules/hosts/computer-mo/hardware.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
flake.nixosModules.computer-mo = {
|
||||
boot.kernelModules = [ "" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
};
|
||||
}
|
||||
23
modules/platform/home-manager.nix
Normal file
23
modules/platform/home-manager.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
{ inputs, ... }: {
|
||||
config = {
|
||||
systems = [
|
||||
"aarch64-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
|
||||
perSystem = { pkgs, system, ... }: {
|
||||
perSystem = { system, ... }: {
|
||||
_module.args.pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
@@ -16,5 +14,4 @@
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
16
modules/users/mo.nix
Normal file
16
modules/users/mo.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user