mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 08:25:07 +03:00
Slightly refactor, add ntp config
This commit is contained in:
parent
3793724043
commit
be62f52f17
6 changed files with 36 additions and 11 deletions
|
@ -24,14 +24,17 @@
|
||||||
git
|
git
|
||||||
curl
|
curl
|
||||||
usbutils
|
usbutils
|
||||||
usbmuxd
|
|
||||||
pciutils
|
pciutils
|
||||||
coreutils-full
|
coreutils-full
|
||||||
|
killall
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.nameservers = [ "1.1.1.1" "1.0.0.1" "8.8.8.8" ];
|
networking.nameservers = [ "1.1.1.1" "1.0.0.1" "8.8.8.8" ];
|
||||||
|
|
||||||
|
services.timesyncd.enable = true;
|
||||||
|
networking.timeServers = [ "ntp1.vniiftri.ru" "0.ru.pool.ntp.org" "0.pool.ntp.org" ];
|
||||||
|
|
||||||
i18n.defaultLocale = "ru_RU.UTF-8";
|
i18n.defaultLocale = "ru_RU.UTF-8";
|
||||||
console = {
|
console = {
|
||||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-u16b.psf.gz";
|
font = "${pkgs.terminus_font}/share/consolefonts/ter-u16b.psf.gz";
|
||||||
|
|
35
flake.nix
35
flake.nix
|
@ -12,15 +12,15 @@
|
||||||
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
outputs = { self, nixpkgs, ... }@inputs: {
|
||||||
|
# Stella = Unchartevice 6540 (Ryzen 3 3250U, 16GB RAM)
|
||||||
nixosConfigurations."stella" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."stella" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./common/base.nix
|
./common/base.nix
|
||||||
./common/laptop.nix
|
|
||||||
./common/user.nix
|
./common/user.nix
|
||||||
./common/graphical.nix
|
./roles/laptop.nix
|
||||||
./common/gaming.nix
|
./roles/graphical.nix
|
||||||
|
./roles/gaming.nix
|
||||||
./machines/stella/configuration.nix
|
./machines/stella/configuration.nix
|
||||||
./machines/stella/hardware.nix
|
./machines/stella/hardware.nix
|
||||||
];
|
];
|
||||||
|
@ -28,20 +28,39 @@
|
||||||
|
|
||||||
/* These machines will be configured later. */
|
/* These machines will be configured later. */
|
||||||
/*
|
/*
|
||||||
|
# Celerrime = MacBook Air M2
|
||||||
nixosConfigurations."celerrime" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."celerrime" = nixpkgs.lib.nixosSystem {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
./common/base.nix
|
||||||
|
./common/user.nix
|
||||||
|
./roles/laptop.nix
|
||||||
|
./roles/graphical.nix
|
||||||
./machines/celerrime/configuration.nix
|
./machines/celerrime/configuration.nix
|
||||||
./user.nix
|
./machines/celerrime/hardware.nix
|
||||||
./graphical.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
# Effundam = MacBook Air M1 (server usage). Will not be added to flake.nix until thunderbolt and apfs proper support
|
||||||
|
nixosConfigurations."effundam" = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "aarch64-linux";
|
||||||
|
modules = [
|
||||||
|
./common/base.nix
|
||||||
|
./common/user.nix
|
||||||
|
./roles/laptop.nix
|
||||||
|
./machines/effundam/configuration.nix
|
||||||
|
./machines/effundam/hardware.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# Vetus = iMac 27" 2017, i5, 64 GB RAM
|
||||||
nixosConfigurations."vetus" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."vetus" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
./common/base.nix
|
||||||
|
./common/user.nix
|
||||||
|
./roles/graphical.nix
|
||||||
|
./roles/gaming.nix
|
||||||
./machines/vetus/configuration.nix
|
./machines/vetus/configuration.nix
|
||||||
./
|
./machines/vetus/hardware.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Random Ryzen 3 3250U laptop
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
services.pipewire.alsa.support32Bit = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
steam
|
steam
|
||||||
wineWowPackages.stable
|
wineWowPackages.stable
|
|
@ -5,10 +5,12 @@
|
||||||
firefox
|
firefox
|
||||||
alacritty
|
alacritty
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
bottom
|
||||||
mpv
|
mpv
|
||||||
glib
|
glib
|
||||||
ffmpeg
|
ffmpeg
|
||||||
cinnamon.mint-y-icons
|
cinnamon.mint-y-icons
|
||||||
|
usbmuxd
|
||||||
];
|
];
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
services.greetd = {
|
services.greetd = {
|
Loading…
Reference in a new issue