style: giveing some order in this configuration
This commit is contained in:
parent
7ff9e5b7cf
commit
18060e87db
4 changed files with 97 additions and 96 deletions
|
|
@ -3,15 +3,18 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
|
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
|
||||||
{
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in {
|
||||||
nixosConfigurations."nixos-fix" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."nixos-fix" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./configuration.nix ];
|
modules = [ ./hosts/fix/configuration.nix ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
../global.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -18,53 +19,6 @@
|
||||||
wireless.enable = false;
|
wireless.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
documentation = {
|
|
||||||
enable = true;
|
|
||||||
man.enable = true;
|
|
||||||
dev.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "Europe/Paris";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n = {
|
|
||||||
defaultLocale = "en_US.UTF-8";
|
|
||||||
extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "fr_FR.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "fr_FR.UTF-8";
|
|
||||||
LC_MEASUREMENT = "fr_FR.UTF-8";
|
|
||||||
LC_MONETARY = "fr_FR.UTF-8";
|
|
||||||
LC_NAME = "fr_FR.UTF-8";
|
|
||||||
LC_NUMERIC = "fr_FR.UTF-8";
|
|
||||||
LC_PAPER = "fr_FR.UTF-8";
|
|
||||||
LC_TELEPHONE = "fr_FR.UTF-8";
|
|
||||||
LC_TIME = "fr_FR.UTF-8";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users = {
|
|
||||||
defaultUserShell = pkgs.zsh;
|
|
||||||
users = {
|
|
||||||
raphael = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "The main account of raphael";
|
|
||||||
useDefaultShell = true;
|
|
||||||
extraGroups = [
|
|
||||||
"networkmanager"
|
|
||||||
"dialout"
|
|
||||||
"plugdev"
|
|
||||||
"wheel"
|
|
||||||
"docker"
|
|
||||||
"video"
|
|
||||||
];
|
|
||||||
packages = with pkgs; [
|
|
||||||
home-manager
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
ticket = {
|
ticket = {
|
||||||
description = "Service for ticket";
|
description = "Service for ticket";
|
||||||
|
|
@ -124,13 +78,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
nix.extraOptions = ''experimental-features = nix-command flakes'';
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
zsh.enable = true;
|
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = true;
|
||||||
|
|
@ -138,42 +86,6 @@
|
||||||
gamemode.enable = true;
|
gamemode.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
bat
|
|
||||||
cairo
|
|
||||||
dconf
|
|
||||||
fastfetch
|
|
||||||
git
|
|
||||||
go
|
|
||||||
home-manager
|
|
||||||
lego
|
|
||||||
libjpeg
|
|
||||||
libpng
|
|
||||||
libuuid
|
|
||||||
linux-manual
|
|
||||||
man
|
|
||||||
man-pages
|
|
||||||
man-pages-posix
|
|
||||||
networkmanager
|
|
||||||
nodejs
|
|
||||||
openssl
|
|
||||||
pkg-config
|
|
||||||
postgresql
|
|
||||||
protonup
|
|
||||||
python3
|
|
||||||
python3Packages.pip
|
|
||||||
qflipper
|
|
||||||
tmux
|
|
||||||
unzip
|
|
||||||
wget
|
|
||||||
wl-clipboard
|
|
||||||
xclip
|
|
||||||
xsel
|
|
||||||
yarn
|
|
||||||
zsh
|
|
||||||
vim
|
|
||||||
];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
openssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -204,7 +116,6 @@
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
xserver.videoDrivers = ["nvidia"];
|
|
||||||
greetd = {
|
greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -54,6 +54,8 @@
|
||||||
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
open = false;
|
open = false;
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
85
hosts/global.nix
Normal file
85
hosts/global.nix
Normal file
|
|
@ -0,0 +1,85 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
documentation = {
|
||||||
|
enable = true;
|
||||||
|
man.enable = true;
|
||||||
|
dev.enable = true;
|
||||||
|
};
|
||||||
|
time.timeZone = "Europe/Paris";
|
||||||
|
i18n = {
|
||||||
|
defaultLocale = "en_US.UTF-8";
|
||||||
|
extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "fr_FR.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "fr_FR.UTF-8";
|
||||||
|
LC_MEASUREMENT = "fr_FR.UTF-8";
|
||||||
|
LC_MONETARY = "fr_FR.UTF-8";
|
||||||
|
LC_NAME = "fr_FR.UTF-8";
|
||||||
|
LC_NUMERIC = "fr_FR.UTF-8";
|
||||||
|
LC_PAPER = "fr_FR.UTF-8";
|
||||||
|
LC_TELEPHONE = "fr_FR.UTF-8";
|
||||||
|
LC_TIME = "fr_FR.UTF-8";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users = {
|
||||||
|
defaultUserShell = pkgs.zsh;
|
||||||
|
users = {
|
||||||
|
raphael = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "The main account of raphael";
|
||||||
|
useDefaultShell = true;
|
||||||
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"dialout"
|
||||||
|
"plugdev"
|
||||||
|
"wheel"
|
||||||
|
"docker"
|
||||||
|
"video"
|
||||||
|
];
|
||||||
|
packages = with pkgs; [
|
||||||
|
home-manager
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nix.extraOptions = ''experimental-features = nix-command flakes'';
|
||||||
|
programs = {
|
||||||
|
zsh.enable = true;
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
bat
|
||||||
|
cairo
|
||||||
|
dconf
|
||||||
|
fastfetch
|
||||||
|
git
|
||||||
|
go
|
||||||
|
home-manager
|
||||||
|
lego
|
||||||
|
libjpeg
|
||||||
|
libpng
|
||||||
|
libuuid
|
||||||
|
linux-manual
|
||||||
|
man
|
||||||
|
man-pages
|
||||||
|
man-pages-posix
|
||||||
|
networkmanager
|
||||||
|
nodejs
|
||||||
|
openssl
|
||||||
|
pkg-config
|
||||||
|
postgresql
|
||||||
|
protonup
|
||||||
|
python3
|
||||||
|
python3Packages.pip
|
||||||
|
qflipper
|
||||||
|
tmux
|
||||||
|
unzip
|
||||||
|
wget
|
||||||
|
wl-clipboard
|
||||||
|
xclip
|
||||||
|
xsel
|
||||||
|
yarn
|
||||||
|
zsh
|
||||||
|
vim
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue