moving toward a multi-machine configuration !
This commit is contained in:
parent
6cc7df17a7
commit
4cef631a8c
18 changed files with 250 additions and 181 deletions
31
machines/memere/default.nix
Normal file
31
machines/memere/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
pkgs ? import <nixpkgs>, # Do not use jail.nix packages
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
/etc/nixos/security.nix
|
||||
/etc/nixos/nix.nix
|
||||
./users.nix
|
||||
];
|
||||
|
||||
services.desktopManager.gnome.enable = true;
|
||||
services.gnome = {
|
||||
core-apps.enable = true;
|
||||
core-shell.enable = true;
|
||||
gnome-software.enable = true;
|
||||
};
|
||||
|
||||
nix.nixPath = [
|
||||
"nixos-config=/etc/nixos/machines/memere/default.nix"
|
||||
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
];
|
||||
|
||||
networking.hostName = "pepere";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
i18n.defaultLocale = "fr_FR.UTF-8";
|
||||
}
|
||||
24
machines/memere/users.nix
Normal file
24
machines/memere/users.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
source = import (config.root + /npins);
|
||||
home-manager = source.home-manager;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
users.users.memere.isNormalUser = true;
|
||||
home-manager.users.memere =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ ];
|
||||
programs.bash.enable = true;
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "26.05";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue