first commit
This commit is contained in:
62
hosts/tami-mac/configuration.nix
Normal file
62
hosts/tami-mac/configuration.nix
Normal file
@@ -0,0 +1,62 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
hostName = "tami-mac";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
time.timeZone = "Asia/Jerusalem";
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
};
|
||||
hardware.pulseaudio.enable = false;
|
||||
sound.enable = false;
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
programs.vim.defaultEditor = true;
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users."tami" = {
|
||||
isNormalUser = true;
|
||||
hashedPassword = "$y$j9T$BUWA7o2/xFFY6g/B9somr1$rveo/ttShW7jd835kf2pE9vAfDIXj/Hii3B5c9GyCjA";
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
uid = 1000;
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
git
|
||||
wget
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.plasma5.enable = true;
|
||||
displayManager = {
|
||||
defaultSession = "plasmawayland";
|
||||
lightdm.enable = true;
|
||||
autoLogin.user = "tami";
|
||||
};
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
programs.xwayland.enable = true;
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
programs.adb.enable = true;
|
||||
}
|
||||
20
hosts/tami-mac/default.nix
Normal file
20
hosts/tami-mac/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
inputs:
|
||||
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
"${inputs.self}/profiles/nix-nixpkgs.nix"
|
||||
{
|
||||
_module.args.nixinate = {
|
||||
host = "tami-mac";
|
||||
sshUser = "tami";
|
||||
buildOn = "remote";
|
||||
substituteOnTarget = true;
|
||||
hermetic = false;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
60
hosts/tami-mac/hardware-configuration.nix
Normal file
60
hosts/tami-mac/hardware-configuration.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
device = "/dev/sda";
|
||||
in
|
||||
{
|
||||
imports = [ inputs.disko.nixosModules.disko ];
|
||||
|
||||
disko.devices = {
|
||||
disk.${baseNameOf device} = {
|
||||
inherit device;
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "boot";
|
||||
start = "1MiB";
|
||||
end = "512MiB";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "nixos";
|
||||
start = "512MiB";
|
||||
end = "100%";
|
||||
part-type = "primary";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
loader.systemd-boot.enable = true;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
initrd.systemd.enable = true;
|
||||
tmp.cleanOnBoot = true;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
enableAllFirmware = true;
|
||||
enableRedistributableFirmware = true;
|
||||
cpu.intel.updateMicrocode = true;
|
||||
};
|
||||
|
||||
zramSwap.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user